From ea61b5dc6be2dc8fd32b0c25eb533514d90cfda6 Mon Sep 17 00:00:00 2001 From: Gabriella Bere Date: Tue, 10 Sep 2024 18:12:00 +0100 Subject: [PATCH] added lid switch keybind to disable main laptop monitor --- home-manager/hyprland.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home-manager/hyprland.nix b/home-manager/hyprland.nix index 50a644c..b4de3b1 100644 --- a/home-manager/hyprland.nix +++ b/home-manager/hyprland.nix @@ -27,6 +27,11 @@ mouse_refocus = false; }; + bindl = [ + ",switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-2, 2560x1600@165, 0x0, auto"" + ",switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-2, disable"" + ]; + # Allow using SUPER+LEFT to move windows and SUPER+RIGHT to resize windows bindm = [ "$mod, mouse:272, movewindow"