Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3260

Graphical Environments & Desktops • How can I list open windows on the command line?

$
0
0
Hi,

I'd like to list all open windows/tabs of an application, along with some details like title and open files.

For example, I'd like to list all folders currently open in Thunar.

I can do something like wiw for atril with:
pstree -al | grep atril | grep '\.pdf$' |   |-atril /home/user/Desktop/out/all.pdf
Or (with room for improvement!):
$ lsof -u user | grep -i atril | grep '/home/user' | grep '\.pdf$'lsof: WARNING: can't stat() tracefs file system /sys/kernel/debug/tracing      Output information may be incomplete.atril     1302119 user   16r      REG               8,19     74847    5809542 /home/user/Desktop/out/all.pdf
This is for something like a session manager. Does the existing session manager have a cli?

I don't mind using a different method for different apps, just looking for ideas really. If any tool comes to mind that might be useful, please mention it.

Related: is there a way to show the full path of the current folder in Thunar's title bar? Mine only shows the folder name. (Alternatively, can I get the Location Bar contents?)

PS: I'm using xfce with lightdm and Xorg.

Statistics: Posted by bitrat — 2024-05-24 18:43 — Replies 4 — Views 81



Viewing all articles
Browse latest Browse all 3260

Trending Articles