Some neat little script for artsd replacement. First, you need to disable arts, then - under notifications there is a switch for configuring a seperate player... there goes the complete path to our script below:
#!/bin/bash FILE="$1" DEVICE="plug:$2" [ "$DEVICE" == "plug:" ] && DEVICE="default" case `echo "$FILE" | sed -re "s/.*\.(.*)$/\1/"` in ogg) oggdec -o- -- "$FILE" 2>/dev/null | aplay -q -D $DEVICE ;; mp3|mpg|mpeg) mpg321 -w - -q -- "$FILE" 2>/dev/null | aplay -q -D $DEVICE ;; wav|au) aplay -q -D "$DEVICE" -- "$FILE" ;; esac
Annotation: On Gentoo, you may compile your system with USE="-arts", but you need to enable arts for kdelibs and arts itself (for building knotify!)