Improve switching primary and secondary display
This commit is contained in:
@@ -3,7 +3,7 @@ Description=Detect second DISPLAY using xrandr
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/bash -c 'export DISPLAY=$DISPLAY.1; xrandr -q | grep "connected" && echo "DISPLAY=$DISPLAY" > ~/.second_display || rm -f ~/.second_display'
|
||||
ExecStart=%h/bin/detect-second-display
|
||||
|
||||
[Install]
|
||||
WantedBy=yavdr-desktop.target
|
||||
|
||||
Reference in New Issue
Block a user