From eb63f8b326b9c076cf2d57aa73176f935c670fdc Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 2 Sep 2008 22:29:06 +0100 Subject: [PATCH] run battery hook on startup Signed-off-by: martin f. krafft --- .config/awesome/rc.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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() -- 2.39.2