diff --git a/README.md b/README.md index 2372096..cf944c6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # gists -uploadtest + +##chechsqlite.py +test sqliteDBs for consistency and passwords + +##sort.py +move/sort files in current dir to subfolder named after mime-type + +##toggle_touchpad +toggle touchpad on notebook on and off via xinput diff --git a/toggle_touchpad b/toggle_touchpad index 5820958..d100262 100755 --- a/toggle_touchpad +++ b/toggle_touchpad @@ -1,6 +1,6 @@ #!/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 +if (xinput list-props ${touchpad_id} | grep "Device Enabled" | grep -Po '\d$' | grep -q "1"); then xinput disable "${touchpad_id}" else xinput enable "${touchpad_id}"