nsbin/xrandr-update.sh

7 lines
177 B
Bash
Raw Normal View History

#!/bin/sh
# Enable connected, disable disconnected outputs
for output in $(xrandr -q | grep -v ^Screen | awk '/^[^ ]/ { print $1 }'); do
xrandr --output $output --auto
done