Switch between gvim windows in kde by title match
So.. I use kde on linux.
I flip between windows and terminal emulators.. I wish I had a shortcut command to switch between only a certain kind of window. If it’s there.
That is, if I have 3 gvim windows open, I want to hit Ctrl-G and switch over them.
I have been wanting to do this for a long time.
Ideally I want to dynamically assign, that is.. For some daemon to detect open gvim (or whatever) window instances and assign shortcuts to them. So I can hit Ctrl-F1 through F12 and switch between them.
I have succeeded in one task.
I wrote a little script I called wmctrlnext, that can switch between a kind of window.
You create a global shortcut to a command like “wmctrlnext Firefox” and when you hit that key shortcut.
I used this to map Ctrl-G to switch between gim windows.
You will need wmctrl, xprop, and cpan Getopt::Std::Strict.
