awesome-switcher icon indicating copy to clipboard operation
awesome-switcher copied to clipboard

Show client name instead of program name

Open dbedrenko opened this issue 7 years ago • 5 comments

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.

dbedrenko avatar Mar 07 '17 08:03 dbedrenko

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?

berlam avatar Mar 07 '17 09:03 berlam

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

dbedrenko avatar Mar 09 '17 06:03 dbedrenko

Ah thank you. I like the windows aero switcher the most. Let me put that in to code in a few days:

  1. Place the icon above the client preview
  2. Show only the focused client name instead of every client name

berlam avatar Mar 09 '17 11:03 berlam

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.

p-himik avatar Jun 03 '18 08:06 p-himik

I've also noticed that if you have two windows with the same name, both are highlighted as selected.

RossComputerGuy avatar Oct 20 '20 04:10 RossComputerGuy