all repos — dotfiles @ fcd2a5a95b5ca3254f664d970d49cb4554b90d42

my *nix dotfiles

home/bin/notify-send (view raw)

 1#!/bin/sh
 2# mimic notify-send using xnotify
 3
 4[[ $(pgrep xnotify) == "" ]] && {
 5    XNOTIFY_FIFO="$HOME/.cache/xnotify$DISPLAY.fifo"
 6    export XNOTIFY_FIFO
 7    rm -f $XNOTIFY_FIFO
 8    mkfifo $XNOTIFY_FIFO
 9    xnotify <$XNOTIFY_FIFO 3<>$XNOTIFY_FIFO &
10}
11
12printf '%s\n' "$*" > $XNOTIFY_FIFO