summaryrefslogtreecommitdiff
path: root/niri/cfg/monitor.kdl
diff options
context:
space:
mode:
Diffstat (limited to 'niri/cfg/monitor.kdl')
-rw-r--r--niri/cfg/monitor.kdl18
1 files changed, 18 insertions, 0 deletions
diff --git a/niri/cfg/monitor.kdl b/niri/cfg/monitor.kdl
new file mode 100644
index 0000000..59b9af3
--- /dev/null
+++ b/niri/cfg/monitor.kdl
@@ -0,0 +1,18 @@
+output "eDP-1" {
+ mode "1920x1080@60" // To know the displays run `niri msg outputs`
+ scale 1.3 // Integer fractional scaling for percentage fractional scaling
+ // Transform allows to rotate the output counter-clockwise, valid values are:
+ // normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
+ transform "normal"
+
+ // 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 and rotation 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.
+ // If the position is unset or results in an overlap, the output is instead placed
+ // automatically.
+ position x=1280 y=0
+}