diff options
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/dmlog | 10 |
1 files changed, 9 insertions, 1 deletions
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'); } } |