From 28db94c9fd392eb61da1dbed1c6dc724b4823f82 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 3 Apr 2018 12:42:39 +0200 Subject: [PATCH] Derive primary --- xoutput | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xoutput b/xoutput index 40c65ec..d804583 100755 --- a/xoutput +++ b/xoutput @@ -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)