Allow me a correction/suggestion. Conditional tests are best expressed in bash with [[ ]], as in:
if [[ ${myvar} == "foo" ]]; then echo "bar" fi
This snippet doesn't throw an error if myvar is undefined or empty. Better still, it doesn't do word splitting on the expansion ${myvar}.
Using [ ] is the sh-way of doing tests, not the bash-way.
I run Xubuntu 18.04 and use sounds from package sound-theme-freedesktop, and it never occurred to me that I could get other sound themes. Really useful article, congratulations !
Allow me a correction/suggestion. Conditional tests are best expressed in bash with [[ ]], as in:
if [[ ${myvar} == "foo" ]]; then
echo "bar"
fi
This snippet doesn't throw an error if myvar is undefined or empty. Better still, it doesn't do word splitting on the expansion ${myvar}.
Using [ ] is the sh-way of doing tests, not the bash-way.