Skip to content

An xbar/Argos plugin to create a custom world clock for your team

Notifications You must be signed in to change notification settings

alexpdp7/xbar-team-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

xbar-team-clock

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).

Screenshot using Argos on Gnome Shell

Requirements

  • 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.
  • 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 require zoneinfo, added in Python 3.9.

Usage

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, where text is the text you want to display, and tz 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.

About

An xbar/Argos plugin to create a custom world clock for your team

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages