diff options
-rw-r--r-- | modules/desktops/hyprland/binds.nix | 9 |
1 files changed, 9 insertions, 0 deletions
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}\"" + ]; }; }; } |