Detect primary automatically
This commit is contained in:
parent
7cb93260bd
commit
5b663f46a4
1 changed files with 1 additions and 1 deletions
2
x-auto
2
x-auto
|
@ -5,7 +5,7 @@ if [ "$#" -lt 1 ]; then
|
||||||
set -- "$@" above
|
set -- "$@" above
|
||||||
fi
|
fi
|
||||||
|
|
||||||
primary=eDP1
|
primary=$(xrandr | awk '/primary/ { print $1}')
|
||||||
|
|
||||||
# position: something xrandr understands
|
# position: something xrandr understands
|
||||||
position=$1; shift
|
position=$1; shift
|
||||||
|
|
Loading…
Reference in a new issue