LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-01-2010, 06:26 AM   #1
wogri
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Rep: Reputation: 0
Shortcuts to switch to open applications


Hi Linux Guys,

I am currently running a mac with a utility called 'butler'. Butler is a shortcut tool that allows me to define a shortcut for - let's say - firefox. If I press that shortcut butler opens up firefox if it is not open yet. if I switch to another application, and press that shortcut again, the current instance of firefox will come up again (no new instance is forked). I found various window managers with support for shortcuts, but none that brings the already opened applications upfront. I am aware that alt+tab exists, but is there something that can bring up my already open application by pressing a shortcut for that application?

Thanks for any hints;
wogri
 
Old 02-01-2010, 10:59 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Which Desktop are you using?

In KDE, right click on the window top decoration. Select "Advanced -> Window Shortcut..."

Then enter your shortcut.
This will be a shortcut for that window, not for the application.

This thread is a little bit related:
http://www.linuxquestions.org/questi...script.-83545/
 
Old 02-01-2010, 11:42 PM   #3
wogri
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Original Poster
Rep: Reputation: 0
so that change would not be permanent? this is not a viable solution for me. It's interesting that it seems that no one ever thought about this. You gain so much more speed with such a productivity tool.
 
Old 02-09-2010, 06:49 AM   #4
wogri
LQ Newbie
 
Registered: Jan 2010
Posts: 6

Original Poster
Rep: Reputation: 0
so I think I got it. the clue is to use:
xbindkeys + wmctrl.
a very simple xbindkeys-example would be like this:
"wmctrl -i -a $(wmctrl -l | grep Firefox | awk '{ print $1 }')"
control+shift + x

this would allow me to switch to firefox with a predefined shortcut. this can be tweaked with simple scripts to be improved to something great, of course (like shortcuts for switching between multiple instances of the same application, opening the application if it doesn't exist yet and so on).
this will be great.
 
  


Reply

Tags
shortcut, tool



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
what are keyboard shortcuts to resize window,switch desktop etc sumeet inani DamnSmallLinux 1 09-11-2009 12:42 PM
KDE custom shortcuts to switch between layots ?!! slashams Debian 1 02-24-2007 04:44 PM
creating shortcuts for WINE applications? cloids Linux - General 2 01-11-2004 04:51 PM
How to switch workspaces in Fluxbox via keyboard shortcuts? oxblood Linux - Software 3 01-08-2004 11:21 AM
Creating Shortcuts for Applications Creole Red Hat 1 09-24-2003 08:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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