#!/bin/sh # 10mpd - pause mpd on suspend/hibernate case $1 in hibernate) mpc pause ;; suspend) mpc pause ;; thaw) ;; resume) ;; *) ;; esac