From 4a9a41d62c74f678df22fbe2af0bcb8bdf701910 Mon Sep 17 00:00:00 2001 From: Glen Goodwin Date: Sat, 2 Sep 2023 13:40:41 -0400 Subject: [PATCH] update hypr display config add bindls so that when the laptop is closed it only uses an external monitor --- modules/desktop/hyprland/home.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/desktop/hyprland/home.nix b/modules/desktop/hyprland/home.nix index ea02c0d..e99c311 100644 --- a/modules/desktop/hyprland/home.nix +++ b/modules/desktop/hyprland/home.nix @@ -3,6 +3,12 @@ let hyprlandConf = '' monitor=,preferred,auto,auto + + # trigger when the switch is turning off + bindl = , switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, 1920x1080, 0x0, 1" + # trigger when the switch is turning on + bindl = , switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" + $mainMod=SUPER general {