2022-02-15 04:33:19 +01:00
|
|
|
{
|
|
|
|
"log": {
|
2022-02-23 23:33:40 +01:00
|
|
|
"level": "debug",
|
2022-02-15 04:33:19 +01:00
|
|
|
"timestamp": "DD.MM.YYYY HH:mm:ss:SS"
|
|
|
|
},
|
|
|
|
"watchers": [
|
|
|
|
{
|
2022-03-10 12:29:41 +01:00
|
|
|
"device": "/dev/input/by-id/usb-Chicony_HP_Elite_USB_Keyboard-event-kbd",
|
2022-02-24 00:07:57 +01:00
|
|
|
"restart": true,
|
2022-03-10 12:29:41 +01:00
|
|
|
"sudo": true,
|
2022-02-15 04:33:19 +01:00
|
|
|
"keys": [
|
2022-03-03 03:35:34 +01:00
|
|
|
{
|
|
|
|
"key": "key_f1",
|
|
|
|
"combo": [
|
|
|
|
"key_f2",
|
|
|
|
"key_f3"
|
|
|
|
],
|
|
|
|
"event": "EV_KEY",
|
|
|
|
"type": "keydown",
|
2022-03-03 03:52:34 +01:00
|
|
|
"delay": 3000,
|
2022-03-10 14:05:08 +01:00
|
|
|
"command": "example"
|
2022-03-03 03:35:34 +01:00
|
|
|
},
|
2022-02-15 04:33:19 +01:00
|
|
|
{
|
2022-02-18 00:30:56 +01:00
|
|
|
"key": "key_enter",
|
2022-02-15 04:33:19 +01:00
|
|
|
"type": "keydown",
|
2022-03-10 14:05:08 +01:00
|
|
|
"command": "example2"
|
2022-02-15 04:33:19 +01:00
|
|
|
},
|
|
|
|
{
|
2022-02-18 00:30:56 +01:00
|
|
|
"key": "key_esc",
|
2022-02-15 04:33:19 +01:00
|
|
|
"type": "keyup",
|
2022-03-10 14:05:08 +01:00
|
|
|
"command": "example"
|
2022-02-15 04:33:19 +01:00
|
|
|
},
|
|
|
|
{
|
2022-02-18 00:30:56 +01:00
|
|
|
"key": "key_space",
|
2022-02-15 04:33:19 +01:00
|
|
|
"type": "keyhold",
|
|
|
|
"delay": 1000,
|
2022-03-10 14:05:08 +01:00
|
|
|
"command": "curl"
|
2022-02-15 04:33:19 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2022-03-10 14:05:08 +01:00
|
|
|
],
|
|
|
|
"commands": {
|
|
|
|
"example": {
|
|
|
|
"cmd": "notify-send",
|
|
|
|
"args": [
|
|
|
|
"example",
|
|
|
|
"first example"
|
|
|
|
],
|
|
|
|
"sudo": false
|
|
|
|
},
|
|
|
|
"example2": {
|
|
|
|
"cmd": "notify-send",
|
|
|
|
"args": [
|
|
|
|
"example2",
|
|
|
|
"second example"
|
|
|
|
],
|
|
|
|
"sudo": false
|
|
|
|
},
|
|
|
|
"curl": {
|
|
|
|
"cmd": "curl",
|
|
|
|
"args": [
|
|
|
|
"https://velvettear.de"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sudo": false
|
|
|
|
}
|
2022-02-15 04:33:19 +01:00
|
|
|
}
|