mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Add topic regarding managing external displays using Kanshi to FAQ
This commit is contained in:
committed by
Ivan Molodetskikh
parent
ba6e5e082a
commit
87dc96fa69
@@ -124,3 +124,21 @@ binds {
|
|||||||
Super+Alt+L allow-when-locked=true { spawn "swaylock"; }
|
Super+Alt+L allow-when-locked=true { spawn "swaylock"; }
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### How do I change output configuration based on connected monitors?
|
||||||
|
|
||||||
|
If you require different output configurations depending on what outputs are connected then you can use [Kanshi](https://gitlab.freedesktop.org/emersion/kanshi).
|
||||||
|
|
||||||
|
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"`
|
||||||
|
|
||||||
|
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:
|
||||||
|
```
|
||||||
|
profile {
|
||||||
|
output eDP-1 enable scale 1.0
|
||||||
|
}
|
||||||
|
|
||||||
|
profile {
|
||||||
|
output HDMI-A-1 enable scale 1.0 position 0,0
|
||||||
|
output eDP-1 enable scale 1.25 position 1920,0
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user