-
-
Notifications
You must be signed in to change notification settings - Fork 31
HowTo: Use Dunst to view notifications
By default gnome-flashback
handles receiving and rendering notifications. If you desire more control over the notification UI, dunst
provides more options.
- Install
dunst
:
$ sudo apt install dunst
$ mkdir -p ~/.config/dunst
$ cp /etc/xdg/dunst/dunstrc ~/.config/dunst/
alternatively, in Ubuntu
sudo apt install dunst
- (for Regolith <1.3) Disable the notification subsystem in
gnome-flashback
:
$ gsettings set org.gnome.gnome-flashback notifications false
- (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.
- 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"
Since most of this wiki content was created, a new site for Regolith was created. This wiki content was written for Regolith 1.2 but most of it still applies to 1.3. However, it is suggested to first check if the information you are looking for is here.