all repos — dotfiles @ 827ca13004fcdccf41da2898a96ae43691aeb5de

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