From b11d0005e9fe85a84d8392ce42d111ce974f0ae8 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Wed, 1 Jun 2016 08:33:00 -0500 Subject: [PATCH] Dynamically get xinput id for touchscreen to map output --- .xinitrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.xinitrc b/.xinitrc index e125664..80af2cf 100644 --- a/.xinitrc +++ b/.xinitrc @@ -41,7 +41,7 @@ if [ "$(hostname)" == "dtarchaio" ]; then # Set the bell to be different from Matt's xset b 75 750 50 # Set Touchscreen to only work on main display - xinput --map-to-output 10 eDP1 + xinput --map-to-output $(xinput list --id-only "Advanced Silicon S.A CoolTouch(TM) System") eDP1 fi # If numlockx is installed, activate it