blob: 1064e1cc619689b46a0359d960ec6ad8ffbd4c8a (
plain) (
tree)
|
|
#!/bin/sh
set -x
# screens=$(xrandr --listmonitors | tail -n +2 | rev | cut -d " " -f 1 | rev)
screens=$(xrandr -q | grep -v -e "^ " -e "disconnected" | tail -n +2 | cut -d " " -f 1)
screen_master=$(echo "${screens}" | head -n 1)
xrandr -s 0
xrandr --output "${screen_master}" --auto
for screen in ${screens}; do
xrandr --output "${screen}" --auto --right-of "${screen_master}"
screen_master="${screen}"
done
|