X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/1fb948b72b60999c61027ddb76d294c954a95f14..8712d26e4e7fe59b23f5386d83ec013275b3c745:/.config/awesome/rc.lua diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 861013b..53abbf1 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -199,24 +199,21 @@ menubar.utils.terminal = terminal -- Set the terminal for applications that requ -- {{{ Wibox local spacer = wibox.widget.textbox() -spacer:set_text(' | ') +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) - print (c) - print (os.difftime(t, now)) + 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