From e43eb1177872f52e949fb5f0f93396ed94b0d093 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 2 Aug 2026 14:48:29 +0200 Subject: move to chezmoi --- home/dot_local/share/bin/executable_wacomtouch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 home/dot_local/share/bin/executable_wacomtouch (limited to 'home/dot_local/share/bin/executable_wacomtouch') diff --git a/home/dot_local/share/bin/executable_wacomtouch b/home/dot_local/share/bin/executable_wacomtouch new file mode 100644 index 0000000..6c1e51a --- /dev/null +++ b/home/dot_local/share/bin/executable_wacomtouch @@ -0,0 +1,14 @@ +#!/bin/sh +# print if wacom tablet has touch on or off +bye() { + echo $1 + exit +} + +[ ! -e /dev/input/by-id/usb-Wacom_Co._Ltd._Intuos_PTS-if01-event-mouse ] && bye + +if evtest --query /dev/input/by-id/usb-Wacom_Co._Ltd._Intuos_PTS-if01-event-mouse EV_SW SW_MUTE_DEVICE; then + bye "touch on" +else + bye "touch off" +fi -- cgit v1.2.3