koekeishiya / skhd

Simple hotkey daemon for macOS
MIT License
6.17k stars 207 forks source link

how to use caps as hyper? #112

Closed Toerktumlare closed 4 years ago

Toerktumlare commented 4 years ago

installed skhd with brew, started the service, gave it access to accessibillity, restarted the service.

started to add keycommands to skhdrc.

if run the command yabai -m window --space 2; yabai -m space --focus 2 i get an error saying there is no desktop. If a manually create the second desktop, running the command works using ctrl + opt + cmd + shift.

after tinkering, running "skhd -k "hyper - 2" triggers the keycommand.

tried: 0x39 - 2 : yabai -m window --space 2; yabai -m space --focus 2

does not work, nothing happens. how do i define the hyper button to be caps? 0x39 doesn't seem to work.

What am i missing?

dominiklohmann commented 4 years ago

Caps Lock is not a valid modifier key, you cannot do this with skhd.

qaisjp commented 4 years ago

you might have to use Karabiner Elements to do this (i.e. skhd will not be able to help here)

gerardbosch commented 3 years ago

You can use CapsLock enhancer with Karabiner: https://ke-complex-modifications.pqrs.org/#caps_lock_enhancement It will transform Caps Lock into Hyper key.

But it won't work out-of-the-box with skhd as you want, I think for 2 reasons: