diff --git a/examples/ferris-sweep.json b/examples/ferris-sweep.json new file mode 100644 index 0000000..3ee9db5 --- /dev/null +++ b/examples/ferris-sweep.json @@ -0,0 +1,172 @@ +{ + "title": "lushlayers-ferris-sweep", + "rules": [ + { + "description": "lushlayers-ferris-sweep", + "manipulators": [ + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "vendor_id": 7504, + "product_id": 24926 + } + ] + }, + { + "type": "variable_if", + "name": "layer", + "value": 0 + } + ], + "from": { + "key_code": "f19" + }, + "to": [ + { + "shell_command": "open -a Slack" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "vendor_id": 7504, + "product_id": 24926 + } + ] + }, + { + "type": "variable_if", + "name": "layer", + "value": 0 + } + ], + "from": { + "key_code": "f20" + }, + "to": [ + { + "shell_command": "open -a Vivaldi" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "vendor_id": 7504, + "product_id": 24926 + } + ] + }, + { + "type": "variable_if", + "name": "layer", + "value": 0 + } + ], + "from": { + "key_code": "f21" + }, + "to": [ + { + "shell_command": "open -a Alacritty" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "vendor_id": 7504, + "product_id": 24926 + } + ] + }, + { + "type": "variable_if", + "name": "layer", + "value": 0 + } + ], + "from": { + "key_code": "f22" + }, + "to": [ + { + "shell_command": "open -a Calendar" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "vendor_id": 7504, + "product_id": 24926 + } + ] + }, + { + "type": "variable_if", + "name": "layer", + "value": 0 + } + ], + "from": { + "key_code": "f23" + }, + "to": [ + { + "shell_command": "open -a Mail" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "vendor_id": 7504, + "product_id": 24926 + } + ] + }, + { + "type": "variable_if", + "name": "layer", + "value": 0 + } + ], + "from": { + "key_code": "f24" + }, + "to": [ + { + "shell_command": "open -a Spotify" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/examples/ferris-sweep.py b/examples/ferris-sweep.py new file mode 100644 index 0000000..d7551f9 --- /dev/null +++ b/examples/ferris-sweep.py @@ -0,0 +1,29 @@ +import shared +from lushlayers.config import Config, Device + +# This keyboard is configured primarily through ZMK. +# It maps some keys to F-keys, which are mapped to apps here. +Config( + device=Device(vendor_id=7504, product_id=24926), + aliases=shared.aliases, + physical_layout=r""" + _ _ _ _ _ _ _ _ _ _ + _ f19 f20 f21 _ _ _ _ _ _ + _ f22 f23 f24 _ _ _ _ _ _ + _ _ _ _ + """, + layers=dict( + default=r""" + _ _ _ _ _ _ _ _ _ _ + _ @cht @www @trm _ _ _ _ _ _ + _ @cal @eml @mus _ _ _ _ _ _ + _ _ _ _ + """, + __template=r""" + _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ _ _ _ _ + _ _ _ _ _ _ _ _ _ _ + _ _ _ _ + """, + ), +)