I am using the awful.widget.textclock
widget to display the time in Awesome WM on Arch Linux, and I am using a program called tzupdate
to automatically update my system time according to geolocation periodically.
I travel frequently, so I thought it would be nice to automate this. However, the textclock widget does not change the time unless I restart Awesome (or relog/restart). Is there something I could add in the lua script to make the widget refresh the timezone?
tzupdate
is working fine. I have it on a systemd
timer that updates the timezone every five minutes. The system's timezone is successfully changed in this way. The output of timedatectl
immediately shows the updated timezone, and the output of the date command correctly displays the correct updated local time.
However, as noted above, Awesome fails to notice this timezone change until I restart (CtrlModR) or logout.
awful.widget.textclock
? Does something like thismytextclock = awful.widget.textclock("%A %d %B %H:%M ")
work?awful.widget.textclock("%a %b %d, %H:%M:%S", 1)
. I tried the string you gave me but it didn't change anything.