diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-30 11:33:02 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-30 11:33:02 +0400 |
| commit | 21737abbfdb78698e323c0a9490759b427370a74 (patch) | |
| tree | 37b702f5fbdebedfef99490b1b5be92d7c7b9597 /resources | |
| parent | a413f3e91d3538cc16d82880129732df7e31ec86 (diff) | |
| download | niri-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.kdl | 11 |
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. |
