diff options
Diffstat (limited to '.local/sbin')
-rwxr-xr-x | .local/sbin/stz | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/sbin/stz b/.local/sbin/stz new file mode 100755 index 0000000..9091d29 --- /dev/null +++ b/.local/sbin/stz @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +choice="`timedatectl list-timezones \ + | grep './.' \ + | wofi -dMfuzzy -Oalphabetical`" + +[ -n "$choice" ] \ + && sudo timedatectl set-timezone "$choice" \ + && notify-send -a "${0##*/}" -u normal 'Timezone changed' \ + "The system timezone was changed to ‘$choice’." |