You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
952 B
38 lines
952 B
# This example demostrates how to implement a layer carousel which behaves as follows: |
|
# - Hold space (numbers layer) |
|
# - Tap right shift (functions layer) |
|
# - Tap left shift (numbers layer) |
|
# - Tap left shift (symbols layer) |
|
# - Release space (main layer) |
|
# By using swap in our secondary layers, the layer held by space (as determined in the |
|
# main layer) is replaced and remains active until another swap takes place or the space |
|
# is eventually released, which brings us back to the main layer. |
|
|
|
[ids] |
|
|
|
* |
|
|
|
[main] |
|
|
|
space = overloadt(numbers, space, 200) |
|
|
|
[numbers] |
|
|
|
a = 1 |
|
# Other numbers here. |
|
leftshift = overload(shift, swap(symbols)) |
|
rightshift = overload(shift, swap(functions)) |
|
|
|
[functions] |
|
|
|
a = f1 |
|
# Other functions here. |
|
leftshift = overload(shift, swap(numbers)) |
|
rightshift = overload(shift, swap(symbols)) |
|
|
|
[symbols] |
|
|
|
a = grave |
|
# Other symbols here. |
|
leftshift = overload(shift, swap(functions)) |
|
rightshift = overload(shift, swap(numbers))
|
|
|