From 08fd877c33d3f5d0c387a15e01a8af565ba3a33d Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 22 Aug 2023 15:41:43 +0300 Subject: stz: Add script to change timezone --- .local/sbin/stz | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .local/sbin/stz 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’." -- cgit v1.2.3