Quote:
Originally Posted by Mechanikx
In order to use notify-send you need a notification server. DE's like xfce have one but WM's (at least the ones I've used) don't. I use notification-daemon (there are others) which is available from slackbuilds.org or ponce's repo. I have this line in my .xinitrc to start the daemon:
/usr/libexec/notification-daemon &
|
Hi Mechanikx, thanks for your tip I have been looking at notify-send for the last few days.
Using fvwm and fluxbox have put the notification-daemon command at the bottom of .xinitrc but the daemon is not starting.
Any advice about where in .xinitrc you put the command to start the notification daemon with your window manager would be much appreciated.
I have figured out two ways to get the daemon to autostart and display a message in fvwm. One is to create the file "/usr/share/dbus-1/services/org.freedesktop.Notifications.service" to start the daemon for the notify-send message in my fvwm config.
Code:
[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/libexec/notification-daemon
The other is to start the daemon from my ~/.fvwm/config file with a short sleep to allow notify-send time to send a message.
Code:
Exec /usr/libexec/notification-daemon &
Exec sleep 1 && notify-send "Connection status" "$(nmcli d | grep ' connected')" && notify-send "Disk space" "$(df -h | grep -e '/root' -e 'efi' -e '/home')"
Have also tried dunst which has the advantage it autostarts its notification server on notify-send request.