In order for you a sturdy, extremely customizable notification system to take the place of your system’s boring built-in one, you want to try Dunst. It’s an entire notification system substitute that may be very configurable and has far more options than what comes by default. Right here’s how to get it working.
Notice: don’t attempt to use Dunst on KDE Plasma 5, Gnome Shell or desktops constructed on Plasma or Gnome. These desktops have good methods already, and it’s not value utilizing Dunst with them.
Disable present notification system
Dunst won’t work accurately, and even launch if you don’t have already got the notification system on your desktop setting already shut off. So, open up a terminal window by urgent Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Then, from there, observe the directions that correspond with your Linux desktop setting.
Notice: tiling window managers usually don’t have a built-in notification system. Skip this part in case you are utilizing i3, Dwm, or one thing related that doesn’t have a notification system.
XFCE4
The XFCE4 desktop setting doesn’t have a characteristic that permits customers to flip off the notification system with a fast tweak. As an alternative, customers want to fully purge the Notifyd service and kill it earlier than working with Dunst. To do that, observe the uninstallation directions beneath.
Ubuntu
sudo apt take away xfce4-notifyd
Debian
sudo apt-get take away xfce4-notifyd
Arch Linux
sudo pacman -R xfce4-notifyd
Fedora
sudo dnf take away xfce4-notifyd
OpenSUSE
sudo zypper take away xfce4-notifyd
With the package deal uninstalled out of your XFCE4 desktop, use the pidof command to decide the title of the notification service, because it’s nonetheless working in RAM.
pidof xfce4-notifyd
Take the quantity that pidof outputs and plug it into the kill command beneath to disable Xfce4-notifyd fully.
sudo kill -9 process-id-number
It’s possible you’ll want to run pidof xfce4-notifyd
after utilizing the kill command to be sure that the method is useless. Whether it is, pidof will return no course of ID the second time.
Mate
With Mate, the Dunst app ought to find a way to overtake the built-in notification system with none want to disable something. That mentioned in the event you’d like to disable it, open up a terminal window and enter the command beneath.
sudo mv /usr/share/dbus-1/companies/org.freedesktop.mate.Notifications.service /usr/share/dbus-1/companies/org.freedesktop.mate.Notifications.service.disabled
Others
Except for Mate and XFCE4, a number of different light-weight desktop environments may have to have their notification methods disabled earlier than persevering with. Due to what number of desktops there are, seek the advice of with the handbook of your desktop setting. Or, contemplate putting in XFCE4 or Mate to use Dunst with, if want be.
Putting in Dunst
Putting in Dunst on Linux is straightforward on most Linux distributions due to the detailed documentation the builders present. To get it working on your Linux PC, open up a terminal window and observe the directions that correspond with the OS you presently use.
Ubuntu
Utilizing Dunst on Ubuntu requires the “Ubuntu Universe” software program repository. To allow the Ubuntu Universe software program repository, enter the command beneath.
sudo add-apt-repository universe
With Universe enabled, set up Dunst on the system utilizing apt set up.
sudo apt set up dunst
Debian
sudo apt-get set up dunst
Arch Linux
sudo pacman -S dunst
Fedora
sudo dnf set up dunst
OpenSUSE
sudo dnf set up dunst
Supply Code
To put in Dunst from supply, start by reading the GitHub page to study what dependencies have to be put in in order that the software program will construct on your Linux PC. Then, enter the instructions beneath to get it compiled and put in.
git clone cd dunst make -j($nproc) sudo make set up
Configure Dunst
Dunst have to be configured earlier than it should work as your default notification system. The very first thing that have to be accomplished is that you should generate a brand new configuration file. The simplest method to do that is to obtain the default one from the web.
Utilizing the wget obtain software, obtain “dunstrc” to your Linux PC.
cd ~/Downloads
wget
With the “dunstrc” file accomplished downloading, use the mkdir command to create a folder for it in your house listing (~/).
mkdir -p ~/.config/dunst/
Subsequent, transfer the configuration file into the brand new folder.
mv ~/Downloads/dunstrc ~/.config/dunst/
From right here, open up the dunstrc file within the Nano textual content editor.
nano ~/.config/dunst/dunstrc
Use the Down Arrow key in Nano to scroll down the configuration file. Be happy to customise any side to the notification system you select.
Notice: Dunst works nice with out modifying the configuration file, so there’s no stress to modify it in the event you don’t know the way!
When accomplished modifying the configuration file, press Ctrl + O to save the edits. Shut Nano with Ctrl + X.
Begin Dunst
The software program is put in, and the dunstrc configuration file is in place. Now it’s time to begin up the Dunst systemd service. To do that, open up a terminal window and observe the instructions beneath particular to your OS.
Ubuntu/Debian
The Apt package deal supervisor, throughout set up, ought to mechanically allow and configure the systemd companies essential to use Dunst. Nonetheless, it doesn’t place a default configuration file in place, so the systemd service have to be restarted. To do that, use the systemctl restart command beneath.
systemctl restart --user dunst.servicee
Arch Linux/Fedora/OpenSUSE and Supply Code
Many Linux distributions that use systemd don’t take Ubuntu and Debian’s lead by enabling companies through the set up course of. As an alternative, this stuff have to be set up manually.
First, use systemctl allow to set up the service to run at boot.
systemctl allow --user dunst.service
Subsequent, begin up the service utilizing systemctl begin.
systemctl begin --user dunst.service
Assuming the companies begin up efficiently, you’ll be utilizing the Dunst notification system!