From 275d6de472ffe0e295f9478020e9d3a618b54fd1 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 15 Sep 2023 00:21:54 +0200 Subject: chtz: Rename from ‘stz’ to ‘chtz’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This keeps consistency with my other scripts like ‘chkb’, but also with tools like ‘chmod’, ‘chsh’, etc. --- .local/sbin/chtz | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 .local/sbin/chtz (limited to '.local/sbin/chtz') diff --git a/.local/sbin/chtz b/.local/sbin/chtz new file mode 100755 index 0000000..413bf40 --- /dev/null +++ b/.local/sbin/chtz @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +choice="`timedatectl list-timezones | grep './.' | osel`" \ + && sudo timedatectl set-timezone "$choice" \ + && notify-send -a "${0##*/}" -u normal 'Timezone changed' \ + "The system timezone was changed to ‘$choice’." -- cgit v1.2.3