startup/shutdown sounds support

This commit is contained in:
TomasM committed 2017-11-07 08:41:49 -05:00
1 parent 52bb737ff9
commit 83918bf463
3 files changed
+33 -2

No files matched your search

@@ -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