diff options
Diffstat (limited to '')
-rwxr-xr-x | .local/bin/dmlog | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/dmlog b/.local/bin/dmlog index b87bbf5..556a3b9 100755 --- a/.local/bin/dmlog +++ b/.local/bin/dmlog @@ -12,8 +12,8 @@ use constant LIST => [ 'Lock screen', 'Sleep', 'Logout', - 'Shutdown', 'Reboot' + 'Shutdown', ]; use constant CONFIRM => [ "No", @@ -62,12 +62,12 @@ sub action } elsif ($var eq ${+LIST}[3]) { if (confirm($var) == 1) { - exec(SHUTDOWN_PATH, '-p', 'now'); + exec(SHUTDOWN_PATH, '-r', 'now'); } } elsif ($var eq ${+LIST}[4]) { if (confirm($var) == 1) { - exec(SHUTDOWN_PATH, '-r', 'now'); + exec(SHUTDOWN_PATH, '-p', 'now'); } } return; |