ninwa/example_config.json

113 lines
No EOL
2.1 KiB
JSON

{
"log": {
"level": "debug",
"timestamp": "DD.MM.YYYY HH:mm:ss:SS"
},
"combos": {
"timeout": 5000
},
"watchers": [
{
"device": "/dev/input/by-id/usb-Chicony_HP_Elite_USB_Keyboard-event-kbd",
"restart": true,
"sudo": true,
"keys": [
{
"key": "key_f1",
"combo": [
"key_f5"
],
"event": "EV_KEY",
"type": "keydown",
"command": "combo"
},
{
"key": "key_f1",
"combo": [
"key_f6"
],
"event": "EV_KEY",
"type": "keydown",
"command": "combo2"
},
{
"key": "key_f2",
"combo": [
"key_f5",
"key_f6"
],
"event": "EV_KEY",
"type": "keydown",
"command": "combo3"
},
{
"key": "key_enter",
"type": "keydown",
"event": "EV_KEY",
"command": "example"
},
{
"key": "key_esc",
"type": "keyup",
"event": "EV_KEY",
"command": "example2"
},
{
"key": "key_space",
"type": "keyhold",
"event": "EV_KEY",
"delay": 1000,
"command": "curl"
}
]
}
],
"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
},
"example": {
"cmd": "notify-send",
"args": [
"example #1",
"first example"
],
"sudo": false
},
"example2": {
"cmd": "notify-send",
"args": [
"example #2",
"second example"
],
"sudo": false
},
"curl": {
"cmd": "curl",
"args": [
"https://velvettear.de"
]
}
}
}