update yavdr-xorg files

This commit is contained in:
Alexander Grothe
2017-06-21 10:14:35 +02:00
parent 2a039bcd3a
commit 2782daf931
8 changed files with 889 additions and 9 deletions

View File

@@ -0,0 +1,9 @@
[Unit]
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'
[Install]
WantedBy=yavdr-desktop.target