A simple world clock for Waybar. Shows local time in the bar, world times in the tooltip on hover.
git clone https://github.com/alexanderzeitler/waybar-worldclock.git
cd waybar-worldclock
./installThis copies worldclock to ~/.local/bin/ and creates a default ~/.config/worldclock/zones if none exists.
git clone https://github.com/alexanderzeitler/waybar-worldclock.git
cd waybar-worldclock
./install-omarchyThis copies worldclock to ~/.local/bin/, creates the default zones config, and restarts Waybar. Then replace clock with custom/worldclock in modules-center in your ~/.config/waybar/config.jsonc. Since ~/.local/bin is not in Omarchy's PATH, use the full path in the module config:
To uninstall:
./uninstall-omarchyEdit ~/.config/worldclock/zones:
Set 12-hour (default) or 24-hour format at the top of the file:
format=12
12-hour format shows AM/PM (e.g. 09:30 AM), 24-hour format shows 09:30.
One timezone per line, tab-separated:
America/New_York New York
Asia/Tokyo Tokyo
Europe/London London
Australia/Sydney Sydney
Find valid timezone names with timedatectl list-timezones.
Replace the built-in clock module (or add alongside it) in your ~/.config/waybar/config.jsonc:
modules-center (or wherever you want it):
"modules-center": ["custom/worldclock"]Module definition:
"custom/worldclock": {
"exec": "worldclock",
"return-type": "json",
"interval": 30
}Then restart Waybar (e.g. killall waybar && waybar &).
./uninstallNone — just bash and date.
MIT
