-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththingino-button.conf
34 lines (25 loc) · 1.35 KB
/
thingino-button.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Configuration file for thingino-button
# Device to be monitored for input events
# Format: DEVICE=<device_path>
DEVICE=/dev/input/event0
# Key action mappings
# Format: KEY_<key_name> <action> <time> <command>
# - <key_name>: Name of the key (e.g., ENTER, 1, 2, etc.)
# - <action>: Type of action (PRESS, RELEASE, TIMED, TIMED_FIRE)
# - <time>: Time in seconds for TIMED, TIMED_FIRE actions (for PRESS and RELEASE actions, use 0)
# - <command>: Command to execute when the action occurs
# Example mappings:
# Execute /bin/command1 when the ENTER key is pressed (no time required for PRESS)
KEY_ENTER PRESS 0 /bin/command1
# Execute /bin/command2 when the ENTER key is released (no time required for RELEASE)
KEY_ENTER RELEASE 0 /bin/command2
# Execute /bin/command-timed press 0.1 when the ENTER key is held for 0.1 seconds and released
KEY_ENTER TIMED 0.1 /bin/command-timed press
# Execute /bin/command-timed 3 when the ENTER key is held for 3 seconds and released
KEY_ENTER TIMED 3 /bin/command-timed
# Execute /bin/command-timed 5 when the ENTER key is held for 5 seconds and released
KEY_ENTER TIMED 5 /bin/command-timed
# Execute /bin/command-timed 20 when the ENTER key is held for 20 seconds and released
KEY_ENTER TIMED 20 /bin/command-timed
# Execute /bin/command-timed 20 when the ENTER key is held for 20 seconds
KEY_ENTER TIMED_FIRE 20 /bin/command-timed