diff options
author | zachir <zachir@librem.one> | 2023-05-23 15:01:20 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-05-23 15:01:20 -0500 |
commit | 32d82fba2c762efccb356c2a0b3e408068cc6e03 (patch) | |
tree | ddda5e6f41956e625eb40a2191309b5542ee5c4c /toggletouchpad | |
parent | f3e17b53a3351fa6f3c090a76c7680084d1d2eac (diff) |
Total reorganization, we're moving on from X
Diffstat (limited to 'toggletouchpad')
-rwxr-xr-x | toggletouchpad | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/toggletouchpad b/toggletouchpad deleted file mode 100755 index f00dd4f..0000000 --- a/toggletouchpad +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -type synclient >/dev/null 2>&1 && synclient >/dev/null 2>&1 && SYNCLIENT=y || type xinput >/dev/null 2>&1 && XINPUT=y || echo "This script requires X11" -[ -n "$SYNCLIENT" ] && TOUCHPADSTATE=`synclient | grep "TouchpadOff" | sed -e "s/^\s*TouchpadOff\s*=\s*//" -e "s/1/y/" -e "s/0/n/"` -[ -n "$XINPUT" ] && DEVICE=`xinput | grep -i touchpad | sed -e 's/.*id\=//' -e 's/\s*\[.*//'` -#echo "$DEVICE" -[ -n "$XINPUT" -a -n "$DEVICE" ] && TOUCHPADSTATE=`xinput list-props $DEVICE | grep -i 'device enabled' | sed -e 's/.*:\s*//' -e 's/0/y/' -e 's/1/n/'` -#echo "$TOUCHPADSTATE $SYNCLIENT $XINPUT" -[ -z "$SYNCLIENT" -a -z "$XINPUT" -o -z "$TOUCHPADSTATE" ] && echo "Couldn't use either synclient or xinput" && exit -[ ! "$TOUCHPADSTATE" = "y" ] || unset TOUCHPADSTATE -[ -z "$TOUCHPADSTATE" -a -n "$SYNCLIENT" ] && synclient "touchpadoff=0" && notify-send "Enabled Touchpad" -[ -n "$TOUCHPADSTATE" -a -n "$SYNCLIENT" ] && synclient "touchpadoff=1" && notify-send "Disabled Touchpad" -[ -z "$TOUCHPADSTATE" -a -n "$XINPUT" ] && xinput enable "$DEVICE" && notify-send "Enabled Touchpad" -[ -n "$TOUCHPADSTATE" -a -n "$XINPUT" ] && xinput disable "$DEVICE" && notify-send "Disabled Touchpad" |