diff options
Diffstat (limited to 'misc/.bashrc')
| -rw-r--r-- | misc/.bashrc | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/misc/.bashrc b/misc/.bashrc index 2d44565..48bc504 100644 --- a/misc/.bashrc +++ b/misc/.bashrc @@ -140,7 +140,6 @@ alias which='alias | which -i' alias chx="chmod +x" # dedicated emacs instances for emms and erc, see `my-profile' in my # emacs init files -alias emms='EMACS_PROFILE=emms emacs' alias erc='EMACS_PROFILE=erc emacs' # Safer default for cp, mv, rm. These will print a verbose output of @@ -283,5 +282,21 @@ gs-merge() { gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="$@" } +_chime() { + "$@" + local rc=$? + local d=/usr/share/sounds/freedesktop/stereo + if [ $rc -eq 0 ]; then + # success jingle + play -q -n synth 0.12 pluck C5 : synth 0.12 pluck E5 : synth 0.12 pluck G5 : synth 0.45 pluck C6 + else + # failure jingle + play -q -n synth 0.12 pluck C4 : synth 0.12 pluck G3 : synth 0.12 pluck Eb3 : synth 0.45 pluck C3 + fi + return $rc +} + +alias chime='_chime ' + # dptrp1 alias quaderno="dptrp1 --addr $QUADERNO_IP" |
