-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: same shortcut for several applications + minimize all #75
Comments
Interesting! Could you imagine the configuration for such request? What syntax should be written in the file? |
The configuration would be the same, with several apps sharing the same shortcut and mode, so they behave the same way and avoid possible conflicts between modes. The extension could detect those cases and group them, using a for-loop to show/hide each app in the group. |
Please elaborate more about conflicts between modes. How the app should distinguish which mode you want to ask. I'd really like to see a configuration example, mentioning these modes, thanks! |
ignore what I said about the possible mode conflicts, I think it's fine. An example configuration would be:
This would rise/hide both vscode and firefox with the same shortcut. |
It does make sense to me, I'll have to take a look at it |
I see that task is more challenging than I previously though. First, let's discuss your example configuration.
You see, I've added matching wm class for firefox. In your version, the firefox is only launched but never matched again, by wm_class nor title. Second, I've added According to my observation, the modes are working perfectly for all the matched application. The problem is that only one window can get the focus. Use-case:
While dealing such group of windows, we might for example consider as focused every window which is somewhat at the begginning of the last recent windows list. (That's possible,
I'd welcome a meaningful PR but if there are no other community members showing interest it looks too time consuming for me to do this. |
I tried using the same shortcut to run 2 applications.
It works for running them, that's ok.
It doesn't work to minimize/hide both. Only minimizes one and the other stays there.
It would be great being able to launch several applications, since those apps can save their position on screen and you'd be able to show/hide some sort of virtual setup, like a terminal window, an editor and a browser.
As I understand, repeating the same actions to show/hide a window could be implemented with a for-loop for several actions that share a shortcut (haven't looked at the code though).
Something like this:
The text was updated successfully, but these errors were encountered: