random/notifyfo/notifyfo.sh
2016-03-14 17:35:39 +01:00

19 lines
225 B
Bash
Executable file

#!/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