What program is running in that window?

Every day solutions to every day challenges. + Brilliant stuff

Moderators: b1o, jkerr82508

Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules: http://bjoernvold.com/forum/viewtopic.php?f=8&t=568
User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

What program is running in that window?

Postby viking60 » 29 Dec 2013, 14:21

I often have this nice windows with programs that I want to run from the CLI.
The problem is that this might not be visible so here is a tip:

Code: Select all

name=xprop | awk '/CLASS/'

Now you can move your cursor over the window and click and read the name in the terminal..

If you enter the command in a terminal and click on your chromium browser the output will be like this:

Code: Select all

[viking@thomas-pc ~]$ xprop | awk '/CLASS/'
WM_CLASS(STRING) = "chromium", "Chromium"

That would be the command you would need to start it from the Terminal. Most people know that so clicking on your xfce panel might be more useful:

Code: Select all

[viking@thomas-pc ~]$ xprop | awk '/CLASS/'
WM_CLASS(STRING) = "xfce4-panel", "Xfce4-panel"
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

Return to “Tips & Tricks”