From 85112f4c20e5aff86639e78e7c45bc42d0418ad1 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 15 Apr 2022 12:41:33 +0200 Subject: Cool dmlog update --- .local/bin/dmlog | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to '.local/bin') diff --git a/.local/bin/dmlog b/.local/bin/dmlog index ff55f25..5d9abc8 100755 --- a/.local/bin/dmlog +++ b/.local/bin/dmlog @@ -6,7 +6,8 @@ use constant { SLOCK_PATH => '/usr/local/bin/slock', ACPI_PATH => '/usr/sbin/acpiconf', KILL_PATH => '/usr/bin/killall', - SHUTDOWN_PATH => '/sbin/shutdown' + SHUTDOWN_PATH => '/sbin/shutdown', + NOTIF_PATH => '/usr/local/bin/notify-send' }; use constant LIST => [ 'Lock screen', @@ -67,6 +68,13 @@ sub action } elsif ($var eq ${+LIST}[4]) { if (confirm($var) == 1) { + system( + NOTIF_PATH, + '-u', + 'normal', + 'shutdown', + 'Farwell, partner!' + ); exec(SHUTDOWN_PATH, '-p', 'now'); } } -- cgit v1.2.3