Adding notify-log script to local/bin.
This commit is contained in:
parent
ce12f85eaa
commit
b40026471e
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
logfile=$1
|
||||
|
||||
dbus-monitor "interface='org.freedesktop.Notifications'" |\
|
||||
grep --line-buffered "string" |\
|
||||
grep --line-buffered -e method -e ":" -e '""' -e urgency -e notify -v |\
|
||||
grep --line-buffered '.*(?=string)|(?<=string).*' -oPi |\
|
||||
grep --line-buffered -v '^\s*$' |\
|
||||
xargs -I '{}' \
|
||||
printf "---$( date )---\n"{}"\n" >> $logfile
|
Loading…
Reference in New Issue