startup/shutdown sounds

pull/40/head
TomasM 2017-11-07 09:28:38 -05:00
parent cf2b7f38fb
commit e8783fe82d
4 changed files with 1 additions and 6 deletions

View File

@ -16,11 +16,7 @@ xsetroot -solid '#000000' -cursor_name watch
# this is a bit tricky
SND=/usr/share/sounds/startup.wav
if [ -r $SND ]; then
sleep 1 &
SLEEPID=$!
cat $SND > /dev/null # preload whole file
aplay $SND &
wait $SLEEPID
fi
# Applications you want to run with fluxbox.

View File

@ -10,9 +10,8 @@ exec xlunch --input /etc/xlunch/logout.dsv --noprompt \
SND=/usr/share/sounds/shutdown.wav
if [ "$LINE" != "" -a -r $SND ]; then
cat $SND > /dev/null # precache
aplay $SND &
sleep 2
sleep 1
fi
if [ "$LINE" = "logout" ]; then