.dotfiles/.local/bin/toggle-notifications

12 lines
366 B
Bash
Executable File

#!/bin/bash
current=$(gsettings get org.gnome.desktop.notifications show-banners)
if [ "$current" == "true" ]; then
gsettings set org.gnome.desktop.notifications show-banners false
notify-send "Desktop banner notifications disabled"
else
gsettings set org.gnome.desktop.notifications show-banners true
notify-send "Desktop banner notifications enabled"
fi