From 2c21248064990490c31b72d7b2af378a38e0510f Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 7 Nov 2020 13:10:37 +0100 Subject: rc: tweak clock appearance --- rc.lua | 15 ++++++++++----- 1 file 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("%H:%M", 20) +local clock_date = wibox.widget.textclock("%a %F", 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( -- cgit v1.2.3