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 09-11-2004, 01:42 AM   #1
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
How to get the x displays currently open?


How can I get the x displays currently open (i.e. 0:0 or something)? Thanks.
 
Old 09-11-2004, 04:20 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
hi there,

for sure there is a better way but something like that will do the trick
Code:
 ps -ef | grep X
the output should be something like
Code:
X :0
regards

slackie1000
 
Old 09-11-2004, 10:46 AM   #3
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Original Poster
Rep: Reputation: 32
Awesome, thanks
 
Old 09-11-2004, 12:11 PM   #4
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
welcome mate...

anyway i still think there must exist a more elegant solution.
good that it worked.

cheers

slackie1000
 
  


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
Dual Displays systemparadox Linux - Hardware 5 02-16-2006 04:34 PM
X running on 2 displays gradient Linux - Hardware 2 02-02-2004 06:04 PM
Dual Displays p0rt Linux - General 2 06-25-2003 02:36 PM
Switching between X displays Dark_Helmet Linux - General 3 02-15-2003 05:06 PM
webpage that displays IP Risc91 Programming 5 02-05-2002 10:52 PM


All times are GMT -5. The time now is 07:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration