xnotify: popup a notification on your screen - Programming On Unix

Users browsing this thread: 5 Guest(s)
seninha
Long time nixers
I dedicated the last weekend to write yet another X11 utility: xnotify.
It is a notification launcher that reads notification from the stdin and displays it on your screen.
You can create a fifo in order to echo stuff into it.

For example:

Code:
echo "Hello World" > /tmp/xnotify.fifo

Would create a notification with “Hello World” as its content.

Here's a demo gif that illustrates its usage.

[Image: 93690391-49b11780-fac7-11ea-96da-ab850dca1b9f.gif]

To launch xnotify, add the following to your ~/.xinitrc:

Code:
rm -f /tmp/xnotify.fifo
mkfifo /tmp/xnotify.fifo
xnotify </tmp/xnotify.fifo 3<>/tmp/xnotify.fifo &

You can use it together with tiramisu, an application that outputs notifications to the stdout.

I still have to improve the text and image placement on the notification window, so any idea is welcome.

So, what do you think?


Messages In This Thread
xnotify: popup a notification on your screen - by seninha - 21-09-2020, 11:20 AM