From b5f391f3b8241b074978009d6d7c68b43c6ea322 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sun, 27 Dec 2020 08:21:02 +0100 Subject: [PATCH] Customize clock format --- simple/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/simple/init.lua b/simple/init.lua index 5f0904f..8f99e48 100644 --- a/simple/init.lua +++ b/simple/init.lua @@ -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, },