From 62f14d42dce66eaa949f84f06d2de21e5c688e9d Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 26 Mar 2024 21:26:43 +0400 Subject: wiki: Add outputs section --- resources/default-config.kdl | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'resources') diff --git a/resources/default-config.kdl b/resources/default-config.kdl index a996da9f..60848297 100644 --- a/resources/default-config.kdl +++ b/resources/default-config.kdl @@ -45,18 +45,13 @@ input { // You can configure outputs by their name, which you can find // by running `niri msg outputs` while inside a niri instance. // The built-in laptop monitor is usually called "eDP-1". +// Find more information on the wiki: +// https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs // Remember to uncomment the node by removing "/-"! /-output "eDP-1" { // Uncomment this line to disable this output. // off - // Scale is a floating-point number, but at the moment only integer values work. - scale 2.0 - - // 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" - // Resolution and, optionally, refresh rate of the output. // The format is "x" or "x@". // If the refresh rate is omitted, niri will pick the highest refresh rate @@ -65,14 +60,21 @@ input { // Run `niri msg outputs` while inside a niri instance to list all outputs and their modes. mode "1920x1080@120.030" + // Scale is a floating-point number, but at the moment only integer values work. + scale 2.0 + + // 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 has to be taken into account for positioning: + // 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. - // It the position is unset or results in an overlap, the output is instead placed + // If the position is unset or results in an overlap, the output is instead placed // automatically. position x=1280 y=0 } -- cgit