added toggle_touchpad & checksqlite.py

toggle_touchpad : script to toggle touchpad on notebook on and off
checksqlite.py	: copy/paste script to check sqlite-databases for consistency and more
This commit is contained in:
Tobias Kessels
2017-08-09 20:45:51 +02:00
parent 43df9f47e2
commit 8612e137f4
2 changed files with 44 additions and 0 deletions

7
toggle_touchpad Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
touchpad_id=$(xinput list | grep -i touch | grep -Po '(?<=id=)\d+')
if (xinput list-props 14 | grep "Device Enabled" | grep -Po '\d$' | grep -q "1"); then
xinput disable "${touchpad_id}"
else
xinput enable "${touchpad_id}"
fi