Skip to content

Instantly share code, notes, and snippets.

@capsulecorplab
Last active November 25, 2020 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save capsulecorplab/19261dc41797ce81e8ef3e12b93bf323 to your computer and use it in GitHub Desktop.
Save capsulecorplab/19261dc41797ce81e8ef3e12b93bf323 to your computer and use it in GitHub Desktop.
Replaces org-pomodoro's bell alert with (Star Trek: TNG) door chime
#!/usr/bin/env bash
################################################################################
# Replaces bell wav files in org-pomodoro (Emacs package) with chime sound from
# Star Trek TNG.
#
# cli usage:
# $> sh bell_to_star_trek_tng_chime.sh
################################################################################
if [ ! -f bell.wav ] || [ ! -f bell_multiple.wav ]; then
tng_chime="https://www.trekcore.com/audio/doors/tng_chime_clean.mp3"
ffmpeg -i $tng_chime bell_multiple.wav
ffmpeg -i bell_multiple.wav -t 00:01 bell.wav
fi
find $HOME/.emacs.d/elpa -type d -name '*resources*' -exec bash -c 'cp -t $1 bell.wav bell_multiple.wav' -- {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment