aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-09-30 11:33:02 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-09-30 11:33:02 +0400
commit21737abbfdb78698e323c0a9490759b427370a74 (patch)
tree37b702f5fbdebedfef99490b1b5be92d7c7b9597 /resources
parenta413f3e91d3538cc16d82880129732df7e31ec86 (diff)
downloadniri-21737abbfdb78698e323c0a9490759b427370a74.tar.gz
niri-21737abbfdb78698e323c0a9490759b427370a74.tar.bz2
niri-21737abbfdb78698e323c0a9490759b427370a74.zip
Make output position configurable
Implements https://github.com/YaLTeR/niri/issues/14
Diffstat (limited to 'resources')
-rw-r--r--resources/default-config.kdl11
1 files changed, 11 insertions, 0 deletions
diff --git a/resources/default-config.kdl b/resources/default-config.kdl
index 5ed8e7ce..8c5a9527 100644
--- a/resources/default-config.kdl
+++ b/resources/default-config.kdl
@@ -33,6 +33,17 @@ input {
/-output "eDP-1" {
// Scale is a floating-point number, but at the moment only integer values work.
scale 2.0
+
+ // Position of the output in the global coordinate space.
+ // This affects directional monitor actions like "focus-monitor-left", and cursor movement.
+ // The cursor can only move between directly adjacent outputs.
+ // Output scale has to be taken into account for positioning:
+ // outputs are sized in logical, or scaled, pixels.
+ // For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080,
+ // so to put another output directly adjacent to it on the right, set its x to 1920.
+ // It the position is unset or results in an overlap, the output is instead placed
+ // automatically.
+ position x=1280 y=0
}
// Add lines like this to spawn processes at startup.