Customize clock format

This commit is contained in:
Alice Gaudon 2020-12-27 08:21:02 +01:00
parent 80ba6a0aa9
commit b5f391f3b8

View File

@ -192,7 +192,8 @@ os_menu = awful.widget.launcher({
-- {{{ Wibar
-- Create a textclock widget
mytextclock = wibox.widget.textclock()
main_clock = wibox.widget.textclock(" %F · %R ")
utc_clock = wibox.widget.textclock(" %F · %T UTC ¤ ", 1, "Z")
-- Create a wibox for each screen and add it
local taglist_buttons = gears.table.join(awful.button({}, 1, function(t) t:view_only() end),
@ -336,7 +337,8 @@ awful.screen.connect_for_each_screen(function(s)
matchesScreen(config.widgets.system_resources.battery.screens) and system_resources_widget.battery or nil,
keyboard_layout_widget,
wibox.widget.systray(),
mytextclock,
utc_clock,
main_clock,
s.mylayoutbox,
os_menu,
},