awesome-switcher
awesome-switcher copied to clipboard
Show client name instead of program name
It's hard to switch between clients that are all of the same app, because rather than the client names being shown (which is what you see in the taskbar) the program name is shown. So in a tag full of gedit windows it's very hard to know which client is the one you wanted.
This is how Windows does it, and IIRC other Linux DEs.
PS: Love this project, many thanks.
Will add that, good idea. These names can get quite long and must be shortened in some way.
How does Windows handle long names?
EDIT:
You could edit init.lua
at line 170 like this:
text = string.sub(c.icon_name, 0, 20) .. "..."
Would that be better?
There are a couple of ways it does it:
http://winaero.com/blog/wp-content/uploads/2015/07/windows-10-alt-tab-before.png https://i.stack.imgur.com/oLDQP.jpg https://i.stack.imgur.com/NYlih.jpg
Ah thank you. I like the windows aero switcher the most. Let me put that in to code in a few days:
- Place the icon above the client preview
- Show only the focused client name instead of every client name
I'd say that it should be configurable. For example, I would prefer the way of Windows 10 (the first screenshot) - I can find the needed window right away by just looking, without having to switch to it first.
I've also noticed that if you have two windows with the same name, both are highlighted as selected.