fix: desktop won't launch if xrandr fails

This commit is contained in:
Noah Masur 2025-01-19 20:06:33 +00:00
parent 2b36140fbf
commit c66ca460c0
No known key found for this signature in database

View File

@ -37,17 +37,16 @@
# Set up screen position and rotation
setupCommands = ''
${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-1 \
--mode 1920x1200 \
--pos 2560x0 \
--rotate left \
--output DisplayPort-0 \
--primary \
--mode 2560x1440 \
--pos 0x560 \
--rotate normal \
--rate 120 \
--mode 2560x1440 \
--rate 165 \
--output DisplayPort-2 \
--right-of DisplayPort-1 \
--rotate left \
--output DVI-0 --off \
--output DVI-1 --off \
|| echo "xrandr failed"
'';
};
};