]> 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 1c4c651de7fa97c5e5ca45458e5dcd835723929d..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 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 = {}
@@ -176,21 +180,17 @@ for s = 1, screen.count() do
     -- Create the wibox
     mywibox[s] = wibox({ position = "top", fg = beautiful.fg_normal, bg = beautiful.bg_normal })
     -- Add widgets to the wibox - order matters
-    mywibox[s].widgets = { mylauncher,
-                           mytaglist[s],
+    mywibox[s].widgets = { mytaglist[s],
                            mytasklist[s],
                            mypromptbox[s],
+                           mybatterybox,
                            mytimebox,
                            mylayoutbox[s],
-                           s == 1 and mysystray or nil }
+                           s == screen.count() and mysystray or nil }
     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