Last active
October 18, 2021 07:37
-
-
Save mijorus/a2e553f2ac0e05775a6c09f3350f892e to your computer and use it in GitHub Desktop.
Toggle Do Not Disturb mode on Gnome on/off with a sigle command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
currentdndstate=$(gsettings get org.gnome.desktop.notifications show-banners); if [ $currentdndstate == "false" ]; then gsettings set org.gnome.desktop.notifications show-banners true; else gsettings set org.gnome.desktop.notifications show-banners false; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment