I usually have multiple instances of Gitk open while working on projects. When I switch between Gitk windows I cannot see which Gitk instance belongs to which project, though.
The project title is written in the header of the window once have it in foreground.
Is it possible to show the window title in the application switcher?
Check if using <Super>+<Tab> instead of <Alt>+<Tab> is useful for you.
If so, that can be configured in Settings -> Keyboard Shortcuts (Switch windows vs. Switch applications).
Besides, a couple of possibly useful links, which may even be interesting as replacement features from what you have in mind:
Since gitk is a friendly wish (Tcl/Tk) program, we can utilize wish's options to do what you want manually. There might be a way to edit /usr/bin/gitk to do exactly what you want, but I have found an alternative.
Method:
Result:
Application Switcher now shows gitk icon instance with "Manual Name" as application name.
Alt Method:
Edit /usr/bin/gitk line 3:
to
Alt Result:
"$ gitk" shows -- for gitk application name "$ gitk branchname" shows branchname for gitk application name in switcher.