From f4e04a43c5a4ea1905fdf707074c9858f969c5ab Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 17 Feb 2023 13:42:47 +0100 Subject: Improve singlemon and dualmon for yoga --- yoga/bin/singlemon | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'yoga/bin/singlemon') diff --git a/yoga/bin/singlemon b/yoga/bin/singlemon index 600a4b9..af782a1 100755 --- a/yoga/bin/singlemon +++ b/yoga/bin/singlemon @@ -1,4 +1,6 @@ #!/bin/bash -xrandr --output eDP --primary --auto --output DisplayPort-1 --off +set -e +EXTERNAL="$(xrandr | grep 'DisplayPort.* connected' | cut -d' ' -f1)" +xrandr --output eDP --primary --auto --output $EXTERNAL --off setbg -xsetwacom set 'Wacom Intuos S Pen stylus' MapToOutput eDP 2>/dev/null +xsetwacom set 'Wacom Intuos S Pen stylus' MapToOutput eDP 2>/dev/null || true -- cgit v1.2.3