#!/bin/bash OUT=$(xinput list-props 'SynPS/2 Synaptics TouchPad' | awk '/^\tDevice Enabled \([0-9]+\):\t[01]/ {print $NF}') echo -n 'Trackpad'