Turn off monitor when the laptop lid is closed
This commit is contained in:
parent
c5253d7a54
commit
5802a7658f
|
@ -296,6 +296,11 @@ set $lock_bg ~/Photos/Wallpapers/wallhaven-638719.png
|
||||||
exec swayidle -w \
|
exec swayidle -w \
|
||||||
before-sleep 'swaylock -f -c 000000 -i $lock_bg'
|
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
|
# Autostart programs
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue