Skip to content

Instantly share code, notes, and snippets.

@jkpl
Created Feb 25, 2017
Embed
What would you like to do?
Check window class and name (rules) in Xorg
#!/bin/sh
xprop |awk '
/^WM_CLASS/{sub(/.* =/, "instance:"); sub(/,/, "\nclass:"); print}
/^WM_NAME/{sub(/.* =/, "title:"); print}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment