- Linux Mint Forums
- Shortcut for switching between keyboard layouts (languages)?
- Shortcut for switching between keyboard layouts (languages)?
- Best way to create and change shortcuts in Linux Mint
- How to change default shortcuts in Linux Mint
- How to open a folder with Keyboard shortcuts
- How to open a application with Keyboard shortcuts
- How to Create Keyboard Shortcuts on Linux Mint
- Step 1 — Open the Dashboard Menu
- Step 2 — Go to Shortcuts Window
- Step 3 — Create your shortcut
- Step 4 — Run your shortcut
- Conclusion
Linux Mint Forums
Shortcut for switching between keyboard layouts (languages)?
Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.
Shortcut for switching between keyboard layouts (languages)?
Post by beansandjeans » Tue Jan 01, 2013 6:11 pm
So I recently installed Mint 13 XFCE on a netbook, and this computer is shared with someone who uses the German keyboard layout. I have both keyboard layouts (German and US English) set-up, but the process of switching between them is somewhat tedious — I have to go into the keyboard settings menu, and from there to the layout tab, and then switch from one language to the other. I put a shortcut to this menu on the desktop, so at least I don’t have to navigate through the menu to get to it, but it’s still rather tedious.
This is the first time I’ve worked used multiple keyboard layouts on a Linux computer. On Windows it was always just a matter of Alt-Shift.
So I’m wanting to know if there’s any existing shortcut that could be used, or if one could be set up.
In that same keyboard menu there’s an «application shortcuts» tab, and I’ve made a new shortcut already for an application, but I imagine this might also work for other keyboard shortcuts in general. But for that I need a command, and I don’t know what the command is to switch between keyboard layouts. I hope there is one, and preferably one that can be used to toggle it in either direction (the same command to switch from English to German and vice versa), but if has to be two separate commands that’s not a big deal.
All help much appreciated! Thanks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Best way to create and change shortcuts in Linux Mint
One of the most popular approaches of opening programs and files on a computer system is through keyboard shortcuts. No matter what operating system you use, shortcuts are the most productive way that anyone can find to use system.
And Linux mint is no exception. You can change the default keyboard shortcuts and add some new ones to open files and applications on your system with ease.
And this guide will help you to do that. So you can change the default shortcuts key, or create your own custom shortcuts in Linux system in number of steps.
How to change default shortcuts in Linux Mint
Here default shortcuts mean basic functions in OS that come up with default keyboard shortcuts. And to change the key combinations of them. Follow the below steps.
- Click the super key on your taskbar. And search for keyboard.
- In keyboard, go to shortcuts option.
- There you get a whole list of all the functions in your system. In which the keyboard shortcuts are set automatically, for example in windows you see the functions like Maximize window, Minimize window etc.
You can change the shortcut key according to your need.
In my case I want to change the Minimize window key shortcut. So, I am going to click on it, and as soon as I click on it, the keyboard binding section shows the options to change those shortcuts. In which I have to press the keyboard buttons that I want to set as a shortcut.
How to open a folder with Keyboard shortcuts
Setting a shortcut key for a particular folder can also be done in Linux Mint. But for that, you need to set up a custom keyboard shortcut. For that, follow the steps below.
- Open keyboard setting, and navigate to the shortcut option.
- In shortcuts, click the custom shortcut property.
- Click the add shortcut button and a pop-up window will appear in front of you.
- Now in the pop-up window, give shortcut a name, and in the command section give the location of a folder you want to open, with the command name nemo in front of it. For example, nemo /home/Shivam/Downloads.
- And finally assign a shortcut to it.
If you are unable to locate your folder. Then go to the search bar and search for a file, which is a file manager. From there locate the folder that you want to use. And when you reach that folder, from the top bar copy the path of that folder.
And paste in your command box, with the nemo command in front of it.
How to open a application with Keyboard shortcuts
Just like folders you can also open programs. But you must give the location of the application, where it was installed. So, let’s see how it is done.
- Just like previously. Open the keyboard settings and navigate to shortcuts, then select the custom shortcut property. Where you add the shortcut.
- Again, click the add shortcut, give the name of the shortcut and in the command section click the none button and it will bring up a file manager.
- Now in file manager your home directory will appear. But you have to navigate to your root directory, click the arrow button in top, and then press the disk button. Which takes you to the root directory.
- As soon as your root directory opens, find the usr directory then bin directory. In which all your applications are installed.
For example, I want to create a shortcut key to open Firefox. In usr/bin directory I will find the Firefox application and open it with an open button.
And by doing this, a path for the Firefox application is set in the command box, and all you now have to do is click the Add button. Then assign a keyboard shortcut to it.
How to Create Keyboard Shortcuts on Linux Mint
In this tutorial you will learn how to create shortcuts or edit the already existing shortcuts on Linux Mint.
Shortcuts are helpful commands when you need to launch an software, take a screenshot or do something custom when you press any key combination. For example, if you press CTRL + ALT + T it would open the terminal on Linux.
Let’s say you want to create a shortcut to be able to take a screenshot via your preferred keys, without having to use the print screen button or if your keyboard doesn’t have one then creating an shortcut to do this thing would be necessary to do.
Step 1 — Open the Dashboard Menu
Click over the Linux mint icon to open the dashboard menu
Now lookup for keyboard settings, keyboard is located on All applications sections, or you can simply type the keyword «Keyboard» on the search box and then simply click on the keyboard.
Go to Keyboard by typing Keyboard on the search box
Step 2 — Go to Shortcuts Window
Once you are on Keyboard settings Window you need to go to Shortcut sections, click over Shortcuts button and it should take you to the Shortcut section.
And the Shortcut Window will look like this, now on this window you can create your favorite shortcut or edit the default shortcuts that are already created by your system.
Step 3 — Create your shortcut
Creating a shortcut is very easy, all you have to do is click the button «Add custom shortcut»
This will open this window, where you have to set a name for your shortcut and the command.
Name — Allows you to choose a name for your shortcut
Command — Is the command that you want executed when you press your key combinations
If you want to create a shortcut that launches an application installed on your computer, then we’ll need to put the application’s path to the command box
For example let’s say you want to launch firefox when you press CTRL + F, to do this you need to put the firefox’s execution path on the command box.
Firefox Execution’s path is /usr/bin/firefox
Once you have set the name and the command click the «Add» button to create the shortcut
This will create the shortcut as shown on the image below
Next click to «OwlHowTo» and then double click to the first keyboard binding. Once the «Pick an accelerator» shows up you need to press keys that you want to set for the shortcut that you are creating.
For example, in this tutorial I created a shortcut named «OwlHowTo» which launches Firefox when pressing CTRL+F
CTRL + F is one of the most used keyboard shortcut commands that’s why I took it as example. However, when creating keyboard shortcuts make sure you are not creating a shortcut to do something which is already doing, for example in this case CTRL + F is the find command, no matter where or what application you are using when you press CTRL + F it will run the find command, which means the find command will not run when you press CTRL + F but it will run the shortcut that you created. To avoid this from happening you could set a unique keyboard shortcut which will not interfere or overwrite the existing shortcuts on your computer.
And the shortcut should look like this
Step 4 — Run your shortcut
Now that you have created the shortcut, it’s time to run it and see if it works correctly, simply press the keyboard bindings that you set on the step 4, the key combination should do exactly what you programmed it to do.
Conclusion
By now you should know how to create a custom keyboard shortcut on Linux Mint. Even though this tutorial was created by using Linux Mint, the steps of creating a keyboard shortcut are similar and should apply to all linux distros.