.xinitrc not running xrandr commands to set display resolution
by absenced from LinuxQuestions.org on (#51CG9)
I just got a new 2560x1080 monitor and am trying to set up its resolution on startup. I found the xrandr commands that work for me in the terminal, but when I put them in my .xinitrc, it doesn't work or run them on startup. I'm on arch and using startx. Here's my .xinitrc:
# 2560x1080 Monitor Config
xrandr --output HDMI1 --auto --right-of eDP1 &
xrandr --newmode "resolution" 230.00 2560 2720 2992 3424 1080 1083 1093 1120 -hsync +vsync &
xrandr --addmode HDMI1 "resolution" &
xrandr --output HDMI1 --mode "resolution" &
# Status Bar
slstatus &
# Window manager
exec dwm
Thanks in forward for your help :)


# 2560x1080 Monitor Config
xrandr --output HDMI1 --auto --right-of eDP1 &
xrandr --newmode "resolution" 230.00 2560 2720 2992 3424 1080 1083 1093 1120 -hsync +vsync &
xrandr --addmode HDMI1 "resolution" &
xrandr --output HDMI1 --mode "resolution" &
# Status Bar
slstatus &
# Window manager
exec dwm
Thanks in forward for your help :)