ninwa/example_config.json

113 lines
2.1 KiB
JSON
Raw Permalink Normal View History

2022-02-15 04:33:19 +01:00
{
"log": {
"level": "debug",
2022-02-15 04:33:19 +01:00
"timestamp": "DD.MM.YYYY HH:mm:ss:SS"
},
2022-03-11 15:47:48 +01:00
"combos": {
"timeout": 5000
2022-03-11 15:47:48 +01:00
},
2022-02-15 04:33:19 +01:00
"watchers": [
{
"device": "/dev/input/by-id/usb-Chicony_HP_Elite_USB_Keyboard-event-kbd",
"restart": true,
"sudo": true,
2022-02-15 04:33:19 +01:00
"keys": [
2022-03-03 03:35:34 +01:00
{
"key": "key_f1",
"combo": [
"key_f5"
],
"event": "EV_KEY",
"type": "keydown",
"command": "combo"
},
{
"key": "key_f1",
"combo": [
"key_f6"
2022-03-03 03:35:34 +01:00
],
"event": "EV_KEY",
"type": "keydown",
"command": "combo2"
2022-03-03 03:35:34 +01:00
},
{
"key": "key_f2",
"combo": [
"key_f5",
"key_f6"
],
"event": "EV_KEY",
"type": "keydown",
"command": "combo3"
},
2022-02-15 04:33:19 +01:00
{
"key": "key_enter",
2022-02-15 04:33:19 +01:00
"type": "keydown",
"event": "EV_KEY",
"command": "example"
2022-02-15 04:33:19 +01:00
},
{
"key": "key_esc",
2022-02-15 04:33:19 +01:00
"type": "keyup",
"event": "EV_KEY",
"command": "example2"
2022-02-15 04:33:19 +01:00
},
{
"key": "key_space",
2022-02-15 04:33:19 +01:00
"type": "keyhold",
"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": {
"combo": {
"cmd": "notify-send",
"args": [
"combo #1",
"first combo"
],
"sudo": false
},
"combo2": {
"cmd": "notify-send",
"args": [
"combo #2",
"second combo"
],
"sudo": false
},
"combo3": {
"cmd": "notify-send",
"args": [
"combo #3",
"third combo"
],
"sudo": false
},
2022-03-10 14:05:08 +01:00
"example": {
"cmd": "notify-send",
"args": [
"example #1",
2022-03-10 14:05:08 +01:00
"first example"
],
"sudo": false
},
"example2": {
"cmd": "notify-send",
"args": [
"example #2",
2022-03-10 14:05:08 +01:00
"second example"
],
"sudo": false
},
"curl": {
"cmd": "curl",
"args": [
"https://velvettear.de"
]
}
2022-03-10 14:05:08 +01:00
}
2022-02-15 04:33:19 +01:00
}