Merged old and new scripts folder + minor changes

This commit is contained in:
2022-02-04 21:15:36 +01:00
parent a65c9aa953
commit 6a0369c19b
5 changed files with 41 additions and 25 deletions

21
connect_wacom.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
echo "Connecting Inutuos BT M.."
bluetoothctl connect $(bluetoothctl devices | grep Intuos | awk '{ print $2 }')
sleep 2
echo "Setting up single monitor setup.."
xinput_out=$(xinput | grep Wacom | awk '{ print $9 }')
wacoms=$(echo $xinput_out | tr " " "\n")
wacoms=${wacoms/id=/}
wacoms=${wacoms/id=/}
for w in $wacoms
do
xinput map-to-output $w DisplayPort-0
done
echo "done."