Turn off monitor when the laptop lid is closed

This commit is contained in:
coolneng 2020-09-10 13:19:35 +02:00
parent c5253d7a54
commit 5802a7658f
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 5 additions and 0 deletions

View File

@ -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
#