A quick xbar/Argos plugin to show a customizable world clock in your title bar. I have only tested this with Argos (for Gnome Shell).
- Python 3
- A suitable extension like:
- https://github.com/p-e-w/argos
- The
gnome-shell-extension-argos
package in Fedora 38 and RHEL 8, at the time of writing this, has been tested to work correctly.
- The
- https://github.com/p-e-w/argos
- Probably Gnu CoreUtils or something, so
TZ=xxx date +"%A %H:%M"
works. I would prefer to use native Python for portability, but I think that would requirezoneinfo
, added in Python 3.9.
Create a file called clock.1m.sh
with contents like:
#!/path/to/xbar-team-clock/team-clock.py
Steve;America/Los_Angeles
Nick;America/Denver
Heider;America/Sao_Paulo
Pedro;Europe/Madrid
- The first line is a shebang pointing to the
team-clock.py
script - Every other non-blank line is a clock you want, using the format
text;tz
, wheretext
is the text you want to display, andtz
is the time zone. - Lines starting with
#
are ignored
Make the file executable and drop it in ~/.config/argos/
(for Argos).
See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List for a list of timezones or /usr/share/zoneinfo/zone1970.tab
on Linux systems.