summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmlog
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-07-25 10:27:32 +0200
committerJoe <bousset.rudy@gmail.com>2022-07-25 10:27:32 +0200
commit3f2e39bf8dd27702d708187eda4c04fa3d46fda7 (patch)
tree1ac508f1b5768f4b89521be0a6255865028c3976 /.local/bin/dmlog
parentgo2work (diff)
downloaddotfiles-bsd-3f2e39bf8dd27702d708187eda4c04fa3d46fda7.tar.gz
dotfiles-bsd-3f2e39bf8dd27702d708187eda4c04fa3d46fda7.tar.bz2
dotfiles-bsd-3f2e39bf8dd27702d708187eda4c04fa3d46fda7.tar.xz
dotfiles-bsd-3f2e39bf8dd27702d708187eda4c04fa3d46fda7.tar.zst
dotfiles-bsd-3f2e39bf8dd27702d708187eda4c04fa3d46fda7.zip
compat
Diffstat (limited to '.local/bin/dmlog')
-rwxr-xr-x.local/bin/dmlog14
1 files changed, 7 insertions, 7 deletions
diff --git a/.local/bin/dmlog b/.local/bin/dmlog
index 7749430..9be8cf6 100755
--- a/.local/bin/dmlog
+++ b/.local/bin/dmlog
@@ -3,12 +3,12 @@
use strict;
use warnings;
use constant {
- SLOCK_PATH => '/usr/local/bin/slock',
- ACPI_PATH => '/usr/sbin/acpiconf',
- KILL_PATH => '/usr/bin/killall',
- SHUTDOWN_PATH => '/sbin/shutdown',
- NOTIF_PATH => '/usr/local/bin/notify-send',
- EMACS_PATH => '/usr/local/bin/emacsclient'
+ SLOCK_PATH => 'slock',
+ ACPI_PATH => 'acpiconf',
+ KILL_PATH => 'killall',
+ SHUTDOWN_PATH => 'shutdown',
+ NOTIF_PATH => 'notify-send',
+ EMACS_PATH => 'emacsclient'
};
use constant LIST => [
'Lock screen',
@@ -87,7 +87,7 @@ sub action
' Farewell, partner!'
);
sleep 2;
- exec(SHUTDOWN_PATH, '-p', 'now');
+ exec(SHUTDOWN_PATH, '-h', 'now');
}
}
return;