From a0c2c2e74d0fa18ed339650d6875fafcfa32772c Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Sat, 27 Feb 2021 11:49:59 +0200 Subject: [PATCH] Disable laptop screen output when closing lid --- home/.config/sway/conf.d/04-output.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/.config/sway/conf.d/04-output.conf b/home/.config/sway/conf.d/04-output.conf index b6030a4..0a26471 100644 --- a/home/.config/sway/conf.d/04-output.conf +++ b/home/.config/sway/conf.d/04-output.conf @@ -3,3 +3,7 @@ output * bg $wallpaper fill output eDP-1 position 0 0 output HDMI-A-1 position 1920 0 + +# Disable laptop screen when lid is closed +bindswitch --locked lid:on output $laptop disable +bindswitch --locked lid:off output $laptop enable