I have had a heck of time trying to figure out how to set position for my displays. I have every combination of values that I could think of that makes sense but nothing returns the proper KDL format. I tried using Google Gemini, Claude, ChatGPT, Kagi Assistant and plain Web Searches all either giving me something I have already tried or something that just plain does not work
I have tried
position = {
x = 3440;
y = 0;
};
position = [ "x=3440" "y=0"];
and some other weird ones that AI gave that are just simply syntactically wrong. I am looking for my main
here is my entire niri config
{
self,
inputs,
...
}: {
flake.nixosModules.nixiri = {
pkgs,
lib,
...
}: {
programs.niri = {
enable = true;
package = self.packages.${pkgs.stdenv.hostPlatform.system}.nixiri;
};
};
perSystem = {
pkgs,
lib,
self',
...
}: {
packages.nixiri = inputs.wrapper-modules.wrappers.niri.wrap {
inherit pkgs;
settings = {
spawn-at-startup = [
(lib.getExe self'.packages.nixtalia)
];
outputs = {
"DP-7" = {
focus-at-startup = true;
variable-refresh-rate = true;
mode = "3440x1440@175";
position = "x=0 y=0";
};
"DP-5" = {
position = "x=3440 y=0";
mode = "2560x1440@165";
};
};
xwayland-satellite.path =
lib.getExe pkgs.xwayland-satellite;
input.keyboard = {
xkb.layout = "us";
};
layout.gaps = 5;
binds = {
"Super+Return".spawn-sh = lib.getExe pkgs.ghostty;
"Super+Q".close-window = null;
"Super+Space".spawn-sh = "${lib.getExe self'.packages.nixtalia} ipc call launcher toggle";
};
};
};
};
}
I have had a heck of time trying to figure out how to set position for my displays. I have every combination of values that I could think of that makes sense but nothing returns the proper KDL format. I tried using Google Gemini, Claude, ChatGPT, Kagi Assistant and plain Web Searches all either giving me something I have already tried or something that just plain does not work
I have tried
and some other weird ones that AI gave that are just simply syntactically wrong. I am looking for my main
here is my entire niri config