Article 51CG9 .xinitrc not running xrandr commands to set display resolution

.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 :)latest?d=yIl2AUoC8zA latest?i=9d9LRjW486c:fh_YEKJ7_cQ:F7zBnMy latest?i=9d9LRjW486c:fh_YEKJ7_cQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=9d9LRjW486c:fh_YEKJ7_cQ:gIN9vFw9d9LRjW486c
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments