xtitle
xtitle copied to clipboard
Request: Add support for window class
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.
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