Improve switching primary and secondary display

This commit is contained in:
Alexander Grothe
2018-09-30 10:17:20 +02:00
parent cd10eb1970
commit 2d966364e5
5 changed files with 535 additions and 473 deletions

View File

@@ -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