toggle_touchpad : script to toggle touchpad on notebook on and off checksqlite.py : copy/paste script to check sqlite-databases for consistency and more
8 lines
242 B
Bash
Executable File
8 lines
242 B
Bash
Executable File
#!/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
|