#!/bin/bash
# http://www.crystalfaeries.net/posix/bin/beep
# celeste:crystalfaery 2015-01-27 17:51:00+00:00

player="$(which mplayer)"
alert="/usr/share/sounds/gnome/default/alerts/bark.ogg"
"$player" "$alert" > /dev/null 2>&1


syntax highlighted by Code2HTML, v. 0.9.1