Closed Toerktumlare closed 4 years ago
Caps Lock is not a valid modifier key, you cannot do this with skhd.
you might have to use Karabiner Elements to do this (i.e. skhd will not be able to help here)
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:
hyper
maps to left versions (I think)Capslock enhancer
comes with default actions for almost all keyboard combinations with hyper - but you can enable just some parts of the mappings in Karabiner.
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?