aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTrevor Campbell <trevor@shartrec.com>2025-10-12 17:29:51 +1100
committerIvan Molodetskikh <yalterz@gmail.com>2025-10-14 10:18:22 +0300
commit87dc96fa69738b5d57562a0a556efa7def138539 (patch)
tree60502919d23d69782c076d98a20cecfec89be5ed /docs
parentba6e5e082a79901dc89b0d49c5da1b769d652aec (diff)
downloadniri-87dc96fa69738b5d57562a0a556efa7def138539.tar.gz
niri-87dc96fa69738b5d57562a0a556efa7def138539.tar.bz2
niri-87dc96fa69738b5d57562a0a556efa7def138539.zip
Add topic regarding managing external displays using Kanshi to FAQ
Diffstat (limited to 'docs')
-rw-r--r--docs/wiki/FAQ.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/wiki/FAQ.md b/docs/wiki/FAQ.md
index e8235566..3dd61867 100644
--- a/docs/wiki/FAQ.md
+++ b/docs/wiki/FAQ.md
@@ -124,3 +124,21 @@ binds {
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
+}
+```