Detect primary automatically

This commit is contained in:
Nico Schottelius 2018-04-03 09:49:00 +02:00
parent 7cb93260bd
commit 5b663f46a4

2
x-auto
View file

@ -5,7 +5,7 @@ if [ "$#" -lt 1 ]; then
set -- "$@" above
fi
primary=eDP1
primary=$(xrandr | awk '/primary/ { print $1}')
# position: something xrandr understands
position=$1; shift