Add topic regarding managing external displays using Kanshi to FAQ
Browse files at this commit87dc96fa69738b5d57562a0a556efa7def138539Parent: ba6e5e01 changed file +18 -0
- docs/wiki/FAQ.md +18 -0
docs/wiki/FAQ.mdmodified+18 -0
| @@ -124,3 +124,21 @@ binds { | |||
| 124 | Super+Alt+L allow-when-locked=true { spawn "swaylock"; } | 124 | Super+Alt+L allow-when-locked=true { spawn "swaylock"; } |
| 125 | } | 125 | } |
| 126 | ``` | 126 | ``` |
| 127 | + | ||
| 128 | +### How do I change output configuration based on connected monitors? | ||
| 129 | + | ||
| 130 | +If you require different output configurations depending on what outputs are connected then you can use [Kanshi](https://gitlab.freedesktop.org/emersion/kanshi). | ||
| 131 | + | ||
| 132 | +Kanshi has its own simple configuration and communicates with niri via IPC. You may want to launch kanshi from the niri config.kdl e.g. `spawn-at-startup "/usr/bin/kanshi"` | ||
| 133 | + | ||
| 134 | +For example, if you wish to scale your laptop display differently when an external monitor is connected, you might use a Kanshi config like this: | ||
| 135 | +``` | ||
| 136 | +profile { | ||
| 137 | + output eDP-1 enable scale 1.0 | ||
| 138 | +} | ||
| 139 | + | ||
| 140 | +profile { | ||
| 141 | + output HDMI-A-1 enable scale 1.0 position 0,0 | ||
| 142 | + output eDP-1 enable scale 1.25 position 1920,0 | ||
| 143 | +} | ||
| 144 | +``` | ||