Files
scripts/shell/rnote_mapper.sh
2025-10-03 13:29:53 +02:00

19 lines
541 B
Bash
Executable File

#!/bin/sh
echo "okay"
libinput debug-events | while read -r line; do
if echo "$line" | grep -q 'TABLET_PAD_BUTTON.*10 pressed'; then
echo "Tablet Button 6 pressed. Launching Rnote..."
rnote &
# optional: add `disown` if you don't want it tied to terminal
fi
#if echo "$line" | grep -q 'TABLET_TOOL_BUTTON.*pressed'; then
# ydotool click --hold 0 # hold left mouse button
#fi
#if echo "$line" | grep -q 'TABLET_TOOL_BUTTON.*released'; then
# ydotool click --release 0
#fi
done