diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 92bb94e..f78fc95 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -296,6 +296,11 @@ set $lock_bg ~/Photos/Wallpapers/wallhaven-638719.png exec swayidle -w \ before-sleep 'swaylock -f -c 000000 -i $lock_bg' +# disable external monitor when lid is closed +set $monitor HDMI-A-2 +bindswitch --reload --locked lid:on output $monitor disable +bindswitch --reload --locked lid:off output $monitor enable + # # Autostart programs #