I have my Logitech G502 mouse with many extra buttons so I wish to be able to hold down a mouse button, use scroll wheel to go through opened windows, release mouse button to select it.
The close keyboard shortcuts I found is Alt+Esc which maps Switch windows directly
. To use it, I would hold down Alt button, press Esc repeatedly until desired window is shown, release Alt.
An orange frame indicates the selected window.
I have experimented with xte
and button sequences but found that they are very unreliable, especially some requires delays to register correctly.
In the end, I found this post and wmctrl
which I mapped the single mouse key to this script and it cycled through the windows nicely. However, the way it worked it actually focused on the window thus piling up all the windows on my desktop. I wish to be able to find and select the window first before focusing on it, similar to Alt+Esc.
How can I do that?
0 Answers