From 436199a76bb63cbcf3091b29b43abe60316b3cb6 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 29 Mar 2024 15:39:10 -0500 Subject: [PATCH] refactor(hypr): improve laptop lid handling --- dots/.config/hypr/conf/core/monitors.conf | 6 ++++-- dots/.config/hypr/scripts/launchers/events-monitor.bash | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dots/.config/hypr/conf/core/monitors.conf b/dots/.config/hypr/conf/core/monitors.conf index 3f26e09a..559f0dfb 100644 --- a/dots/.config/hypr/conf/core/monitors.conf +++ b/dots/.config/hypr/conf/core/monitors.conf @@ -1,2 +1,4 @@ -monitor = , preferred, auto, 1 -monitor=eDP-1,preferred,auto,1.35 +monitor = ,preferred,auto,auto +monitor=eDP-1,preferred,auto,1.5 +bindl=,switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1,preferred,auto,1.5" +bindl=,switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1,disable" diff --git a/dots/.config/hypr/scripts/launchers/events-monitor.bash b/dots/.config/hypr/scripts/launchers/events-monitor.bash index fc00614b..ab58227e 100755 --- a/dots/.config/hypr/scripts/launchers/events-monitor.bash +++ b/dots/.config/hypr/scripts/launchers/events-monitor.bash @@ -84,5 +84,4 @@ monitor-laptop-lid() { done } monitor-ssid & -monitor-laptop-lid & wait