berlam / awesome-switcher

Switch clients in Awesome WM with the familiar preview functionality
ISC License
98 stars 15 forks source link

Show client name instead of program name #3

Open dbedrenko opened 7 years ago

dbedrenko commented 7 years ago

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.

berlam commented 7 years ago

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?

dbedrenko commented 7 years ago

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

berlam commented 7 years ago

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
p-himik commented 6 years ago

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.

RossComputerGuy commented 3 years ago

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