You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
355 B
Fish

function tp
if test $touchpadEnabled = 1
set touchpadEnabled 0
echo Disabled Trackpad
xinput disable "Atmel maXTouch Touchpad"
unclutter --timeout 0 &
else
set touchpadEnabled 1
echo Enabled Trackpad
xinput enable "Atmel maXTouch Touchpad"
kill (jobs -c | grep unclutter) 2>/dev/null
end
end