ninwa/config.json

67 lines
1.2 KiB
JSON
Raw 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"
},
"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_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
{
"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
},
{
"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
},
{
"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
}