Skip to content

Instantly share code, notes, and snippets.

@jkpl
Created February 25, 2017 23:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jkpl/dd8004bc8ed40e018b0a4e3f6811163a to your computer and use it in GitHub Desktop.
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