feat: touchpad script

This commit is contained in:
Filippo Ferrari 2024-02-16 12:41:16 +01:00
parent 4ee606629d
commit 306f8ad364

9
.local/bin/touchpad Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
# xinput disable "Synaptics TM3145-005"
value=$(xinput --list-props "Synaptics TM3145-005" | head -n 2 | tail -c 2)
if [[ $value -eq 0 ]]
then
xinput enable "Synaptics TM3145-005"
else
xinput disable "Synaptics TM3145-005"
fi