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:
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.
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.pdfOr (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.pdfThis 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