Of course I forgot the attachment, here it is. -- see shy jo
# -*- sh -*- # vim:ft=sh:ts=8:sw=4:noet
AddConfigHandler AudioPauseOptions AddConfigHelp "AudioPause <boolean>" "This will pause audio playing before hibernation. Audio playing is not resumed afterwards, you can do it manually." AudioPauseSuspend() { for qluser in $(ps aux | grep '[q]uodlibet' | awk '{print $1}' | sort | uniq); do homedir=$(getent passwd "$qluser" | cut -d: -f 6) if [ -e $homedir/.quodlibet/control ]; then vecho 1 "Pausing $qluser quodlibet.." echo pause > $homedir/.quodlibet/control fi done return 0 } AudioPauseOptions() { case $1 in audiopause) if [ -z "$AUDIOPAUSE_HOOKED" ] ; then # Run before device scriptlet kills programs accessing # some devices. Pausing can prevent an audio player # from using a device and getting killed. AddSuspendHook 15 AudioPauseSuspend AUDIOPAUSE_HOOKED=1 fi ;; *) return 1 esac return 0 } # $Id: $
signature.asc
Description: Digital signature