100 lines
No EOL
1.9 KiB
JSON
100 lines
No EOL
1.9 KiB
JSON
{
|
|
"log": {
|
|
"level": "debug",
|
|
"timestamp": "DD.MM.YYYY HH:mm:ss:SS"
|
|
},
|
|
"combos": {
|
|
"delay": 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_f2",
|
|
"key_f4"
|
|
],
|
|
"event": "EV_KEY",
|
|
"type": "keydown",
|
|
"delay": 1000,
|
|
"command": "combo"
|
|
},
|
|
{
|
|
"key": "key_f1",
|
|
"combo": [
|
|
"key_f1",
|
|
"key_f2"
|
|
],
|
|
"event": "EV_KEY",
|
|
"type": "keydown",
|
|
"delay": 1000,
|
|
"command": "combo2"
|
|
},
|
|
{
|
|
"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
|
|
},
|
|
"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"
|
|
]
|
|
},
|
|
"sudo": false
|
|
}
|
|
} |