Группа :: Система/Ядро и оборудование
Пакет: hibernate-script
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: hibernate-script-2.0-alt-pause-cmus.patch
Скачать
Скачать
--- hibernate-script-2.0/scriptlets.d/pause_audio.alt 2009-04-06 11:05:34 +0400
+++ hibernate-script-2.0/scriptlets.d/pause_audio 2009-04-06 11:03:40 +0400
@@ -32,6 +32,10 @@ PauseAudio() {
su $auuser -c 'dcop amarok player pause'
fi
done
+ # Pause cmus
+ for auuser in $(ps aux | grep -w '[c]mus' | awk '{print $1}' | sort | uniq); do
+ su $auuser -c 'cmus-remote -s'
+ done
# Add your favourite media player here.
# And then perhaps think up a less horrific way of doing this.
return 0