From f492901e0c06286b23f03060bc3ecb5ae6845c5f Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Fri, 19 Jul 2024 13:02:58 +0200 Subject: [PATCH] Reduce delay between lock and suspend --- modules/home/hyprland/keybinds.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/home/hyprland/keybinds.nix b/modules/home/hyprland/keybinds.nix index fd9b8d1..866c958 100644 --- a/modules/home/hyprland/keybinds.nix +++ b/modules/home/hyprland/keybinds.nix @@ -23,6 +23,7 @@ # Variables $rofi-clipboard = cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy + $lock-suspend = loginctl lock-session && sleep 0.5 && systemctl suspend $play-pause = playerctl --ignore-player=firefox play-pause $play-next = playerctl --ignore-player=firefox next $play-previous = playerctl --ignore-player=firefox previous @@ -86,8 +87,8 @@ bindrl = SUPER CONTROL, Q, exit, bindrl = SUPER CONTROL, P, exec, poweroff bindrl = SUPER CONTROL, R, exec, reboot - bindrl = SUPER CONTROL, S, exec, loginctl lock-session && sleep 1 && systemctl suspend - bindl = , switch:on:Lid Switch, exec, loginctl lock-session && sleep 1 && systemctl suspend + bindrl = SUPER CONTROL, S, exec, $lock-suspend + bindl = , switch:on:Lid Switch, exec, $lock-suspend bindrl = SUPER CONTROL, L, exec, loginctl lock-session bindrl = SUPER CONTROL, B, exec, sleep 1 && hyprctl dispatch dpms off bind = SUPER CONTROL, W, exec, pkill waybar && hyprctl dispatch exec waybar