all repos — dotfiles @ dd085d2a35b9c41f5f8de76d49e290e8e1d6e37d

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