From 8712d26e4e7fe59b23f5386d83ec013275b3c745 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 13 Feb 2018 13:36:55 +1100 Subject: [PATCH 1/1] reorder clocks and always show local timezone --- .config/awesome/rc.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 26d66cc..53abbf1 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -201,7 +201,7 @@ menubar.utils.terminal = terminal -- Set the terminal for applications that requ local spacer = wibox.widget.textbox() spacer:set_text(' │ ') -- Create a textclock widget -clocks = { wibox.widget.textclock("%a %d %b %H:%M:%S", 1) } +clocks = { wibox.widget.textclock("%a %d %b %H:%M:%S %Z", 1) } ZONES = { ["NZ"] = "Pacific/Auckland", @@ -212,8 +212,8 @@ for c, tz in sorted_pairs(ZONES) do local t = luatz.time_in(tz) if math.abs(os.difftime(t, now)) > 10 then local widget = wibox.widget.textclock(c .. ": %H:%M (%a)", 60, tz) - table.insert(clocks, spacer) - table.insert(clocks, widget) + table.insert(clocks, 1, spacer) + table.insert(clocks, 1, widget) end end -- 2.39.5