diff options
author | Freya Murphy <freya@freyacat.org> | 2025-09-02 12:54:40 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-09-02 12:54:40 -0400 |
commit | 47d73f467445b933dc903d40909055a97b44291e (patch) | |
tree | 544e35937487b6456f8f39901a9bbd3dee996262 | |
parent | add enhancer for yt firefox ext (diff) | |
download | dotfiles-nix-47d73f467445b933dc903d40909055a97b44291e.tar.gz dotfiles-nix-47d73f467445b933dc903d40909055a97b44291e.tar.bz2 dotfiles-nix-47d73f467445b933dc903d40909055a97b44291e.zip |
lid close binds for hyprland
-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}\"" + ]; }; }; } |