From 6a753ad0b2ef5888898f00b18c838ee526017464 Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 9 Sep 2024 17:37:50 -0500 Subject: [PATCH] hyprland: handle dpms on lid switch when inhibited Signed-off-by: Myned --- options/custom/desktops/hyprland/binds.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/options/custom/desktops/hyprland/binds.nix b/options/custom/desktops/hyprland/binds.nix index 67f5e24..f788cab 100644 --- a/options/custom/desktops/hyprland/binds.nix +++ b/options/custom/desktops/hyprland/binds.nix @@ -64,6 +64,12 @@ in "CTRL+ALT, Delete, exec, ${loginctl} terminate-session ''" "SUPER, L, exec, ${hyprlock} --immediate & ${sleep} 1 && ${hyprctl} dispatch dpms off" + # Laptop lid switches + # https://wiki.hyprland.org/Configuring/Binds/#switches + #?? hyprctl devices + ", switch:on:Lid Switch, dpms, off" # Close + ", switch:off:Lid Switch, dpms, on" # Open + ### Scripts "SUPER, Delete, exec, inhibit" ];