Add new scripts and install/uninstall

This commit is contained in:
Pim Nelissen
2024-07-15 09:38:57 +02:00
parent b122fe6da4
commit 88205af3a5
10 changed files with 60 additions and 0 deletions

10
scripts/pcs-toggle-touchpad Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
ID=`xinput list | grep -Eio '(touchpad|glidepoint)\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
STATE=`xinput list-props $ID | grep 'Device Enabled' | awk '{print $4}'`
if [ $STATE -eq 1 ]
then
xinput disable $ID
else
xinput enable $ID
fi