all repos — dotfiles @ bba83605b4b4b6548ec0f6d1f7d7a630cf5b2f68

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