device_if, device_unless, device_exists_if, device_exists_unless

Change an event if/unless the event is from specified device. Example Change 1 key to f1 if the device is Apple keyboard. { "type": "basic", "from": { "key_code": "1", "modifiers": { "optional": ["any"] } }, "to": [ { "key_code": "f1" } ], "conditions": [ { "type": "device_if", "identifiers": [ { "…