From 105984b0124b3a51cc561c3cf0efbc315e9e4888 Mon Sep 17 00:00:00 2001 From: Anish L Date: Sat, 16 Apr 2022 17:45:04 +1000 Subject: [PATCH] fix lock being broken --- users/profiles/desktop/bin/powermenu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/profiles/desktop/bin/powermenu b/users/profiles/desktop/bin/powermenu index 001c14a4..5846b2a2 100755 --- a/users/profiles/desktop/bin/powermenu +++ b/users/profiles/desktop/bin/powermenu @@ -11,7 +11,7 @@ log_out="\tLogout" # Variable passed to rofi options="$power_off\n$reboot\n$lock\n$suspend\n$log_out" -case "$(echo -e "$options" | $rofi_command -dmenu -selected-row 2)" in +case "$(echo -e "$options" | $rofi_command -dmenu)" in " Shutdown") systemctl poweroff ;; @@ -19,7 +19,7 @@ case "$(echo -e "$options" | $rofi_command -dmenu -selected-row 2)" in systemctl reboot ;; " Lock") - zzz # TODO doesn't do anything + dm-tool lock ;; "鈴 Sleep") dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Pause