]> git.madduck.net Git - etc/awesome.git/commitdiff

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:

fix wibox
authormartin f. krafft <madduck@madduck.net>
Tue, 11 Nov 2008 20:46:20 +0000 (21:46 +0100)
committermartin f. krafft <madduck@madduck.net>
Tue, 11 Nov 2008 20:46:20 +0000 (21:46 +0100)
.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 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 = {}
@@ -179,17 +183,14 @@ for s = 1, screen.count() do
     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