Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need equivalent of wmctrl -lpx #22

Open
aspiers opened this issue Mar 9, 2013 · 2 comments
Open

need equivalent of wmctrl -lpx #22

aspiers opened this issue Mar 9, 2013 · 2 comments

Comments

@aspiers
Copy link

aspiers commented Mar 9, 2013

wmctrl can list all visible windows across all desktops in one go, along with their window name, class, window id, pid, and desktop number:

$ wmctrl -lpx
0x01800003 -1 5733   xfdesktop.Xfdesktop   pacific Desktop
0x04200003 -1 6104   gkrellm.Gkrellm       pacific gkrellm
0x0520000b -1 6186   urxvt.URxvt           pacific watchlogs-system
0x01600004 -1 5732   xfce4-panel.Xfce4-panel  pacific xfce4-panel
0x05e00032  5 23702  skype.Skype           pacific Skype
0x01200047  0 26835  emacs.Emacs           pacific focus-emacs-frame
0x0500000b  1 4759   urxvt-256color.URxvt  pacific adam@pacific

This is very convenient for scripting.

@jordansissel
Copy link
Owner

There's probably room for a new xdotool command to do formatted (and/or json!) outputs some properties of any windows in the window stack. Thoughts?

Rough proposal:

xdotool selectwindow windowproperties id pid class

Would use selectwindow to have oyu click on a window, then this proposed 'windowproperties' command would output the id, pid, and window class for the window. This would also work with xdotool search ... windowproperties ... or something.

Thoughts?

@aspiers
Copy link
Author

aspiers commented Apr 25, 2015

Yes, sounds good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants