dotfiles/tmux/clocks.sh

17 lines
472 B
Bash
Raw Normal View History

#!/bin/sh
# Supply tmux with times for right-hand status bar
# Each variable encompasses a time and a color
caliTime="$(TZ=America/Los_Angeles date +%R)"
buffTime="$(TZ=America/New_York date +%R)"
utcTime="$(date -u +%R)"
bangTime="$(TZ=Asia/Kolkata date +%R)"
caliForm="#[fg=red]<][ $caliTime ] "
buffForm="#[fg=green]<][ $buffTime ][> "
utcForm="#[fg=blue][ $utcTime ][> "
bangForm="#[fg=magenta][ $bangTime ][>>"
2016-03-23 02:08:47 +00:00
echo "$caliForm""$buffForm""$utcForm""$bangForm"" "