X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/725720508887a75b06f34ffb1b532ecd30c080e2..8712d26e4e7fe59b23f5386d83ec013275b3c745:/.config/awesome/rc.lua diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 811b91e..53abbf1 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -201,20 +201,19 @@ 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", ["DE"] = "Europe/Berlin" } - -now = luatz.time_in(nil) +local now = luatz.time_in(nil) for c, tz in sorted_pairs(ZONES) do - t = luatz.time_in(tz) + 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