summaryrefslogtreecommitdiff
path: root/.local/sbin
diff options
context:
space:
mode:
Diffstat (limited to '.local/sbin')
-rwxr-xr-x.local/sbin/chtz10
1 files changed, 6 insertions, 4 deletions
diff --git a/.local/sbin/chtz b/.local/sbin/chtz
index f6a6444..2a02e79 100755
--- a/.local/sbin/chtz
+++ b/.local/sbin/chtz
@@ -2,7 +2,9 @@
set -e
-choice="`timedatectl list-timezones | grep './.' | osel`" \
- && sudo timedatectl set-timezone "$choice" \
- && notify "${0##*/}" timezone 'Timezone Changed' \
- "The system timezone was changed to ‘$choice’"
+export NOTIFY_LONG=timezone
+export NOTIFY_SHORT="${0##*/}"
+
+choice="$(timedatectl list-timezones | grep './.' | osel)" \
+&& sudo timedatectl set-timezone "$choice" \
+&& notify 'Timezone Changed' "The system timezone was changed to ‘$choice’"