wallnotify — 'wall' to libnotify bridge
This script listens for messages sent out by wall, shutdown, or write and displays them as graphical libnotify notifications.
The IO::Tty and Net::DBus Perl modules are required. On Debian they're packaged as libio-pty-perl and libnet-dbus-perl. On Arch Linux, the packages are perl-io-tty and perl-net-dbus. They can also be installed from CPAN.
sessreg tool is required for the script to add itself to utmp. On Debian, it comes as part of x11-xserver-utils package; on Arch Linux, xorg-sessreg.
The user must be allowed to run sessreg through sudo:
ALL ALL=(root) NOPASSWD: /usr/bin/sessreg
(This sudo thing is a BIG UGLY HACK and could be made unnecessary if there was a better way to update utmp without having full write permissions. Suggestions welcome.)
git clone git://github.com/grawity/wallnotify.git cd wallnotify sudo make install
The script will run automatically on logon, if you have
wallnotify.desktop installed to
~/.config/autostart. This is done by make install.
To run the script manually, use:
- On Ubuntu 11.10,
sessregadds two utmp entries, causing the message to appear twice. This doesn't happen with
sessreg1.0.7 on Arch. Not sure why.