mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 14:34:07 +01:00
Documenting how to enable clamshell mode behaviour
parent
e16d974e14
commit
6ee27b88b4
9
Home.md
9
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 <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.
|
||||
|
Loading…
Reference in New Issue
Block a user