You are not logged in.

#1 2017-07-23 11:12:56

karlospv94
Member
Registered: 2016-10-12
Posts: 101

[SOLVED] Execute xorg configuration only if applicable

I have this xorg config file:

➜ cat /etc/X11/xorg.conf.d/10-monitor.conf                                          
Section "Monitor"
  Identifier  "eDP-1"
  Option      "LeftOf" "HDMI-1"
  Option      "Ignore" "true"
EndSection

Section "Monitor"
  Identifier  "HDMI-1"
  VendorName  "LG"
  ModelName "24UD58"
  Option  "RightOf" "eDP-1"
  Option  "DPMS" "true"
  Option  "Primary" "true"
EndSection

But I want It to be applied only when I have the HDMI-1 connected. Is It possible? I have not seen anything related to this in the wiki

Last edited by karlospv94 (2017-07-27 13:29:27)

Offline

#2 2017-07-23 14:42:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,877

Re: [SOLVED] Execute xorg configuration only if applicable

Assuming you're not running a DE that provides likewise functionality, you could go for https://keithp.com/blogs/x-on-resize/ and a script that queries "xrandr -q | grep "HDMI-1 connected" to know whether to "xrandr --output eDP-1 --auto" or "xrandr --output eDP-1 --off" (this assumes you want to toggle the screens, right?)

Offline

#3 2017-07-23 14:49:24

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Execute xorg configuration only if applicable


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2017-07-26 17:11:25

karlospv94
Member
Registered: 2016-10-12
Posts: 101

Re: [SOLVED] Execute xorg configuration only if applicable

I finally managed it with the KDE interface. Even so, it should be great to configure the primary monitor before login. I have being looking for it in https://wiki.archlinux.org/index.php/SDDM but it doesn't seem possible.

Offline

#5 2017-07-26 19:09:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,877

Re: [SOLVED] Execute xorg configuration only if applicable

Offline

#6 2017-07-27 13:29:11

karlospv94
Member
Registered: 2016-10-12
Posts: 101

Re: [SOLVED] Execute xorg configuration only if applicable

seth wrote:

True, thanks! I didn't see it...

Offline

Board footer

Powered by FluxBB