Last active
November 25, 2020 07:52
-
-
Save capsulecorplab/19261dc41797ce81e8ef3e12b93bf323 to your computer and use it in GitHub Desktop.
Replaces org-pomodoro's bell alert with (Star Trek: TNG) door chime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.wav |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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