Skip to content

Commit

Permalink
config: add ferris sweep
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwint committed Aug 24, 2023
1 parent 50fcb12 commit 82e5e3e
Show file tree
Hide file tree
Showing 2 changed files with 201 additions and 0 deletions.
172 changes: 172 additions & 0 deletions examples/ferris-sweep.json
Original file line number Diff line number Diff line change
@@ -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 Calendar"
}
]
},
{
"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 Mail"
}
]
},
{
"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 Spotify"
}
]
},
{
"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 Slack"
}
]
},
{
"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 Vivaldi"
}
]
},
{
"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 Alacritty"
}
]
}
]
}
]
}
29 changes: 29 additions & 0 deletions examples/ferris-sweep.py
Original file line number Diff line number Diff line change
@@ -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"""
_ @cal @eml @mus _ _ _ _ _ _
_ @cht @www @trm _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _
_ _ _ _
""",
__template=r"""
_ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _
_ _ _ _
""",
),
)

0 comments on commit 82e5e3e

Please sign in to comment.