summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-11-07 13:10:37 +0100
committerAnton Khirnov <anton@khirnov.net>2020-11-07 13:10:37 +0100
commit2c21248064990490c31b72d7b2af378a38e0510f (patch)
tree810ca5f9f0d537557c388670e428f50b60d66ac5
parent3898ab82c2b9714259426cd62f73289468bfa0aa (diff)
rc: tweak clock appearance
-rw-r--r--rc.lua15
1 files changed, 10 insertions, 5 deletions
diff --git a/rc.lua b/rc.lua
index d5e2bbd..3f91816 100644
--- a/rc.lua
+++ b/rc.lua
@@ -56,9 +56,13 @@ local layouts =
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
-- }}}
--- {{{ Wibox
--- Create a textclock widget
-mytextclock = wibox.widget.textclock()
+-- Panel
+
+-- clock, shared among all screens
+local clock_time = wibox.widget.textclock("<span size=\"18000\">%H:%M</span>", 20)
+local clock_date = wibox.widget.textclock("<span size=\"12000\">%a %F</span>", 60)
+clock_time:set_align("center")
+clock_date:set_align("center")
-- Create a wibox for each screen and add it
mywibox = {}
@@ -99,8 +103,10 @@ for s in screen do
-- Widgets that are aligned to the right
local right_layout = wibox.layout.fixed.vertical()
if s.index == 1 then right_layout:add(wibox.widget.systray()) end
- right_layout:add(mytextclock)
+
right_layout:add(layoutbox)
+ right_layout:add(clock_time)
+ right_layout:add(clock_date)
-- Now bring it all together (with the tasklist in the middle)
local layout = wibox.layout.align.vertical()
@@ -112,7 +118,6 @@ for s in screen do
mywibox[s] = awful.wibar({ position = "right", screen = s, width = 128 })
mywibox[s]:set_widget(layout)
end
--- }}}
clientbuttons = gears.table.join(