niri: add output layout
This commit is contained in:
parent
bb7fa298ca
commit
baa1289ea8
1 changed files with 13 additions and 35 deletions
|
@ -58,43 +58,21 @@ input {
|
||||||
// focus-follows-mouse max-scroll-amount="0%"
|
// focus-follows-mouse max-scroll-amount="0%"
|
||||||
}
|
}
|
||||||
|
|
||||||
// You can configure outputs by their name, which you can find
|
% for output in host.get('outputs', []):
|
||||||
// by running `niri msg outputs` while inside a niri instance.
|
output "${output['match']}" {
|
||||||
// The built-in laptop monitor is usually called "eDP-1".
|
% if 'mode' in output:
|
||||||
// Find more information on the wiki:
|
mode "${output['mode']}"
|
||||||
// https://github.com/YaLTeR/niri/wiki/Configuration:-Outputs
|
% endif
|
||||||
// Remember to uncomment the node by removing "/-"!
|
% if 'scale' in output:
|
||||||
/-output "eDP-1" {
|
scale ${output['scale']}
|
||||||
// Uncomment this line to disable this output.
|
% endif
|
||||||
// off
|
% if 'position' in output:
|
||||||
|
position x=${output['position'][0]} y=${output['position'][1]}
|
||||||
// Resolution and, optionally, refresh rate of the output.
|
% endif
|
||||||
// The format is "<width>x<height>" or "<width>x<height>@<refresh rate>".
|
|
||||||
// If the refresh rate is omitted, niri will pick the highest refresh rate
|
|
||||||
// for the resolution.
|
|
||||||
// If the mode is omitted altogether or is invalid, niri will pick one automatically.
|
|
||||||
// Run `niri msg outputs` while inside a niri instance to list all outputs and their modes.
|
|
||||||
mode "1920x1080@120.030"
|
|
||||||
|
|
||||||
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
|
|
||||||
scale 2
|
|
||||||
|
|
||||||
// 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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% endfor
|
||||||
|
|
||||||
// Settings that influence how windows are positioned and sized.
|
// Settings that influence how windows are positioned and sized.
|
||||||
// Find more information on the wiki:
|
// Find more information on the wiki:
|
||||||
// https://github.com/YaLTeR/niri/wiki/Configuration:-Layout
|
// https://github.com/YaLTeR/niri/wiki/Configuration:-Layout
|
||||||
|
|
Loading…
Add table
Reference in a new issue