From f731aca5080e1ac391e77eb7508c281020f95268 Mon Sep 17 00:00:00 2001 From: hesam-init Date: Tue, 27 Feb 2024 16:05:58 +0330 Subject: [PATCH] feat: sleep function --- configs/hyprland/rofi/applets/bin/powermenu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/hyprland/rofi/applets/bin/powermenu.sh b/configs/hyprland/rofi/applets/bin/powermenu.sh index e079546..2ff44e2 100755 --- a/configs/hyprland/rofi/applets/bin/powermenu.sh +++ b/configs/hyprland/rofi/applets/bin/powermenu.sh @@ -105,7 +105,7 @@ run_cmd() { elif [[ "$1" == '--opt2' ]]; then confirm_run 'hyprctl dispatch exit' elif [[ "$1" == '--opt3' ]]; then - confirm_run 'mpc -q pause' 'amixer set Master mute' 'systemctl suspend' + confirm_run 'loginctl suspend' elif [[ "$1" == '--opt4' ]]; then confirm_run 'loginctl hibernate' elif [[ "$1" == '--opt5' ]]; then