Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-22-2023, 08:39 AM
|
#1
|
Member
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 705
|
list gui programs running in Xorg, from the command line
I was wondering if there is a way, in a terminal, to show what GUI programs are running in Xorg. It would be like Fvwm's FvwmIconMan or the Workspace List menu of Blackbox, except it would a command line program that prints a list of the running programs in the console. In other words, it would be like ps but only for GUI programs.
Thank you.
|
|
|
07-22-2023, 08:55 AM
|
#2
|
Senior Member
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,985
|
pstree outputs processes as a tree structure.
" pstree $(pgrep -o Xorg)" will change the root of the tree to the oldest process named "Xorg".
However, on a KDE Plasma system, GUI programs are under plasmashell process, i.e: " pstree $(pgrep -o plasmashell)" would be needed - other desktops may organize things differently.
Last edited by boughtonp; 07-22-2023 at 08:59 AM.
|
|
|
07-25-2023, 06:09 PM
|
#3
|
Senior Member
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
|
If you're simply looking for a list of windows (which is similar to what you'd get from the mentioned programs), try:
|
|
|
07-27-2023, 08:09 PM
|
#4
|
Senior Member
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 1,068
|
xlsclients
Code:
example.com /usr/bin/emwm
example.com LibreWolf
example.com qemu-system-i386
example.com qemu-system-i386
example.com gkrellm
example.com xnetload -i br0
example.com xnetload -i eth0
example.com xlogo -fg DarkOliveGreen -bg black
example.com xnetload -i wlan0
example.com xclock
example.com urxvt -embed 25165834
example.com /usr/bin/xterm -class UXTerm -u8 -fg OldLace -bg black -fn -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1
|
|
|
All times are GMT -5. The time now is 07:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|