You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pretty much what the title says: WM_CLASS contains two strings (instance, class), but atomx WM_CLASS $(pfw) only returns the first of them (the instance).
Found out while writing window rules for a wmutils-only setup. Currently making-do with xprop -id "$wid" WM_CLASS and a bunch of clean-up, but having atomx output both would help simplify things.
The text was updated successfully, but these errors were encountered:
It seems like the atom value returned sends the class and instance terminated with a nullbyte. Currently atomx simply prints the value with printf(3), so the first nullbyte (after the class name) marks the end of the string. Printing the instance name would require printing the whole data returned, either by writing the full data to stout (including the intermediate null bytes), or iterating through the whole data, and reformatting it. Not sure how it should be formatted though (tab separated, new line, ...?).
Pretty much what the title says: WM_CLASS contains two strings (instance, class), but
atomx WM_CLASS $(pfw)
only returns the first of them (the instance).Found out while writing window rules for a wmutils-only setup. Currently making-do with
xprop -id "$wid" WM_CLASS
and a bunch of clean-up, but havingatomx
output both would help simplify things.The text was updated successfully, but these errors were encountered: