i3-cycle-focus.py: cycle through all previously focused windows#78
Merged
acrisci merged 1 commit intoaltdesktop:masterfrom Mar 5, 2018
okraits:master
Merged
i3-cycle-focus.py: cycle through all previously focused windows#78acrisci merged 1 commit intoaltdesktop:masterfrom okraits:master
acrisci merged 1 commit intoaltdesktop:masterfrom
okraits:master
Conversation
Member
|
I think the alt-tab behavior is good, but I don't want to change the default behavior of this script because people seem to be using it. Can you either make your own example file or keep the default for this script how it is? |
Contributor
Author
|
Yes, I can change it into another example file. |
Contributor
Author
|
@acrisci Extended the script and moved it to a new example. |
Member
|
Cool, good example script 👍 . What about alt-shift-tab to cycle forward in the list? |
Contributor
Author
|
Thank you :-) I didn't think about that because I never used that with other window manager. But I guess that it's not a big deal so I will add it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Kind of related to #50, I extended the script focus-last.py to be able to cycle through all previously focused windows.
I wanted to emulate the
Alt-Tabbehaviour of other window managers like Openbox. But i3 doesn't allow to trigger an action when theAltkey is released.So I use a timer to update the focus history after a certain span of time after a new window has been focused.
The previous behaviour of the script (toggling between the current and the previously focused window) can be restored by setting
--delay 0.0.