-
Notifications
You must be signed in to change notification settings - Fork 45
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
If a single window is already open and in focus - minimize it instead #11
Comments
(IMHO, I don't think it should be default behaviour. I couldn't use the computer without display.) |
lol what do you mean? |
|
Now I understood, quite unusual workflow you have without a screen :) |
I won't use this personally but if you find it useful for others, you may grant this. If a single window is already open and in focus - minimize it instead if m flag is present.
Maybe the minimize mechanism I did is not perfect. I used wmctrl. |
Thanks a bunch @e3rd for putting together a PR. Do you mind testing it out @darutse and see if it does what you're looking for? There are examples of this behavior on other platforms. On Windows, the Windows-key+number combination performs jumpapp like behavior, and if the app is already focused it will minimize it. I can only speak personally, but I find this behavior a little confusing. One of the design goals of jumpapp is to reduce the amount of thinking a user has to do about "modes" when navigating the desktop. The modes in this case are: is the program already running or not? Is the window minimized? Hidden behind another window? On another desktop? The advantage of jumpapp for me is that I don't have to think about all that. I press one key and the program I want is focused. (For more context on eliminating "modes", check out this talk by Bret Victor where he talks about Larry Tesler.) I see altering jumpapp to have two different behaviors — focus an app, or minimize it if it's already focused — to be a small step backwards. All of that is a really long way of saying that I don't think it should be the default behavior, but I'm totally cool with making it an option. |
(I totally agree with this opinion, thanks for writing it so clearly.) |
I get it now, is just my workflow usually looks like this:
|
Why do you minimize 2nd window when even without minimizing, the 1st window will take focus (jumpapp cycle amongst windows)?
With xdotool it seems easy to me. You may use xbindkeys to assign "Win+Down" keys to command
Me too I think that the feature is not crucial. I wanted just to please you. |
If there is more than one window of 1st type it will cycle, I can't be sure what exactly will be focused. It seems logical just to minimize 2nd window. If cycling based on access time will be implemented I probably will adjust my workflow.
When I press the button (not holding) the window shades and un-shades like 50 times in a row, and usually end up being unshaded |
Wow, you are right. |
After mulling it over, I think "center" is a better mnemonic for this operation than "mouse". I would go with "-c" but it's already in use. My secondary motivation is that a different -m functionality has already been requested in #11. It hasn't been implemented yet, but I could see it being implemented some day.
This got implemented in #41 and is included in the latest release. |
I would like to see such feature, I can't come up with the reason why it's not the default behavior.. maybe it's hard to implement? thx.
The text was updated successfully, but these errors were encountered: