From 47d73f467445b933dc903d40909055a97b44291e Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 2 Sep 2025 12:54:40 -0400 Subject: lid close binds for hyprland --- modules/desktops/hyprland/binds.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/desktops/hyprland/binds.nix') diff --git a/modules/desktops/hyprland/binds.nix b/modules/desktops/hyprland/binds.nix index 90447f0..98d531b 100644 --- a/modules/desktops/hyprland/binds.nix +++ b/modules/desktops/hyprland/binds.nix @@ -127,6 +127,15 @@ ", XF86MonBrightnessDown, exec, brightnessctl set 5%-" ", XF86MonBrightnessUp, exec, brightnessctl set 5%+" ]; + + bindl = let + monitor = builtins.elemAt config.monitors 0; + cfg = "highres, auto, ${toString monitor.scale}, bitdepth, ${toString monitor.bitdepth}"; + in [ + # Laptops when docked + ", switch:on:Lid, exec, hyprctl keyword monitor \"${monitor.name}, disable\"" + ", switch:off:Lid, exec, hyprctl keyword monitor \"${monitor.name}, ${cfg}\"" + ]; }; }; } -- cgit v1.2.3-freya