pinosaur
/
dotfiles.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
lots of snippets
[dotfiles.git]
/
Scripts
/
notify
1
#!/bin/sh
2
3
get_json() {
4
cat - | python3 -c "import sys, json; print(json.load(sys.stdin)['$1'])"
5
}
6
7
while read line; do
8
icon="$(echo $line | get_json app_icon)"
9
msg="$(echo $line | get_json summary)"
10
herbe "$icon $msg" &
11
done