Skip to content
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

Rework -d and -sc syntax (was: allow excluding current workspace) #55

Open
eater opened this issue Mar 26, 2018 · 3 comments
Open

Rework -d and -sc syntax (was: allow excluding current workspace) #55

eater opened this issue Mar 26, 2018 · 3 comments

Comments

@eater
Copy link
Contributor

eater commented Mar 26, 2018

With a tiling WM like i3, it's generally very easy to navigate to another window on the current workspace. Where a tool like Alttab is most useful is in rapidly switching to a window on a different workspace.

In using Alttab, I typically have to hit the key combo a few times to get past all the windows I've been focused on in the current workspace before I can select the one I want. Excluding every window from the current workspace would be a timesaver.

@sagb
Copy link
Owner

sagb commented Mar 27, 2018

Let's clarify: when you run alttab -d 1, and switch from window A belonging to desktop D(A) to window B belonging to another desktop D(B), window A is left in the stack near window B, so you can switch back to A and vice versa in single Tab click? Does this work for you or, for some reason, no?
Anyway, I've added -d 3 to exclude current desktop.

@eater
Copy link
Contributor Author

eater commented Mar 27, 2018

Great: can you add an option to show all desktops except current and scratchpad?

(Would it be easier to keep track of these options as a string? For instance, c = current desktop, o = other normal desktops, and s = scratchpad (or "special"), so the user could call alttab -d oc instead of -d 2? Just an idea.)

In answer to your question, I commonly move around among a few windows on the current desktop using the mouse or i3 commands, and then when I want to alt-tab to the previously focused window on desktop, it's lower down in the stack.

sagb added a commit that referenced this issue Mar 28, 2018
@sagb
Copy link
Owner

sagb commented Mar 28, 2018

This looks reasonable, I plan to rewrite options syntax at ~1.4 resease.
For now, I just make -d 3 exclude special desktop too.

@sagb sagb changed the title Enhancement: allow excluding current workspace Rework -d and -sc syntax (was: allow excluding current workspace) Apr 4, 2018
@sagb sagb added this to the v 1.4.0 milestone Apr 4, 2018
@sagb sagb removed this from the v 1.4.0 milestone May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants