From aa545098f845e106fd1d641d18ee233b2f879fd2 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Tue, 9 Apr 2019 16:14:46 +0200 Subject: Simple touchpad toggling script. --- touchpad.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 touchpad.sh (limited to 'touchpad.sh') 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" -- cgit v1.2.1