From c66ca460c0ae5066f09e908ed3ee434ea6be74e2 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 19 Jan 2025 20:06:33 +0000 Subject: [PATCH] fix: desktop won't launch if xrandr fails --- modules/nixos/hardware/monitors.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/modules/nixos/hardware/monitors.nix b/modules/nixos/hardware/monitors.nix index aa865f2..c05417d 100644 --- a/modules/nixos/hardware/monitors.nix +++ b/modules/nixos/hardware/monitors.nix @@ -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" ''; }; };