Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 10-12-2006, 06:31 AM   #1
LQ Newbie
Registered: Oct 2006
Location: Hungary
Distribution: OpenSUSE 11.3
Posts: 11

Rep: Reputation: 0
Question Activate a window from the shell


Is there any command / free utility with which I can activate (bring forward) a window from a console shell under X? What I mean is:

agostonbejo@machine# activate_window jedit

for which jedit (an already open window) gets activated. The real thing would be to be able to do this not only with a pid but with (possibly a substring of) the title. (So the line above would activate the window with the title "it's jedit - file.txt".)
I'm using KDE and SuSE 10.1.

Old 10-13-2006, 12:01 AM   #2
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Rep: Reputation: 15
I'm terribly curious why you ask this question?
Old 10-13-2006, 04:14 AM   #3
LQ Newbie
Registered: Oct 2006
Location: Hungary
Distribution: OpenSUSE 11.3
Posts: 11

Original Poster
Rep: Reputation: 0
Here you are:

Normally I use my text editors in the following way:
# myFavoriteEditor text.txt&

Then my editor comes up, gets active, and I can start editing the file. Now I'm started using jedit, which first opens a window, and all further files are opened in that window. But the jedit window doesn't become active when I enter 'jedit text.txt&', only opens the file, so I have to make it active either by clicking on it with the mouse or alt-tab until I find it in the window list (which takes time depending on how long ago I used that window last time). It drives me crazy and I can't set it up to any sensible behavior in this regard.

I hope I have satisfied your hunger of information.


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
using a mouse button >button3 to activate window list in KDE 3.5.4 lurko Linux - Desktop 1 09-18-2006 02:51 AM
Window Managers vs Window Shell Environments DJOtaku Linux - General 7 08-09-2005 01:43 PM
Rhythmbox returns failed to activate the shell: (null) Minderbinder Linux - Software 0 06-04-2004 06:41 PM
[SHELL SCRIPT] Write at the right of the shell window Creak Linux - General 2 04-02-2004 04:00 PM
Window Manager login shell monsterX Linux - Software 1 05-10-2003 11:14 AM > Forums > Linux Forums > Linux - General

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

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