From 2a45cd556fd234a272613dedb6ddbbc80875ed6d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 23 Feb 2009 13:43:13 +0100 Subject: [PATCH] awesomerc: change default time to be human readable This will also reduce awesome wake up by only printing minutes. Signed-off-by: Julien Danjou --- awesomerc.lua.in | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index fcb54f97..48986ded 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -408,11 +408,8 @@ awful.hooks.arrange.register(function (screen) end end) --- Hook called every second -awful.hooks.timer.register(1, function () - -- For unix time_t lovers - mytextbox.text = " " .. os.time() .. " time_t " - -- Otherwise use: - -- mytextbox.text = " " .. os.date() .. " " +-- Hook called every minute +awful.hooks.timer.register(60, function () + mytextbox.text = os.date(" %a %b %d, %H:%M ") end) -- }}}