Documenting how to enable clamshell mode behaviour

Tristan Watson 2019-06-07 12:03:04 +01:00
parent e16d974e14
commit 6ee27b88b4

@ -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 <laptop_output_identifier>
bindswitch lid:on output $laptop disable
bindswitch lid:off output $laptop enable
```
#### HiDPI
HiDPI can be enabled via `output` and its **scale** option.