startup/shutdown sounds support

This commit is contained in:
TomasM
2017-11-07 08:41:49 -05:00
parent 52bb737ff9
commit 83918bf463
3 changed files with 33 additions and 2 deletions
@@ -7,6 +7,14 @@ exec xlunch --input /etc/xlunch/logout.dsv --noprompt \
--highlight /usr/share/icons/hicolor/128x128/apps/xlunch_highlight.png \
--outputonly | while read LINE; do
SND=/usr/share/sounds/shutdown.wav
if [ "$LINE" != "" -a -r $SND ]; then
cat $SND > /dev/null # precache
aplay $SND &
sleep 2
fi
if [ "$LINE" = "logout" ]; then
killall Xorg
fi