From 981792d7ef29318c999b908e5c046445498e2dbd Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Thu, 18 Jul 2024 23:46:31 +0200 Subject: [PATCH] Fix hypridle+hyprlock issue on nvidia --- modules/home/hyprland/keybinds.nix | 4 ++-- wrappers/hypridle.nix | 1 - wrappers/hyprlock.nix | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/home/hyprland/keybinds.nix b/modules/home/hyprland/keybinds.nix index eb04ac0..b6d65eb 100644 --- a/modules/home/hyprland/keybinds.nix +++ b/modules/home/hyprland/keybinds.nix @@ -62,8 +62,8 @@ bindrl = SUPER CONTROL, Q, exit, bindrl = SUPER CONTROL, P, exec, poweroff bindrl = SUPER CONTROL, R, exec, reboot - bindrl = SUPER CONTROL, S, exec, sleep 1 && systemctl suspend - bindl = , switch:on:Lid Switch, exec, systemctl suspend + 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, 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 diff --git a/wrappers/hypridle.nix b/wrappers/hypridle.nix index 83d4e95..81b5d0b 100644 --- a/wrappers/hypridle.nix +++ b/wrappers/hypridle.nix @@ -10,7 +10,6 @@ hypridle-config = pkgs.writeText "hypridle-config" '' general { lock_cmd = pidof hyprlock || hyprlock - before_sleep_cmd = loginctl lock-session after_sleep_cmd = hyprctl dispatch dpms on } listener { diff --git a/wrappers/hyprlock.nix b/wrappers/hyprlock.nix index 4cd6260..959080e 100644 --- a/wrappers/hyprlock.nix +++ b/wrappers/hyprlock.nix @@ -8,6 +8,9 @@ flags = let hyprlock-config = pkgs.writeText "hyprlock-config" '' + general { + no_fade_in = true + } background { monitor = path = screenshot