Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • How to Protect Your Phone’s SIM Card From Hackers How-To
  • Easily Add Programs to Windows 7 Startup Folders Windows 7
  • Best Vertical Mouse to Reduce Wrist Strain Product Reviews
  • 4 Great Online Image Compressors and Optimizers Tools Review
  • How to fix Bad System Config Info error on Windows 10 Windows 10
  • Quickly Get Rid of “App is Using Battery Notification” How-To
  • How To Set Up a NAS (Network Attached Storage) Networking
  • Build a Chatbot with IBM Watson Assistant Cool Websites

How to Quickly Create Keyboard Shortcuts in Ubuntu

Posted on October 18, 2020 By blog_786 No Comments on How to Quickly Create Keyboard Shortcuts in Ubuntu

How to Quickly Create Keyboard Shortcuts in Ubuntu.

The keyboard shortcuts are very convenient. You can customize the launch of shell scripts, third-party applications, or even specific web pages. For example, I assigned Alt + Space to run a shell script that stores my text snippets and I can quickly type in postal addresses, credit card number, etc. Moreover, Ubuntu allows you to map all of these keyboard shortcuts natively. Here are some ways to quickly create keyboard shortcuts in Ubuntu.

How to quickly create keyboard shortcuts in Ubuntu

1. Command line

If you’re too used to the command line, there are two more ways to do this – dconf and gsettings. If you already have dconf installed, continue, otherwise we will do it via gsettings. First of all, we need to check if the keyboard bindings list is empty. If it’s empty, which is usually what it should be if you haven’t created shortcuts before. However, use the following command to check the list of keyboard shortcuts. gsettings gets org.gnome.settings-daemon.plugins.media-keys custom-keybindings

How to Quickly Create Keyboard Shortcuts in Ubuntu

If you get an empty result like above, we need to create our own list first. I call my list “custom0”. You can give it any name, but to keep it clean, we’ll choose custom0. To do this, use the following command. gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings “[‘/ org / gnome / settings-daemon / plugins / media-keys / custom-keybindings / custom0 /’]”

After the command completes successfully, run the following command again to test the creation of the custom key list. You should get something similar to the following result. gsettings gets org.gnome.settings-daemon.plugins.media-keys custom-keybindings

How to Quickly Create Keyboard Shortcuts in Ubuntu

Then we need to add our keyboard shortcuts to the “custom0” list we just created. This requires a set of 3 commands, which will first give our shortcut a name, file location and shortcut respectively. For example, I want to map “Ctrl + Alt + Page_Down” to launch the Gedit editor. So, I just found the location of the gedit application file using the “whereis” command. Below are the commands I used to do this. gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding: / org / gnome / settings-daemon / plugins / media-keys / custom-keybindings / custom0 / name “‘gedit_launch'” gsettings set org .gnome.settings-daemon.plugins.media-keys.custom-keybinding: / org / gnome / settings-daemon / plugins / media-keys / custom-keybindings / custom0 / binding “‘ Page_Down'” gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding: / org / gnome / settings-daemon / plugins / media-keys / custom-keybindings / custom0 / command “‘/ usr / bin / gedit ‘”

How to Quickly Create Keyboard Shortcuts in Ubuntu

After successfully completing all the commands, you will be able to launch the application by pressing a key. Moreover, you will also see an entry at the end under the keyboard.

How to Quickly Create Keyboard Shortcuts in Ubuntu

If you want to change the shortcut, you can do so through the GUI. Alternatively, if you run the same commands, it will override the previous configurations.

2. Graphical user interface

You can also create a shortcut through a GUI, and it is comparatively more intuitive. To do this, go to the settings menu and click the “Devices” tab. Then click the Keyboard tab. Alternatively, you can also type “Keyboard” in the GNOME search bar.

How to Quickly Create Keyboard Shortcuts in Ubuntu

In the Keyboard section, scroll down and click the + button.

How to Quickly Create Keyboard Shortcuts in Ubuntu

In the pop-up window for adding a shortcut, you must enter the name, file location and keyboard shortcut. For example, I want to map “Alt + Ctrl + Page_Down” to launch a gedit application. So, I figured out the location of the gedit application file using the “whereis” command. Also, to add a keyboard shortcut, you just need to click the “Set keyboard shortcut …” button and the keystroke will be recorded.

After entering all the parameters, click the Add button in the upper right corner.

How to Quickly Create Keyboard Shortcuts in Ubuntu

Once added, you should be able to see the shortcut at the bottom of the page. If you can, you should be able to launch the application with a keyboard shortcut.

How to Quickly Create Keyboard Shortcuts in Ubuntu

These keyboard shortcuts can also be used to launch shell scripts or application images. If you have further problems or questions, let me know in the comments below.

Also Read: Best Ubuntu Browsers You Must Try In 2019

Share this:

  • Twitter
  • Facebook
How-To Tags:Command line, Graphical user interface, How to Quickly Create Keyboard Shortcuts in Ubuntu

Post navigation

Previous Post: How to Upgrade to YouTube Premium Family Plan
Next Post: Quickest Ways to Set a Timer on your iPhone?

Related Posts

  • How to Reduce PNG File Size of a Photo How-To
  • How to scan a QR code on iPhone and Android How-To
  • How To Make It Harder For Someone To Hack Into Your WordPress Site How-To
  • How To Block Websites On Windows Using The Hosts File How-To
  • Why Is Gmail So Slow and What You Can Do About It How-To
  • How To Remove Or Replace a Background In Photoshop How-To

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • March 2021
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018

Categories

  • AI Tools & Guides
  • Amazon Web Services
  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Featured Posts
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • islamic Books
  • Linux
  • Linux Tips
  • Mac OS X
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • OS X
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tools Review
  • Troubleshooting
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • Windows XP Tips
  • Wordpress
  • 6 Simple Hacks To Access Blocked Websites
  • How to Watch Netflix in 1080p on Chrome and FireFox
  • cat5 vs cat5e vs cat6 vs cat6a vs cat7 – Which Ethernet Cable to Use?
  • 15 Best Legal Torrenting Sites to Download Content Safely
  • Review of the ReMarkable 2.0 tablet with Type Folio keyboard
DMCA.com Protection Status

Recent Posts

  • 6 Simple Hacks To Access Blocked Websites
  • How to Watch Netflix in 1080p on Chrome and FireFox
  • cat5 vs cat5e vs cat6 vs cat6a vs cat7 Which Ethernet Cable to Use?
  • 15 Best Legal Torrenting Sites to Download Content Safely
  • Review of the ReMarkable 2.0 tablet with Type Folio keyboard

Recent Comments

  1. Flixable Helps You Find the Best Movies and TV shows on Netflix on SmartDNS vs VPN “What’s the Difference?”
  2. 5 Sites That Are Like Audible, But Free on Top 4 Amazon Price Tracker Tools
  3. 5 Sites That Are Like Audible, But Free on 14 Best Free Audiobooks on Audible – 2022
  4. How to Reduce PNG File Size of a Photo on How to Convert a Screenshot to a Jpeg on a Mac
  5. 3 Sites like YouTube to Earn Money With Your Videos on Here are the Top 10 highest paid YouTubers of 2013
  • The 3 Best Online Pomodoro Applications Cool Websites
  • How to Automatically Update Free Software with Chocolatey Software Reviews
  • How to clear origin cache Gaming
  • How To Edit Or Modify a PowerPoint Template Office Tips
  • Best WordPress Keyboard Shortcuts Every Blogger Should Know How-To
  • How to Fix “Trust relationship has failed” Error Windows
  • How To Use a Mac To Connect To Another Mac Remotely OS X
  • How to Fix Face ID With a Mask Not Working on iPhone? iOS

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version