From 92ad2f645faf9b64789c2e3fb87dca6b10d7df7e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 30 Jun 2009 12:20:45 +0200 Subject: [PATCH] awesomerc: use textclock widget Signed-off-by: Julien Danjou --- awesomerc.lua.in | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 5f029390c..459f50b6e 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -89,10 +89,8 @@ end -- }}} -- {{{ Wibox --- Create a textbox widget -mytextbox = widget({ type = "textbox", align = "right" }) --- Set the default text in textbox -mytextbox.text = " " .. awesome.release .. " " +-- Create a textclock widget +mytextclock = awful.widget.textclock({ align = "right" }) -- Create a laucher widget and a main menu myawesomemenu = { @@ -182,7 +180,7 @@ for s = 1, screen.count() do layout = awful.widget.layout.horizontal.leftright }, mylayoutbox[s], - mytextbox, + mytextclock, s == 1 and mysystray or nil, mytasklist[s], layout = awful.widget.layout.horizontal.rightleft @@ -404,8 +402,4 @@ awful.hooks.tags.register(function (screen, tag, view) end end) --- Hook called every minute -awful.hooks.timer.register(60, function () - mytextbox.text = os.date(" %a %b %d, %H:%M ") -end) -- }}}