Skip to content

Commit afb0b36

Browse files
committed
notify send with icons
1 parent 9cbdbb0 commit afb0b36

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

aliases

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ alias lupdate='git branch -D lkgr 1>/dev/null 2&>1; git lkgr | xargs git branch
6464
alias ma='my_activity.py --output-format="- [{title}]({url})" | sed -e "s/^Changes:$/Changes:\n/g" | sed -e "s/^Reviews:$/Reviews:\n/g" | sed -e "s/^Issues:$/Issues:\n/g"'
6565
alias mount-tmpfs-out='sudo mount -t tmpfs -o size=50% tmpfs out'
6666
alias ninja-detect-goma='if [ -e ~/goma ]; then if [ `uname` == "Darwin" ]; then echo ninja -j 100; else echo ninja -j 700; fi; else echo ninja; fi'
67-
alias notify-fail='(notify-send "Fail" "><><><><><><><><><><><><><><><><> <><><><><><><><><><><><><><><><>< ><><><><><><><><><><><><><><><><> <><><><><><><><><><><><><><><><>< ><><><><><><><><><><><><><><><><> <><><><><><><><><><><><><><><><>< ><><><><><><><><><><><><><><><><> <><><><><><><><><><><><><><><><>< ><><><><><><><><><><><><><><><><> ><><><><><><><><><><><><><><><><>" -i /usr/share/pixmaps/apple-red.png; paplay /usr/share/sounds/ubuntu/stereo/system-ready.ogg; exit 1)'
68-
alias notify-ok='(notify-send "OK" "><><><><><><><><><><><><><><><><> <><><><><><><><><><><><><><><><>< ><><><><><><><><><><><><><><><><> <><><><><><><><><><><><><><><><>< ><><><><><><><><><><><><><><><><> <><><><><><><><><><><><><><><><>< ><><><><><><><><><><><><><><><><> <><><><><><><><><><><><><><><><>< ><><><><><><><><><><><><><><><><> ><><><><><><><><><><><><><><><><>" -i /usr/share/pixmaps/apple-green.png; paplay /usr/share/sounds/ubuntu/stereo/system-ready.ogg; exit 0)'
67+
alias notify-fail='(notify-send -i $BASH_CONFIG_DIR/icons/red.png "FAIL"; paplay /usr/share/sounds/ubuntu/stereo/system-ready.ogg; exit 1)'
68+
alias notify-ok='(notify-send -i $BASH_CONFIG_DIR/icons/green.png "OK"; paplay /usr/share/sounds/ubuntu/stereo/system-ready.ogg; exit 0)'
6969
alias notify='notify-ok || notify-fail'
7070
alias p="pushd +1"
7171
alias r='if [ -e out/Release/chrome ]; then out/Release/chrome; else out/Release/Chromium.app/Contents/MacOS/Chromium; fi'

icons/green.png

38.8 KB
Loading

icons/red.png

41.6 KB
Loading

0 commit comments

Comments
 (0)