From 306f8ad364fdf8225d4f4a80f809bc03075ecac1 Mon Sep 17 00:00:00 2001 From: Filippo Ferrari Date: Fri, 16 Feb 2024 12:41:16 +0100 Subject: [PATCH] feat: touchpad script --- .local/bin/touchpad | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .local/bin/touchpad diff --git a/.local/bin/touchpad b/.local/bin/touchpad new file mode 100755 index 0000000..dbceff9 --- /dev/null +++ b/.local/bin/touchpad @@ -0,0 +1,9 @@ +#!/bin/bash +# xinput disable "Synaptics TM3145-005" +value=$(xinput --list-props "Synaptics TM3145-005" | head -n 2 | tail -c 2) +if [[ $value -eq 0 ]] +then + xinput enable "Synaptics TM3145-005" +else + xinput disable "Synaptics TM3145-005" +fi