nsbin/x-off

7 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