From 6ee27b88b471266ef0f7d9c6f17d295108c59a22 Mon Sep 17 00:00:00 2001 From: Tristan Watson <5827304+tristanvvatson@users.noreply.github.com> Date: Fri, 7 Jun 2019 12:03:04 +0100 Subject: [PATCH] Documenting how to enable clamshell mode behaviour --- Home.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Home.md b/Home.md index cf3682d..6a34352 100644 --- a/Home.md +++ b/Home.md @@ -58,6 +58,15 @@ output eDP1 pos 1920 0 res 1600x900 For more details read `man 5 sway` and search for `output`. +#### Clamshell Mode +AKA Closed Display mode. This mode is where your laptop lid is closed and you have external monitor(s) as outputs. As of Sway 1.1 you can use switch events to drive certain functionality, such as disabling an output upon a laptop lid being closed. Pass your laptop output name into the following, which can by found with: `swaymsg -t get_outputs` for example `eDP-1`. + +``` +set $laptop +bindswitch lid:on output $laptop disable +bindswitch lid:off output $laptop enable +``` + #### HiDPI HiDPI can be enabled via `output` and its **scale** option.