Derive primary

This commit is contained in:
Nico Schottelius 2018-04-03 12:42:39 +02:00
parent ec6667f1f4
commit 28db94c9fd
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@
mode="${1:-normal}"
location="${2:-above}"
resolution="${3:-1024x768}"
#primary="${4:-$(xrandr | awk '/primary/ { print $1 }')}"
primary="eDP1"
primary="${4:-$(xrandr | awk '/primary/ { print $1 }')}"
xrandr=$(xrandr)
disconnected=$(echo "$xrandr" | grep disconnected | cut -d' ' -f1)