3 ms·
Simple Hotkey Daemon for macOS, Ported to Zig
- Carrok 1y agoI 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!
- tomcam 1y agoHotkey Demon needs to be the title of a Korean anime
- akulbe 1y agoDoes 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! :/
- zoky 1y ago> 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.
- kbd 1y agoI wonder how much of my Hammerspoon config I could replace with this... Edit: upon reflection, not much actually: https://github.com/kbd/setup/blob/2eaeaecf76c22be3ecef5c85632a75e1f9c6f0bb/HOME/.hammerspoon/init.fnl#L277 https://github.com/kbd/setup/blob/2eaeaecf76c22be3ecef5c8563...
- james2doyle 1y agoYeah hammerspoon seems a lot more capable. I wrote two articles on using global hotkeys with hammerspoon: https://ohdoylerules.com/tricks/hammerspoon-hyper-key/ https://ohdoylerules.com/tricks/hammerspoon-hyper-key/ https://ohdoylerules.com/tricks/hammerspoon-number-pad-shortcuts/ https://ohdoylerules.com/tricks/hammerspoon-number-pad-short... One think you can even do is detect which devices are being used and handle shortcuts differently. You can write a full on workflow that can be triggered with a keyboard shortcut if you’re using hammerspoon. I recently switched from a homecooked keyboard "expansion" plugin to using Espanso but it can do that as well!
- Graziano_M 1y agoI 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.
- kbd 1y agoI gave it a glance at some point but don’t see why I’d use it. It’s just some dude’s config. I have my caps lock rebound to a “hyper” key so every important thing is one key combo away.
- Graziano_M 1y agoWell it's not just some dude's config. It's a way to write most of your config as just a table. It notably provides nested tables, which offers a bit more flexibility than just one combo. But anyway, I just wanted to see if you were aware of it. I'm going to peek at yours now and see if there's anything I should crib.
- bhaney 1y agoMinor curiosity: Why is "(S)imple (H)ot(K)ey (D)aemon" abbreviated as "SKHD" and not "SHKD"? 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 https://github.com/koekeishiya/skhd/issues/151