What is an active monitor, anyway?

This commit is contained in:
Felix Van der Jeugt 2020-01-20 14:10:50 +01:00
parent 04f49b2046
commit 8a51c7df9e
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -2,9 +2,9 @@
xset dpms 0 0 0
dp1="$(xrandr --listactivemonitors | grep ' DP1$')"
dp1_1="$(xrandr --listactivemonitors | grep ' DP1-1$')"
dp1_2="$(xrandr --listactivemonitors | grep ' DP1-2$')"
dp1="$(xrandr | grep '^DP1 connected')"
dp1_1="$(xrandr | grep '^DP1-1 connected')"
dp1_2="$(xrandr | grep '^DP1-2 connected')"
if [ -n "$dp1" -a -z "$dp1_1" -a -z "$dp1_2" ]; then
xrandr --output DP1 --auto --above eDP1