Just popping this in here so I don't lose it again, but this is a useful line to put in your .bashrc file, especially if you are using devilspie, compiz windows placement, or openbox configs.
it simplifies the output of the command xprop, by simply returning the Class information only
- open up a terminal and open $HOME/.bashrc
sudo nano $HOME/.bashrc
- Scroll down to alias section and add
alias xp='xprop | grep "WM_WINDOW_ROLE\|WM_CLASS" && echo "WM_CLASS(STRING) = \"NAME\", \"CLASS\""'
and save out and close your shell.
Your cursor turns into an "X". Click on the window you need info about and it should return something like this in your terminal (for a Firefox window)
- To test reopen a terminal and type "xp" at the prompt (no quotes)
WM_WINDOW_ROLE(STRING) = "browser"
WM_CLASS(STRING) = "Navigator", "Firefox"
WM_CLASS(STRING) = "NAME", "CLASS"
of course you can modify alias name and string to your own liking :)