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 - 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, 09:46 PM   #1
joely2k
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
Command line to raise a window?


What command in linux I can raise a window to be infront of other windows, (make it active and infront)...
I dont want to use mouse clicks.. just some linux/unix command line...
 
Old 11-22-2005, 03:31 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
only widget i can think of is wmctrl. i'm not sure how flexible it is, but it seems to work under gnome, and is originally for windomaker, so that's quite a gap it's jumped there...
 
Old 11-25-2005, 12:42 PM   #3
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
I wrote a small utility to do this a while back. I've recently rewritten it (just yesterday, in fact!) so I can give it a window name. Originally, it required the window id number and I had a shell script to find the id from the name (via 'xwinifo -root -tree' and some grepping), but it was quite slow and didn't allow substring matching. I rewrote it in Python but it was still intolerably slow (took almost a WHOLE second!). Thus, I added the name matching into the C program. You can download the src here.

EDIT: dead link, removed.

Last edited by ioerror; 05-16-2006 at 09:23 AM.
 
  


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 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 09:21 AM
Retrieve Window ID in command line.. joely2k Linux - General 3 11-26-2005 11:44 AM
How do you start X-window from command line? yekrahs SUSE / openSUSE 2 11-18-2005 09:12 AM
Starting an xterm window that is "always on top" on command line azilkie Fedora 1 10-07-2005 09:17 PM
How switch from x-window to the command line backpacker Linux - Newbie 1 06-09-2005 03:56 AM

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

All times are GMT -5. The time now is 05:06 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