Skip to content

issues with dual monitor

so i have 2 monitors connected to my arch system.

i want the monitor on the right to be the primary monitor but the system keeps making the one on the left the primary one.

i found this command to change the primary monitor but it doesn't stay in effect after a reboot

xrandr --output DP-2 --primary  

only way ive combated this is to put that command in my bashrc but i figured there's a better way to make that permanent. i tried googling it but couldnt get an answer...

1 points12 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
669cgi

Author

22
posts
41
comments
5
media
View profile

15 comments

If you're using Xorg, put it in ~/.xinitrc before executing your WM.

3 points

i did this and now its not changing the screens at all

Wed Apr 19 12:12 xxxxx:/home/xxxxx $cd ~/
Wed Apr 19 12:12 xxxxx:/home/xxxxx $cat .xinitrc 
#!/bin/sh
xrandr --output DP-2 --primary
1 points
unknown author

Deleted before we saved it.

1 points
unknown author

Deleted before we saved it.

1 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.