Focus the first Window Where pcmanfm is Running
0
votes
1
answer
134
views
From the command line, what is the best way to locate the first window where
pcmanfm
is running, and then give that window focus?
pcmanfm
does not showcase it's application name on the title bar of the window in which it is running, so you can't focus it using wmctrl -a pcmanfm
(which works for me in other applications that do indeed showcase their application's name in the window title bar).
This is just one example, but what I'm really looking for is a better method of locating windows that are running a particular command, and then giving that window focus. The title bar method I've been using just isn't always reliable.
Asked by Lonnie Best
(5415 rep)
Jan 18, 2022, 11:45 AM
Last activity: Nov 11, 2022, 02:29 PM
Last activity: Nov 11, 2022, 02:29 PM