stumpwm.stumpwm-contrib/util/notify
2025-01-23 09:58:10 +01:00
..
notify.asd Misc changes to the NOTIFY contrib 2018-04-03 00:02:32 -05:00
notify.lisp Escape special chars and some edge case fixes when showing the notification's details. 2025-01-23 09:58:10 +01:00
package.lisp Misc changes to the NOTIFY contrib 2018-04-03 00:02:32 -05:00
README.org Alternative layout of footnotes, works better with org export 2021-02-08 15:29:30 -08:00

Notifications server for StumpWM.

Implements org.freedesktop.Notifications interface1. Shows notifications using stumpwm:message by default.

Usage

Add

  (load-module "notify")
  (notify:notify-server-toggle)

to .stumpwmrc

Now you can run default server using notify-server-toggle. In order to get your own notifications handler you can define on function

  (defun notification-handler (app icon summary body)
    "Does things with incoming notifications"
    ...)

Dependencies

On Debian/Ubuntu2 there's a dependency on libfixposix-dev. If you get an error such as the following:

~/quicklisp/dists/quicklisp/software/iolib-v0.8.3/src/syscalls/ffi-types-unix.c:14:10: fatal error: lfp.h: No such file or directory

Then you need to install the dev package:

  apt-get install -y libfixposix-dev

Testing

You can test notifications (if you have notify-send installed) with:

notify-send 'Hello world!' 'This is an example notification.'

Footnotes


2

…and possibly other distributions too