aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/menutz
blob: 2d783aec39c569a2a06533b987ec8679a6c869a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# Source settings from .bemenurc
. ~/.config/bemenurc

timezone=$(cd /usr/share/zoneinfo/posix && find * -type f -or -type l | sort | bemenu -p "Select output: " --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB" --monitor="$BEMENU_MONITOR")

if [ -n "$timezone" ]; then
  notify-send "🗺 Date and time in $timezone" "$(TZ=:$timezone date)"
else
  notify-send "🗺 Date and time in your timezone" "$(TZ=:$timezone date)"
fi