#!/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."