Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 9139  / 1 Year ago, sun, march 5, 2023, 10:04:43

I'm using ubuntu server with xmonad. I configure my dual monitor setup with xrandr but I can't get it to run on startup. My .xinitrc looks like this:



# WM
xmonad

# dual monitor
xrandr --output HDMI1 --auto
xrandr --output VGA1 --auto --left-of HDMI1


The settings are not being applied. How should I go about this?


More From » startup

 Answers
3

Try it with an ampersand (&) behind xmonad. So it will be executed in the background. And the two xrandr commands can be executed.



# dual monitor
xrandr --output HDMI1 --auto
xrandr --output VGA1 --auto --left-of HDMI1

# WM
xmonad

[#28795] Monday, March 6, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
confiorc

Total Points: 42
Total Questions: 121
Total Answers: 123

Location: India
Member since Wed, Aug 26, 2020
4 Years ago
;