-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Changing keymaps requires a restart #59
Comments
Forgot to mention that this is on Mojave. |
So this is just due to a caching optimization done in skhd: https://github.com/koekeishiya/skhd/blob/master/src/locale.c#L88 We'd need a way to track when a keymap switch occur (is there an API for this?). No ETA for now. |
This seems like it might be a public API, but I'm no macOS developer: https://stackoverflow.com/a/26024628 |
I was able to fix this by using Hammerspoon's The source for how they implement the watcher is here: Source |
Fixed on master. |
part of release 0.3.1. closing this. |
Is it possible to disable this feature? I use multiple languages daily, so I frequently switches between multiple input sources, but those layouts are all same. So I don't want skhd to reload config every time I switches windows, which might triggers input source switches, in turn, reloading skhd config. |
Ideally, it would be better to add an option for this feature, like the hotload option. |
I use multiple keymaps (input sources) on my laptop. Dvorak when I'm on the internal keyboard and then US when I use my hardware Dvorak keyboard at the office.
Each time I switch between the different keymaps, I need to restart skhd in order for it to correctly get the new keymap and bind the right keys. If I don't restart, it holds the previous mapping so CMD-T is mapped to the action bound to CMD-K
My expectation would be that I could switch keymaps and not need to kill/restart the process.
The text was updated successfully, but these errors were encountered: