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.