From 67e65657e30cc39df7fc68e6bc992ec50b935910 Mon Sep 17 00:00:00 2001 From: Derisis13 Date: Sat, 9 Nov 2024 00:20:06 +0100 Subject: [PATCH] fix(rofi-powermenu): working lock an better logout --- rofi/applets/bin/powermenu.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rofi/applets/bin/powermenu.sh b/rofi/applets/bin/powermenu.sh index fd8257e..2f7bdf5 100755 --- a/rofi/applets/bin/powermenu.sh +++ b/rofi/applets/bin/powermenu.sh @@ -90,11 +90,11 @@ confirm_run () { # Execute Command run_cmd() { if [[ "$1" == '--opt1' ]]; then - hyprlock -c $XDG_CONFIG_HOME/hypr/hyprlock.conf --immediate + loginctl lock-session elif [[ "$1" == '--opt2' ]]; then - confirm_run 'kill -9 -1' + confirm_run 'hyprctl dispatch exit' elif [[ "$1" == '--opt3' ]]; then - confirm_run 'mpc -q pause' 'amixer set Master mute' 'systemctl suspend' + confirm_run 'systemctl suspend' elif [[ "$1" == '--opt4' ]]; then confirm_run 'systemctl hibernate' elif [[ "$1" == '--opt5' ]]; then