summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIwanIDev <iwan@iwani.dev>2026-03-25 15:56:03 +0000
committerIwanIDev <iwan@iwani.dev>2026-03-25 15:56:03 +0000
commit1fb63b6bd026aa6968418d1a2e8f48f6fb436b1e (patch)
tree1bbecf4eb14d77d238fdb11d35a78c5abec00088
parenta255db8ef33266f1edc689264f6a2cc5dacbbc0e (diff)
Update powermenu commands to use elogind rather than systemd
-rw-r--r--.config/otter-launcher/config.toml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.config/otter-launcher/config.toml b/.config/otter-launcher/config.toml
index 1f4e9e9..bc4234c 100644
--- a/.config/otter-launcher/config.toml
+++ b/.config/otter-launcher/config.toml
@@ -95,10 +95,10 @@ function power {
if [[ -n $1 ]]; then
case $1 in
"logout") session=`loginctl session-status | head -n 1 | awk '{print $1}'`; loginctl terminate-session $session ;;
-"suspend") systemctl suspend ;;
-"hibernate") systemctl hibernate ;;
-"reboot") systemctl reboot ;;
-"shutdown") systemctl poweroff ;;
+"suspend") loginctl suspend ;;
+"hibernate") loginctl hibernate ;;
+"reboot") loginctl reboot ;;
+"shutdown") loginctl poweroff ;;
esac fi }
power $(echo -e 'reboot\nshutdown\nlogout\nsuspend\nhibernate' | fzf --reverse --no-scrollbar --padding 1,3 --prompt 'Power Menu: ' | tail -1)
"""