dotfiles/.config/nwg-wrapper/timezones.sh
2022-05-21 00:33:50 +02:00

22 lines
682 B
Bash
Executable File

#!/usr/bin/env bash
# Some countries below have more than one time zone,
# and it makes sense to use cities instead of countries.
# Use tzselect to find their time zones.
time=$(TZ='America/Fortaleza' date +'%H:%M:%S')
echo '<span size="25000" foreground="#998000" face="monospace" weight="bold">Brazil '$time'</span>'
echo '<span size="large" face="monospace" foreground="#ccc">'
time=$(TZ='America/Atikokan' date +"%H:%M")
echo 'Canada <b>'$time'</b>'
time=$(TZ='Europe/Dublin' date +"%H:%M")
echo 'Ireland <b>'$time'</b>'
time=$(TZ='Asia/Kolkata' date +"%H:%M")
echo 'India <b>'$time'</b>'
time=$(TZ='Asia/Shanghai' date +"%H:%M")
echo 'China <b>'$time'</b>'
echo '</span>'