LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-21-2005, 10:49 PM   #1
joely2k
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
Retrieve Window ID in command line..


If I have 3 windows, 2 is Xterm and 1 is Gvim... what is the command line in Linux I can use to extract
all the window ID or NAME without using mouse clicks... just command line....
 
Old 11-22-2005, 04:31 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
see my other post.
 
Old 11-22-2005, 05:21 PM   #3
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
man xwininfo
Code:
xwininfo -tree -root | grep the_good_pattern
 
Old 11-26-2005, 12:44 PM   #4
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 32
The utility I gave you in your other thread:

http://www.linuxquestions.org/questi...18#post1968818

can do this with the -l option.

This is similar to xwininfo -root -tree but the syntax is just 'id name' so it's easier to grep the output (note that it only lists named windows that accept focus).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line screenshot of a single window Hko Programming 1 12-02-2005 10:21 AM
Command line to raise a window? joely2k Linux - General 2 11-25-2005 01:42 PM
How do you start X-window from command line? yekrahs SUSE / openSUSE 2 11-18-2005 10:12 AM
Retrieve only a single line from a file rose_bud4201 Programming 4 06-22-2005 07:26 PM
How switch from x-window to the command line backpacker Linux - Newbie 1 06-09-2005 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration