From: martin f. krafft Date: Tue, 2 Sep 2008 21:29:06 +0000 (+0100) Subject: run battery hook on startup X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/eb63f8b326b9c076cf2d57aa73176f935c670fdc?ds=sidebyside;hp=b7ca72c29e1c01f43e404d1936c7ae3d3549708c run battery hook on startup Signed-off-by: martin f. krafft --- diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index ebef6d8..8d95a9f 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -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()