diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-04-09 16:14:46 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-04-09 16:14:46 +0200 |
commit | aa545098f845e106fd1d641d18ee233b2f879fd2 (patch) | |
tree | 84dc7e766c680b01fe82b7c85237765c7d9faecd /touchpad.sh | |
parent | ae527d102aee15b0da503056ea1ef4315e7eed83 (diff) | |
download | scripts-aa545098f845e106fd1d641d18ee233b2f879fd2.tar.gz scripts-aa545098f845e106fd1d641d18ee233b2f879fd2.zip |
Simple touchpad toggling script.
Diffstat (limited to 'touchpad.sh')
-rwxr-xr-x | touchpad.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/touchpad.sh b/touchpad.sh new file mode 100755 index 0000000..0d30c4c --- /dev/null +++ b/touchpad.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# Toggles the touchpad + +device="PS/2 Generic Mouse" +[ "$(xinput --list-props "$device" | grep -e "Device Enabled (.*):.*1")" ] && xinput disable "$device" || xinput enable "$device" |