summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmlog
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2021-03-09 17:58:14 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2021-03-09 17:58:14 +0100
commit1d684975b6559c97514833f9786db08ec06abbf7 (patch)
tree6ef691988e1142db3d64b59a4d88745370ae0c58 /.local/bin/dmlog
parentupdate (diff)
downloaddotfiles-bsd-1d684975b6559c97514833f9786db08ec06abbf7.tar.gz
dotfiles-bsd-1d684975b6559c97514833f9786db08ec06abbf7.tar.bz2
dotfiles-bsd-1d684975b6559c97514833f9786db08ec06abbf7.tar.xz
dotfiles-bsd-1d684975b6559c97514833f9786db08ec06abbf7.tar.zst
dotfiles-bsd-1d684975b6559c97514833f9786db08ec06abbf7.zip
Update
Diffstat (limited to '.local/bin/dmlog')
-rwxr-xr-x.local/bin/dmlog6
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;