random/notifyfo/notifyfo.sh

20 lines
225 B
Bash
Raw Normal View History

2016-03-14 17:35:39 +01:00
#!/bin/bash
# WTFPL
# fuck you dbus, fuck you.
fifo="/tmp/notify-send"
trap "rm -rf $fifo" EXIT
if [[ ! -p $fifo ]];
then
mkfifo $fifo
chmod 666 $fifo
fi
while read line < $fifo
do
notify-send "$line"
done