From 3cd06b22069c009b8c5fea2d5fad5f996667d2e3 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Tue, 16 Aug 2022 01:46:04 +0300 Subject: huge update-o --- scripts/toggle-trackpoint.sh | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100755 scripts/toggle-trackpoint.sh (limited to 'scripts/toggle-trackpoint.sh') diff --git a/scripts/toggle-trackpoint.sh b/scripts/toggle-trackpoint.sh deleted file mode 100755 index d385553..0000000 --- a/scripts/toggle-trackpoint.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -ID=$(xinput list | grep -Eo 'TrackPoint\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}') -STATE=$(xinput list-props "$ID" | awk '/Device Enabled/ {print $4}') - -if [ "$STATE" = 1 ]; then - xinput disable "$ID" -else - xinput enable "$ID" -fi -- cgit 1.4.1