3 Nov 2023
Notifications in GNU/Linux
Installation
#
1
2
|
notify-send
# Command 'notify-send' not found, but can be installed with:
|
Installation with apt
#
1
2
|
# debian/ubuntu
sudo apt install libnotify-bin
|
Installation with dnf
#
1
2
|
# redhat/fedora
sudo dnf install libnotify
|
Usage
#
1
2
|
notify-send "this is the summary"
notify-send "this is the summary" "this is the body of the notification"
|
Send to remote machine over SSH
#
1
|
ssh user@host 'DISPLAY=:0 notify-send "TEST MESSAGE."'
|
Styling with HTML
#
HTML tags are supported for styling the notification messages, even including images, although the result is not styled in the case of notifications in the rofication setup used by default in the i3wm-based regolith-desktop DE.