From eb7ee7072cfa9cbd374cd453faba63f7f7b5bd65 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 13 Aug 2017 22:26:07 +0200 Subject: [PATCH] Fix an old todo in the docs (#1981) This new paragraph might not be great and it certainly is less informative than what the wiki said here (it suggested to use some library for widgets and explained how to use it). However, this new paragraph is definitely better than the todo that was here for far too long. Signed-off-by: Uli Schlachter --- docs/07-my-first-awesome.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/docs/07-my-first-awesome.md b/docs/07-my-first-awesome.md index 7921e580..b5845add 100644 --- a/docs/07-my-first-awesome.md +++ b/docs/07-my-first-awesome.md @@ -171,7 +171,28 @@ A new window will appear and a new awesome instance runs inside of it. ## Add widgets -TODO: Write this section. +Before the following line: + + mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, + +Add this to create a new widget: + + praisewidget = wibox.widget.textbox() + praisewidget.text = "You are great!" + +The widget still needs to be added to a wibar. For this, find the definition of +your wibar and change it as follows: + + { -- Left widgets + layout = wibox.layout.fixed.horizontal, + mylauncher, + praisewidget, -- This line is new + s.mytaglist, + s.mypromptbox, + }, + +This gives you a basic idea on how to add a widget. For an overview of available +widgets and how to arrange them, please read @{03-declarative-layout.md}. ## Further reading