From: martin f. krafft Date: Tue, 13 Feb 2018 02:36:55 +0000 (+1100) Subject: reorder clocks and always show local timezone X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/8712d26e4e7fe59b23f5386d83ec013275b3c745?hp=6944fa282424926b1124edfddbbaa89bc759a74f reorder clocks and always show local timezone --- 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