diff --git a/home-manager/features/desktop/dwm/.xinitrc b/home-manager/features/desktop/dwm/.xinitrc index fe034a4..db472ed 100755 --- a/home-manager/features/desktop/dwm/.xinitrc +++ b/home-manager/features/desktop/dwm/.xinitrc @@ -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 diff --git a/hosts/zion/gui.nix b/hosts/zion/gui.nix index 30429f2..d88bfce 100644 --- a/hosts/zion/gui.nix +++ b/hosts/zion/gui.nix @@ -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"; - } - ]; + }; }