Miscellany
public text v1 · immutable#!/bin/bash
gnome-screensaver-command -i -r "Mplayer running" &
SPID=$!
function r_exit() {
kill $SPID
}
trap r_exit 9
trap r_exit 3
trap r_exit 1
mplayer -ao alsa:device=hw=1.2 -ac hwdts,hwac3, -fs "$@"
r_exit