]> git.madduck.net Git - etc/awesome.git/blobdiff - .config/awesome/rc.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add awsetbg to PATH
[etc/awesome.git] / .config / awesome / rc.lua
index acfc111c4706972a8f78fb2b1f8a335ffb64659d..232909528e5f01395ba1fadc526ca0dd1752ac99 100644 (file)
@@ -142,6 +142,10 @@ mylauncher = awful.widget.launcher({ name = "mylauncher",
 -- Create a systray
 mysystray = widget({ type = "systray", name = "mysystray", align = "right" })
 
 -- Create a systray
 mysystray = widget({ type = "systray", name = "mysystray", align = "right" })
 
+-- Create textbox widgets
+mytimebox = widget({ type = "textbox", name = "mytimebox", align = "right" })
+mybatterybox = widget({ type = "textbox", name = "mybatterybox", align = "right" })
+
 -- Create a wibox for each screen and add it
 mywibox = {}
 mypromptbox = {}
 -- Create a wibox for each screen and add it
 mywibox = {}
 mypromptbox = {}
@@ -179,17 +183,14 @@ for s = 1, screen.count() do
     mywibox[s].widgets = { mytaglist[s],
                            mytasklist[s],
                            mypromptbox[s],
     mywibox[s].widgets = { mytaglist[s],
                            mytasklist[s],
                            mypromptbox[s],
+                           mybatterybox,
                            mytimebox,
                            mylayoutbox[s],
                            mytimebox,
                            mylayoutbox[s],
-                           s == 1 and mysystray or nil }
+                           s == screen.count() and mysystray or nil }
     mywibox[s].screen = s
 end
 -- }}}
 
     mywibox[s].screen = s
 end
 -- }}}
 
--- Create a textbox widget
-mytimebox = widget({ type = "textbox", name = "mytimebox", align = "right" })
-mybatterybox = widget({ type = "textbox", name = "mybatterybox", align = "right" })
-
 --Battery widget
 batterywidget = widget({ type = 'progressbar', name = 'batterywidget' })
 batterywidget.width = 100
 --Battery widget
 batterywidget = widget({ type = 'progressbar', name = 'batterywidget' })
 batterywidget.width = 100