From 93e09f0c0c30ed83c6020db63c4e8abe230a56d4 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 21 Apr 2024 18:08:31 -0400 Subject: [PATCH] hyprland: disable eDP-1 when ext monitor is sattached and lid is closed fixed switch on/off status cleaned up lid handling --- homeManagerModules/desktop/hypr/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/homeManagerModules/desktop/hypr/default.nix b/homeManagerModules/desktop/hypr/default.nix index 42f6cbff..002dce63 100644 --- a/homeManagerModules/desktop/hypr/default.nix +++ b/homeManagerModules/desktop/hypr/default.nix @@ -127,8 +127,7 @@ qt_platform_theme = "gtk2"; gdk_scale = "1.5"; in '' - monitor = desc:BOE 0x0BCA,preferred,auto,1.566667 # lavaridge fw13 matte display - monitor = desc:BOE 0x095F,preferred,auto,1.566667# lavaridge fw13 glossy display + monitor = desc:BOE 0x095F,preferred,auto,1.566667 # lavaridge/fallarbor fw13 glossy display monitor = desc:LG Electronics LG ULTRAWIDE 311NTAB5M720,preferred,auto,1.25,vrr,2 # mauville monitor = desc:LG Display 0x0569,preferred,auto,1.2 # rustboro monitor = desc:Samsung Display Corp. 0x4152,preferred,auto,2,transform,0 # petalburg @@ -137,6 +136,12 @@ monitor = desc:HP Inc. HP 24mh 3CM037248S,preferred,-1920x0,auto monitor = ,preferred,auto,auto + # Turn off the internal display when lid is closed. + bindl=,switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" + bindl=,switch:on:Lid Switch,exec,hyprctl keyword monitor "desc:BOE 0x095F,preferred,auto,1.566667" + bindl=,switch:on:Lid Switch,exec,hyprctl keyword monitor "desc:LG Display 0x0569,preferred,auto,1.2" + bindl=,switch:on:Lid Switch,exec,hyprctl keyword monitor "desc:Samsung Display Corp. 0x4152,preferred,auto,2,transform,0" + # unscale XWayland apps xwayland { force_zero_scaling = true