LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2006, 01:04 PM   #1
crazyjimbo
Member
 
Registered: Mar 2006
Location: Edinburgh
Distribution: Debian Etch, Gentoo
Posts: 90

Rep: Reputation: 16
Command to bring a selected window to the top?


Hi All,

I've googled, but I fear I've been googling for the wrong terms.

I'm looking for some sort of command to bring a window (by providing the process ID or something akin) to the top and focus it. I don't know whether has X has something built in already or whether it would need to be a third party app.

Many Thanks,
James
 
Old 12-03-2006, 02:05 PM   #2
auxsvr
Member
 
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
Managing windows is the job of the window manager, which is KWin if using KDE. I can only help you in the KDE case; using the DCOP interface many KDE applications provide, you will be able to do exactly what you describe calling the dcop program as follows:
Code:
dcop konqueror-[] konqueror-mainwindow#1 raise
where you should replace the [] with process number (press TAB to complete).
 
Old 12-03-2006, 02:15 PM   #3
crazyjimbo
Member
 
Registered: Mar 2006
Location: Edinburgh
Distribution: Debian Etch, Gentoo
Posts: 90

Original Poster
Rep: Reputation: 16
Alas, I'm using a mish mash of Gnome and Xfce and Beryl as my window manager. At least I know the avenue to persue now, I'll have a look around.

Thanks.
 
Old 12-03-2006, 02:24 PM   #4
crazyjimbo
Member
 
Registered: Mar 2006
Location: Edinburgh
Distribution: Debian Etch, Gentoo
Posts: 90

Original Poster
Rep: Reputation: 16
I found my solution in the form of a program called 'wmctrl'.

Thanks
James
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reboot command at selected O.S. raven4d Linux - Software 2 03-20-2006 05:15 AM
keep window on top with xfce sohmc Linux - Software 0 01-15-2006 08:44 PM
Starting an xterm window that is "always on top" on command line azilkie Fedora 1 10-07-2005 09:17 PM
how do i bring the linux window into a lindows Os ErichKnoop Red Hat 1 02-27-2004 10:19 AM
How to bring up application window to front from shell script. aleksas_m Linux - General 2 08-21-2003 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration