From 6a24720a3a9c6091c3507218771ee51bee32bae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sat, 21 Oct 2023 16:29:24 +0200 Subject: [PATCH] Refactor the monitor config --- .config/hypr/hyprland.conf | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index b0e6a1c..b62cd4e 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -5,8 +5,12 @@ # # See https://wiki.hyprland.org/Configuring/Monitors/ -monitor=,preferred,auto,auto -monitor=eDP-1,1920x1080@60,0x0,1 +# List monitors: +# $ hyprctl monitors +monitor = ,highres,auto,1 +# Enable or disable eDP-1 depending on the lid switch +bindl = ,switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1,highres,auto,1" +bindl = ,switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" # See https://wiki.hyprland.org/Configuring/Keywords/ for more