xtitle icon indicating copy to clipboard operation
xtitle copied to clipboard

Request: Add support for window class

Open easysid opened this issue 10 years ago • 1 comments

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.

easysid avatar Jan 05 '16 13:01 easysid

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

einmalfel avatar Sep 30 '17 21:09 einmalfel