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

Request: Add support for window class #8

Open
easysid opened this issue Jan 5, 2016 · 1 comment
Open

Request: Add support for window class #8

easysid opened this issue Jan 5, 2016 · 1 comment

Comments

@easysid
Copy link

easysid commented Jan 5, 2016

Would it be possible to add support for displaying the window class instead of the title, exactly what xwinfo -c does? Sometimes the titles becomes too long, and truncating them does not help much. A common example is Firefox, where title refers to page title, but class refers to just Firefox.

Right now, it can be done using xprop and xwinfo, but it would be nice to have this in xtitle (or a spy mode for xwinfo).

Thanks.

@einmalfel
Copy link
Contributor

Hello, @easysid
With xtitle built from latest sources you can do it like this:
unbuffer xtitle -sf "%u\n" | xargs -l1 xprop -id | grep 'WM_CLASS(STRING) = ' --line-buffered | cut -d\" -f4

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

2 participants