From fd2c508cde1393cbaf4d25abdf9eaebbe5f73895 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 18 Nov 2023 20:21:50 +0100 Subject: bin/sbin: Use the new ‘notify’ API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .local/sbin/chtz | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to '.local/sbin') 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’" -- cgit v1.2.3