Upon reading the README.md I've realized the instructions could be written in a
more straightforward manner. All you have to do for the contrib to work is put
the following lines in your rc file.
(notify-server-on) ; or (notify-server-toggle)
With that in your rc file show-notification would run every time a slack
notification, or any other notification, is sent. In the case of
show-notification that means using the message box that StumpWM for its
If you would like that the notification be displayed in a different manner you
would have to change the function stored in *notification-received-hook* (which
incidentally is not a hook, hooks are lists of functions). For example Ubuntu
comes with libnotify which you can use from the CLI through notify-send. One
could use libnotify by placing the following code it its rc-file after loading
the notify module.
(defun libnotify-show-notification (app icon summary body)
(format nil "notify-send --app-name=~A --icon=~A \"~A\" \"~A\""
(setf notify:*notification-received-hook* #'libnotify-show-notification)