awesomerc: use textclock widget
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
8de5075412
commit
92ad2f645f
|
@ -89,10 +89,8 @@ end
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Wibox
|
-- {{{ Wibox
|
||||||
-- Create a textbox widget
|
-- Create a textclock widget
|
||||||
mytextbox = widget({ type = "textbox", align = "right" })
|
mytextclock = awful.widget.textclock({ align = "right" })
|
||||||
-- Set the default text in textbox
|
|
||||||
mytextbox.text = "<b><small> " .. awesome.release .. " </small></b>"
|
|
||||||
|
|
||||||
-- Create a laucher widget and a main menu
|
-- Create a laucher widget and a main menu
|
||||||
myawesomemenu = {
|
myawesomemenu = {
|
||||||
|
@ -182,7 +180,7 @@ for s = 1, screen.count() do
|
||||||
layout = awful.widget.layout.horizontal.leftright
|
layout = awful.widget.layout.horizontal.leftright
|
||||||
},
|
},
|
||||||
mylayoutbox[s],
|
mylayoutbox[s],
|
||||||
mytextbox,
|
mytextclock,
|
||||||
s == 1 and mysystray or nil,
|
s == 1 and mysystray or nil,
|
||||||
mytasklist[s],
|
mytasklist[s],
|
||||||
layout = awful.widget.layout.horizontal.rightleft
|
layout = awful.widget.layout.horizontal.rightleft
|
||||||
|
@ -404,8 +402,4 @@ awful.hooks.tags.register(function (screen, tag, view)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Hook called every minute
|
|
||||||
awful.hooks.timer.register(60, function ()
|
|
||||||
mytextbox.text = os.date(" %a %b %d, %H:%M ")
|
|
||||||
end)
|
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
Loading…
Reference in New Issue