LinuxQuestions.org
Review your favorite Linux distribution.
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 12-14-2011, 04:11 AM   #1
crabsody
LQ Newbie
 
Registered: Mar 2006
Location: Greece
Distribution: Fedora 10
Posts: 6

Rep: Reputation: 0
How to change focus in X-window by terminal


I got the window id by using xwininfo command. I want to change the focus of this window by a terminal command. How can I do it?

P.S: Please with standard linux commands. I can't use tools as xdotool.
 
Old 12-14-2011, 04:45 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
You can use this:
Code:
wmctrl -Ri id_here
With -R option it will move window to current desktop and with -a, switch to desktop where window lies.

P.S. There is no "standard" linux commands to control X, as whole X is "non standard".
 
  


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
Changing window focus / cursor locked in window Linear_z Linux - Desktop 2 09-24-2011 12:40 PM
change font size in terminal window homerjpbody Linux - Newbie 3 08-08-2008 09:26 PM
Difference between a Shell terminal window and the KDE Linux Console terminal window? bostonantifan Fedora 2 03-25-2007 07:23 PM
window focus thaprza Linux - Newbie 3 03-06-2005 03:25 PM
change window title in terminal sandman Linux - General 4 12-15-2002 03:55 AM

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

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