ItayGarin / ktrl

A Supercharged Keyboard Programming Daemon ⌨️
GNU Lesser General Public License v3.0
338 stars 12 forks source link

Named layers #14

Closed brockelmore closed 4 years ago

brockelmore commented 4 years ago

It would be great to be able to name layers so if #13 gets integrated, you could activate via name. Also just helps for complex configs

ItayGarin commented 4 years ago

Yup. Great idea again :+1: What do you think of something like this -

(
    tap_hold_wait_time: ...,
    tap_dance_wait_time: ...,
    layer_aliases: {
        0: "base",
        1: "firefox",
        2: "vim",
        13: "not-all-layers-most-have-aliases",
    },
    layers: [
    ],
)
brockelmore commented 4 years ago

Brilliant, great way to do that. I can take a crack at implementation if you would like