Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show client name instead of program name #3

Open
dbedrenko opened this issue Mar 7, 2017 · 5 comments
Open

Show client name instead of program name #3

dbedrenko opened this issue Mar 7, 2017 · 5 comments

Comments

@dbedrenko
Copy link

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
Copy link
Owner

berlam commented Mar 7, 2017

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
Copy link
Author

@berlam
Copy link
Owner

berlam commented Mar 9, 2017

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
Copy link

p-himik commented Jun 3, 2018

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants