summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-09-02 12:54:40 -0400
committerFreya Murphy <freya@freyacat.org>2025-09-02 12:54:40 -0400
commit47d73f467445b933dc903d40909055a97b44291e (patch)
tree544e35937487b6456f8f39901a9bbd3dee996262
parentadd enhancer for yt firefox ext (diff)
downloaddotfiles-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.nix9
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}\""
+ ];
};
};
}