godbout / Wooshy.docs

it's like Alfred but for the UI
https://wooshy.app
222 stars 0 forks source link

Using caps lock as the trigger key #103

Closed srikat closed 1 year ago

srikat commented 1 year ago

Looking for a way to have the caps lock key bring up Wooshy AND disable the caps lock functionality. Anyone knows how to?

I tried the free Hyperkey app but am not sure how to configure it for this purpose..

godbout commented 1 year ago

Looking for a way to have the caps lock key bring up Wooshy AND disable the caps lock functionality. Anyone knows how to?

editing the answer. saw you followed kindaVim and i thought the question was about it. for kV you could remap caps lock natively from macOS to map it to escape. but not for Wooshy. so, proper answer in the comment below.

godbout commented 1 year ago

Looking for a way to have the caps lock key bring up Wooshy AND disable the caps lock functionality. Anyone knows how to?

your best bet is Karabiner-Elements. it adds a virtual keyboard driver to macOS, it's very low level, so you can do pretty much whatever you want. you can remap caps lock to any other hotkey. set that hotkey for Wooshy, and caps lock will activate Wooshy. there's 0 delay as it's a keyboard driver, not like other tools like Hammerspoon. and it's so powerful that if you wanted to, you can launch Wooshy with a quick press on caps lock, but do something else totally different with a long press. free and open source, although highly advocating for sponsoring its creator.

godbout commented 1 year ago

i actually do use KE myself to trigger a hotkey that is already taken by the system for Scrolla. here's the json rule for KE:

                "rules": [
                    {
                        "manipulators": [
                            {
                                "description": "change control command space to option command space",
                                "from": {
                                    "key_code": "spacebar",
                                    "modifiers": {
                                        "mandatory": [
                                            "left_control",
                                            "left_command"
                                        ]
                                    }
                                },
                                "to": [
                                    {
                                        "key_code": "spacebar",
                                        "modifiers": [
                                            "left_option",
                                            "left_command"
                                        ]
                                    }
                                ],
                                "type": "basic"
                            }
                        ]
                    }
                ]

you could tweak it to change caps lock to whatever hotkey you need. you can see more from the KE documentation.

godbout commented 1 year ago

working? if yes, i think we can close the issue. trying to keep the repo clean. thanks!

srikat commented 1 year ago

As this has nothing to do with your software directly, you may go ahead and close.

I've mapped it to the left Ctrl key to keep it simple using BetterTouchTool.