Ubuntu Enable/Disable Notification Keyboard Shortcut

I really like the default Ubuntu notification area, especially compared to other OSs. In recent years they have improved it a lot.

I use it on a daily basis and allow myself some focus mode when I need to do deep work. But having the need to click on the clock/notification, enable it or disable it is something that bothers me, or at least I find it annoying.

It turns out there is no shortcut available out of the box, so I had to create a quick bash script that takes care of this.


You have to clone the repository in a directory, based on your preferences. I have a folder called Software in my home dir where I place scripts and tools like this. We’ll be working with the assumption you have the same.

cd ~/Software/
git clone git@github.com:metodiew/ubuntu-notification-shortcut.git

Now, it’s time to set up the shortcut. You’ll need to make the file executable with the following:

sudo chmod +x ubuntu-notification-shortcut.sh

Then open Settings > Keyboard > Keyboard Shortcodes > Custom Shortoces and create a new shortcut.

In my case, I have Enable/Disable Notificiations set as the name, /home/metodiew/Software/ubuntu-notification-shortcut/ubuntu-notification-shortcut.sh for the path and Shift + Ctrl + J for the keyboard combination. Of course, all of these are customizable and based on your personal preference.

The end result would be – using the keyboard shortcuts will help you to enable or disable the notifications faster with no need to go and click with the mouse.

Give it a try and let me know if you have any questions or ideas and suggestions for improvements.

Stanko Metodiev is a WordPress veteran and the CTO of DevriX. For the past 12 years Stanko has been developing complex SaaS platforms, multisite solutions, migrating various systems to WordPress, managing a team of developers and leading a few key international projects in the company. In the past years, Stanko is the lead organizer of the WordPress Sofia User Group (WPBGUG) and has been a part of the organization of WordCamp Sofia and WordCamp Bulgaria. In his portfolio, you can find free themes and plugins on WordPress.org, and badges of his membership in the WordPress support, polyglots, theme reviews teams. Stanko is a fan of Real Madrid and often watches football games in shisha bars with friends and with his family at home. Also an avid fan of Counter-Strike and an active member of the remote work culture worldwide.

Tagged with: , ,
Posted in Linux

Leave a Reply

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


This site uses Akismet to reduce spam. Learn how your comment data is processed.

A proud DevriX team member

WordPress Development agency building complete solutions for successful businesses.

WordPress Core Contributions
  • [49216] Bundled Themes: Import Twenty Twenty-One, the new default theme for ...
  • [43345] I18N: Remove unused MediaElement.js strings. Props metodiew. See ...
  • [42160] About: Fix grammar typo with pluralization. Props metodiew, ...
  • [42159] About: Fix grammar typo with pluralization. Props metodiew, ...
  • [41339] Widgets: Use `word-wrap: break-word` for available widget ...

View all 15 tickets on Trac.

Recent Posts
Recent Comments