all repos — dotfiles @ 7aea05e57ad97627f5907f1e8e220b61cc467254

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