x-off 204 Bytes
Newer Older
Nico Schottelius's avatar
Nico Schottelius committed
1
#!/bin/sh
2 3 4

# Turn off all outputs besides the primary - connected also matches disconnected ;-)
for d in $(xrandr | grep -v primary | awk '/connected/ { print $1 }'); do
5 6
    xrandr --output $d --off
done