LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2010, 09:28 PM   #1
mike11
Member
 
Registered: Apr 2009
Posts: 222

Rep: Reputation: 17
Hotkey to raise/lower specific application/window


Hi All,

How can I define a hotkey which will raise (and ideally also lower) a specific window or application?.

As an example:
Assuming epiphany is minimized, pressing F5 will raise the epiphany window. Pressing F5 again will minimize it. Something like guake/tilda.

Thanks,
Mike.
 
Old 09-05-2010, 09:37 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
This type of thing should be handled by your window manager. What window manager are you using?

Cheers,

Evo2.
 
Old 09-05-2010, 09:38 PM   #3
mike11
Member
 
Registered: Apr 2009
Posts: 222

Original Poster
Rep: Reputation: 17
Gnome + metacity. considering moving to compiz.
 
Old 09-05-2010, 10:06 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Ouch, been years since I used Metacity. From what I remember it is a truly hobbled window manager. It would not surprise me if this can't be done directly with metacity. I recall a project called devilspie that should be able to make up for what your window manager lacks. It may be already packaged for your distro (it is for mine).

Cheers,

Evo2.
 
Old 09-05-2010, 10:10 PM   #5
mike11
Member
 
Registered: Apr 2009
Posts: 222

Original Poster
Rep: Reputation: 17
thanks, but I don't think devilspie does what I want. It's more a script language to control how to place windows but no hotkey support (AFAIK).
 
Old 09-05-2010, 10:48 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Ok then, my next suggestion is to use wmctrl combined with custom keybings in gnome/metacity. This should work but will require a little effort. I think you need to write a script that uses wmctrl to toggle the raise/lower state of a window that matches the name/title/class of the window you are interested in and then set a keybinding to run that script.

Cheers,

Evo2.
 
Old 09-05-2010, 11:23 PM   #7
mike11
Member
 
Registered: Apr 2009
Posts: 222

Original Poster
Rep: Reputation: 17
Thanks.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Raise priority of application (XBindKeys) above Apps menu tl3462 Linux - Software 0 03-18-2009 07:06 AM
Window focus: where is click-titlebar-to-raise? TristanDee Debian 2 01-17-2008 10:00 AM
compiz fusion How to raise window off the cube? dv502 Linux - General 2 11-18-2007 08:10 AM
Command line to raise a window? joely2k Linux - General 2 11-25-2005 01:42 PM
Hotkey for application exit? xanas3712 Linux - Newbie 1 10-16-2004 10:16 PM


All times are GMT -5. The time now is 12:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration