eff86832c5
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
20 lines
349 B
Bash
Executable file
20 lines
349 B
Bash
Executable file
#!/bin/sh
|
|
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "$0 position"
|
|
exit 1
|
|
fi
|
|
|
|
primary=eDP1
|
|
|
|
# position: something xrandr understands
|
|
position=$1; shift
|
|
|
|
# Turn all off
|
|
for dp in $(xrandr | awk '/connected/ { print $1 }'); do
|
|
# Skip primary display
|
|
[ "$dp" = "$primary" ] && continue
|
|
|
|
xrandr --output "$dp" --auto --$position "$primary"
|
|
done
|