dotfiles/bin/notifylog

3 lines
347 B
Text
Executable file

# Called by dunst to blat a notification into a log in tmpfs, for perusal by my hud script
# There's a security concern here, logging notifications like this. Only do this on a system you have control over
(echo -e "`date --iso-8601=seconds`\0 $DUNST_APP_NAME\0 $DUNST_SUMMARY\0 $DUNST_BODY" | tr '\n' ' ' ; echo '') >> $XDG_RUNTIME_DIR/notifylog