Disconnect all known outputs

This commit is contained in:
Nico Schottelius 2018-04-03 14:02:09 +02:00
parent 28db94c9fd
commit 85003c7c36

4
x-off
View file

@ -1,4 +1,6 @@
#!/bin/sh #!/bin/sh
for d in DP1 DP2 HDMI1 HDMI2 VIRTUAL1; do
# Turn off all outputs besides the primary - connected also matches disconnected ;-)
for d in $(xrandr | grep -v primary | awk '/connected/ { print $1 }'); do
xrandr --output $d --off xrandr --output $d --off
done done