Open brimwats opened 3 months ago
Hi @brimwats, I've been thinking about how I want to implement this and I've come up with something. I don't know if this will be the final version of this feature, but it is ready for you to try.
Here is an example of what it can look like in the configuration file:
# Disable mousemaster when Firefox or Chrome is active
app-alias.hibernateapp=firefox.exe chrome.exe
idle-mode.to.hibernate-mode=_{hibernateapp}
normal-mode.to.hibernate-mode=_{hibernateapp}
hibernate-mode.to.idle-mode=^{hibernateapp}
The idea is to switch to a mode that is empty (i.e. a mode that has no commands, here called hibernate-mode) when a specific app is active. And to switch back to the idle-mode when this app is no longer the active app.
You will need to get the latest version (1.0.41).
Can you let me know if you're able to introduce this into your configuration file? I'm curious to hear about whether it's able to do what you wanted to achieve.
Was unsure if I should just add this to #1 or just open a new FR and I landed on the latter.
I'm wondering if it might be possible to add an "exclude" or "autodisable" when certain programs are active. My use would largely be when using directory opus (crtl+e is "open new explorer" there or in vivaldi (where I use vimium-c).
Unsure if mousemaster should autodisable when the window is active or when the mouse over that window. Is mousemaster based on AHK? Might be possible to use AHK window classes for this.