I use skhd with yabai and custom layers on my keyboard for mouseless window management. It’s worked great until a recent update, I’ll try this out and see if it fixes things. Thanks!
Does this do something like TextExpander and Keyboard Maestro? is that the general idea?
The one thing I really can't stand about macOS is "Secure Input". It won't let you use something like TE or KM to input a password. You're forced to copy and paste.
As far as I understand, you can't disable that feature either... because securiteh! :/
> The one thing I really can't stand about macOS is "Secure Input". It won't let you use something like TE or KM to input a password.
It actually will. The problem is that when secure input is enabled, you can’t trigger a macro from the keyboard, because the daemon isn’t allowed to intercept keystrokes. But if you can trigger the macro some other way, like through a mouse button or a MIDI message, keystrokes can be sent just fine, even into a password field.
I like to see your config written in fennel. Have you checked out spacehammer? It’s a config for hammerspoon written in fennel that (mostly) gives you a nested modal hidden behind a prefix that lets you make nested hotkeys.
7 comments
[ 2.8 ms ] story [ 32.6 ms ] threadThe one thing I really can't stand about macOS is "Secure Input". It won't let you use something like TE or KM to input a password. You're forced to copy and paste.
As far as I understand, you can't disable that feature either... because securiteh! :/
It actually will. The problem is that when secure input is enabled, you can’t trigger a macro from the keyboard, because the daemon isn’t allowed to intercept keystrokes. But if you can trigger the macro some other way, like through a mouse button or a MIDI message, keystrokes can be sent just fine, even into a password field.
Edit: upon reflection, not much actually: https://github.com/kbd/setup/blob/2eaeaecf76c22be3ecef5c8563...
Edit: Found this answer from the author of the non-zig version, though it doesn't actually explain much https://github.com/koekeishiya/skhd/issues/151