kardorf: setup hyprland for three monitors

This commit is contained in:
2026-10-06 17:07:18 +02:00
parent 861fad71f1
commit 8d912625f5
2 changed files with 32 additions and 22 deletions
+1 -1
View File
@@ -115,7 +115,7 @@
+ "-- Monitor config\n" + "-- Monitor config\n"
+ lib.concatStringsSep "\n" ( + lib.concatStringsSep "\n" (
map ( map (
monitor: "hl.monitor({ output = \"${monitor.name}\", mode = \"preferred\", position = \"auto\", scale = \"auto\", mirror = \"\"})" monitor: "hl.monitor({ output = \"${monitor.name}\", mode = \"${toString monitor.width}x${toString monitor.height}@${toString monitor.refreshRate}\", position = \"${monitor.position}\", scale = \"auto\", mirror = \"\"})"
) )
config.monitors config.monitors
) )
+31 -21
View File
@@ -26,34 +26,44 @@
is-nixos = true; is-nixos = true;
terminal = "alacritty"; terminal = "alacritty";
# --------- --------- # ---------- -------- ---------
# | DVI-D-1 | | DVI-D-2 | # | HDMI-A-1 | | DP-1 | | DVI-D-1 |
# --------- --------- # ---------- -------- ---------
monitors = [ monitors = [
{ {
name = "DVI-D-1"; name = "HDMI-A-1";
width = 1680; width = 1920;
height = 1050; height = 1080;
position = "0x0";
workspaces = [ workspaces = [
"1"
"2"
"3"
"4"
"5"
];
primary = true;
}
{
name = "DVI-D-2";
width = 1680;
height = 1050;
workspaces = [
"6"
"7"
"8" "8"
"9" "9"
"10" "10"
]; ];
} }
{
name = "DP-1";
width = 1680;
height = 1050;
position = "1920x0";
workspaces = [
"1"
"2"
"3"
"4"
];
primary = true;
}
{
name = "DVI-D-1";
width = 1680;
height = 1050;
position = "3600x0";
workspaces = [
"5"
"6"
"7"
];
}
]; ];
} }