Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.