notify: A wrapper for marzocchi/zsh-notify plugin

This commit is contained in:
Sebastian Gniazdowski 2018-01-12 15:58:37 +01:00
parent 2f02abe09f
commit c5f3099cbb

11
cmds/plg-zsh-notify Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env zsh
# For use with marzocchi/zsh-notify, by setting following zstyle in zshrc:
# zstyle ':notify:*' notifier /path/to/zconvey/cmds/plg-zsh-notify
typeset -g BINDIR=${0:h}
local tpe="$1"
read -t1 -r msg
$BINDIR/zc-bg-notify -q "$tpe - $msg"