nsbin/x-off
2018-04-03 14:02:09 +02:00

6 lines
204 B
Bash
Executable file

#!/bin/sh
# 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
done