#!/bin/sh if xinput list | grep -iq "touchpad"; then device_id=$(xinput list | grep -i touchpad | awk '{print $6}' | sed 's/id=//') option_id=$(xinput list-props $device_id | grep -i 'Tapping Enabled' | head -n1 | awk '{print $4}' | tr -d '():') xinput set-prop $device_id $option_id 1 fi