Created
June 1, 2020 01:02
-
-
Save thewh1teagle/b77c1bb382cd2251d458b46ce8fc3a0f to your computer and use it in GitHub Desktop.
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/bash | |
beep () { | |
if [ "$1" = --list ] | |
then | |
find /usr/share/sounds -type f -exec basename {} \; | sort -n | tr '\n' ' '; echo | |
else | |
paplay $(find /usr/share/sounds -type f -iname "${1:-bell}*" | head -1) | |
fi | |
} | |
beep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment