LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2008, 02:22 PM   #1
daniel-kun
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Rep: Reputation: 0
Shortcut-application wanted


Hi there,

I just switched back to Linux after using Windows for like two years. I used a program that I wrote myself on Windows that gave me the following feature: I can assign a shortcut-key (like Ctrl+Alt+F) that would launch a specific application. So far that's pretty normal. But what makes that program special is that a second press of Ctrl+Alt+F will bring the previously started instance of the program to the foreground instead of starting a new instance.

Is there something like that for Linux/X? It really is the base of all my workflow when working on my computer now, so I will badly miss it if there is none.

Regards,

Daniel Albuschat
 
Old 06-02-2008, 04:06 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
That depends on the desktop environment you use.

In Kde, go to the Control Center - Regional and Accessibility - Keyboard shortcuts. Click on the Shortcut Schemes tab, then click on the Application Shortcuts tab.

Read the shortcuts already assigned. If ctrl+alt+F is already assigned, change the assignment to another key so that you can use ctrl+alt+F to start the application you want it for.

The app starts in forground. If you minimize it and want to bring it back to foreground, use alt+tab. Alt+tab will produce a popup list of open apps. If you hold the alt key down, successives keypresses of the tab key will cycle through the list of open apps. Whichever one you highlight will be brought to foreground with you releas the alt key.

I don't know what other desktop environments provide to do the same.
 
Old 06-02-2008, 04:26 PM   #3
daniel-kun
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Hello,

first, thanks for your answer and effort.
Well don't get me wrong, but it's not like I'm a beginner with either computers or Linux. :-)
The fancy thing about the shortcut-handling I've written for Windows is that to, for example, activate Firefox, I just have to press Ctrl+Alt+F and it will use an already open window if there is one. Same goes for all other shortcuts I've defined. Cycling through Alt+Tab is a major pain and not nearly as effective as just pressing the shortcut of the application I want to jump to.
I've just been told about the program wmctrl which I can use to accomplish this. I'll post a new message when I've finished a solution for this.

Regards,
Daniel Albuschat
 
  


Reply

Tags
desktop, hotkey, shortcuts



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
set a Global shortcut for my Application? mtux Programming 2 08-23-2007 02:47 PM
how can i create a keyboard shortcut for a certain application i want? kublador Linux - Newbie 4 04-05-2007 08:04 AM
installed application in linux ! no shortcut?? cyberiapost Linux - Newbie 3 12-03-2006 06:16 AM
application shortcut trumpetdork Linux - Software 5 04-19-2005 05:58 PM
make a shortcut to a perl application with perameters? ShawnD Linux - General 5 09-19-2002 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:10 PM.

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