#!/bin/bash device=$(xinput | grep Touchpad | grep -o "id=[0-9]*" | cut -f 2 -d "=") prop=$(xinput list-props $device | grep "Tapping Enabled" | head -n 1 | grep -o "([0-9]*)" | grep -o "[0-9]*") xinput set-prop $device $prop 1