#!/bin/bash if [ ! "$(which syndaemon)" ]; then echo "ERROR: xserver-xorg-input-synaptics is not installed" >&2 zenity --error --width 300 --title "StartUpConfig" --text "xserver-xorg-input-synaptics is not installed" exit 1 fi # disable tapping while typing #syndaemon -i 1.0 -K -R -t -d # ===== clicklock ===== # # Synaptics dev_id=$(xinput list | grep -i "Synaptics" | grep -i 'Touchpad' | egrep -o 'id=[0-9]+' | egrep -o '[0-9]+') lock_id=$(xinput list-props ${dev_id} | egrep 'Locked Drags \(' | egrep -o '\([0-9]+\)' | egrep -o '[0-9]+') time_id=$(xinput list-props 14 | egrep 'Locked Drags Timeout' | egrep -o '\([0-9]+\)' | egrep -o '[0-9]+') xinput set-prop ${dev_id} ${lock_id} 1 xinput set-prop ${dev_id} ${time_id} 60000 # DELL dev_id=$(xinput list | grep -i "DELL" | grep -i 'Touchpad' | egrep -o 'id=[0-9]+' | egrep -o '[0-9]+') lock_id=$(xinput list-props ${dev_id} | egrep 'Locked Drags \(' | egrep -o '\([0-9]+\)' | egrep -o '[0-9]+') time_id=$(xinput list-props 14 | egrep 'Locked Drags Timeout' | egrep -o '\([0-9]+\)' | egrep -o '[0-9]+') xinput set-prop ${dev_id} ${lock_id} 1 xinput set-prop ${dev_id} ${time_id} 60000