]> 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:

run battery hook on startup
authormartin f. krafft <madduck@madduck.net>
Tue, 2 Sep 2008 21:29:06 +0000 (22:29 +0100)
committermartin f. krafft <madduck@madduck.net>
Tue, 2 Sep 2008 21:29:06 +0000 (22:29 +0100)
Signed-off-by: martin f. krafft <madduck@madduck.net>
.config/awesome/rc.lua

index ebef6d8756098b9f3959e939bbb05a43d2d1b342..8d95a9f70bb04cc06bfeb2b87e27506eb739e5d3 100644 (file)
@@ -458,7 +458,7 @@ function hook_arrange(screen)
 end
 
 -- Hook called every second
-function hook_timer ()
+function hook_timer()
     -- For unix time_t lovers
     -- mytextbox.text = " " .. os.time() .. " time_t "
     -- Otherwise use:
@@ -466,7 +466,7 @@ function hook_timer ()
 end
 
 -- Hook called every sixty seconds
-function hook_battery ()
+function hook_battery()
     mybatterybox.text = " " .. get_acpibatt() .. " "
 end
 
@@ -575,3 +575,5 @@ if screen.count() > 1 then
 else
   statusbar_highlight_focus = false
 end
+
+hook_battery()