XPROP returns WM_CLASS, and WM_NAME how do I target the different values returned by XPROP in i3?
Asked
Active
Viewed 383 times
0
Evan Carroll
- 30,763
- 48
- 183
- 315
1 Answers
2
i3's names are a little different. For all of these if the same key is available as _NET_ it holds precedence to the non-_NET_ variant.
For reference
WM_NAMEcan be matched withtitle.WM_CLASSis a two part field comma-seperated and quoted,- The first part is
instance - The second part is
class
- The first part is
WM_WINDOW_ROLEiswindow_roleWM_WINDOW_TYPEiswindow_type
These can all be found in the docs on i3 configuration though indexed in the opposite fashion, by i3-name.
Here is a simple script xprop2i3 which behaves like xprop except outputs i3 labels, and only the fields which i3 selectors use.
Evan Carroll
- 30,763
- 48
- 183
- 315