Skip to content

HowTo: Use Dunst to view notifications

Victor edited this page Apr 9, 2020 · 3 revisions

By default gnome-flashback handles receiving and rendering notifications. If you desire more control over the notification UI, dunst provides more options.

  1. Install dunst:
$ sudo apt install dunst
$ mkdir -p ~/.config/dunst
$ cp /etc/xdg/dunst/dunstrc ~/.config/dunst/

alternatively, in Ubuntu

sudo apt install dunst
  1. (for Regolith <1.3) Disable the notification subsystem in gnome-flashback:
$ gsettings set org.gnome.gnome-flashback notifications false
  1. (for Regolith 1.3) Replace Rofication with dunst. In the i3 config file, replace the line
exec --no-startup-id /usr/share/rofication/rofication-daemon.py

with

exec --no-startup-id /usr/bin/dunst

to start dunst during login.

Also, remove the dunst icon in the bar by making a custom config of i3xrocks and removing the Rofication section.

  1. Test dunst:
$ notify-send "this is a test"

You'll notice that the default look of dunst is pretty basic. Have a look at your dunst configuration file at ~/.config/dunst/dunstrc to make changes.

To integrate Dunst with Rofi, you have to modify the following line to dunstrc. This will allow you to use the shortcut ctrl+shift+period to trigger actions.

# dmenu path.
- dmenu = /usr/bin/dmenu -p dunst:
+ dmenu = /usr/bin/rofi -dmenu -p dunst:

You can test this by sending a url with notify-send

notify-send "www.google.es"