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",
|
2022-03-10 17:06:44 +01:00
|
|
|
"key_f4"
|
|
|
|
],
|
|
|
|
"event": "EV_KEY",
|
|
|
|
"type": "keydown",
|
|
|
|
"delay": 1000,
|
|
|
|
"command": "combo"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "key_f1",
|
|
|
|
"combo": [
|
2022-03-03 03:35:34 +01:00
|
|
|
"key_f3"
|
|
|
|
],
|
|
|
|
"event": "EV_KEY",
|
|
|
|
"type": "keydown",
|
2022-03-10 17:06:44 +01:00
|
|
|
"delay": 1000,
|
|
|
|
"command": "combo2"
|
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 17:06:44 +01:00
|
|
|
"event": "EV_KEY",
|
|
|
|
"command": "example"
|
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 17:06:44 +01:00
|
|
|
"event": "EV_KEY",
|
|
|
|
"command": "example2"
|
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",
|
2022-03-10 17:06:44 +01:00
|
|
|
"event": "EV_KEY",
|
2022-02-15 04:33:19 +01:00
|
|
|
"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": {
|
2022-03-10 17:06:44 +01:00
|
|
|
"combo": {
|
|
|
|
"cmd": "notify-send",
|
|
|
|
"args": [
|
|
|
|
"combo #1",
|
|
|
|
"first combo"
|
|
|
|
],
|
|
|
|
"sudo": false
|
|
|
|
},
|
|
|
|
"combo2": {
|
|
|
|
"cmd": "notify-send",
|
|
|
|
"args": [
|
|
|
|
"combo #2",
|
|
|
|
"second combo"
|
|
|
|
],
|
|
|
|
"sudo": false
|
|
|
|
},
|
2022-03-10 14:05:08 +01:00
|
|
|
"example": {
|
|
|
|
"cmd": "notify-send",
|
|
|
|
"args": [
|
2022-03-10 17:06:44 +01:00
|
|
|
"example #1",
|
2022-03-10 14:05:08 +01:00
|
|
|
"first example"
|
|
|
|
],
|
|
|
|
"sudo": false
|
|
|
|
},
|
|
|
|
"example2": {
|
|
|
|
"cmd": "notify-send",
|
|
|
|
"args": [
|
2022-03-10 17:06:44 +01:00
|
|
|
"example #2",
|
2022-03-10 14:05:08 +01:00
|
|
|
"second example"
|
|
|
|
],
|
|
|
|
"sudo": false
|
|
|
|
},
|
|
|
|
"curl": {
|
|
|
|
"cmd": "curl",
|
|
|
|
"args": [
|
|
|
|
"https://velvettear.de"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sudo": false
|
|
|
|
}
|
2022-02-15 04:33:19 +01:00
|
|
|
}
|