I'm running Ubuntu 18.04.2 and GNOME 3.28.2.
Like most people I am pretty adept at switching between windows using Alt-tab and Super-tab. But I also play RTS games and I think it would be neat if I could bind whatever window is currently in focus to the number pad on the fly so later I can immediately switch focus back to that window by pressing the bound key. Obviously, if I close the window the key binding should expire.
Does something like this already exist? I've been poking around on the internet to no avail.
In the meantime, I'm trying to build something myself with wmctrl and xbindkeys but it's slow going so if anyone has done something similar and has suggestions I'm all ears.