monitor config

This commit is contained in:
2024-04-19 20:48:43 +02:00
parent 809641310d
commit b4af66a305
2 changed files with 11 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/sh
# screenlayout setup for odin
bash main.sh
# bash main.sh
# start some nice programs
# if [ -d /etc/X11/xinit/xinitrc.d ] ; then

View File

@@ -19,6 +19,15 @@
startx = {
enable = true;
};
setupCommands = ''
LEFT='HDMI-0'
CENTER='DP-2'
RIGHT='DP-0'
${pkgs.xorg.xrandr}/bin/xrandr \
--output $LEFT --mode 1920x1080 --rate 60.00 --pos 0x360 \
--output $CENTER --primary --mode 2560x1440 --rate 74.92 --pos 1920x0 \
--output $RIGHT --mode 2560x1440 --rate 74.92 --pos 4480x0
'';
};
windowManager = {
@@ -32,20 +41,6 @@
enable = false;
};
};
xrandrHeads = [
{
output = "HDMI-0";
}
{
output = "DP-2";
primary = true;
rate = "74.92";
}
{
output = "DP-0";
rate = "74.92";
}
];
};
}