20 lines
225 B
Bash
20 lines
225 B
Bash
|
#!/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
|