mirror of
https://github.com/Ascyii/scripts.git
synced 2025-12-31 20:34:25 -05:00
19 lines
541 B
Bash
Executable File
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
|
|
|