Salut,
il monte le son de la radio progressivement pour ne pas vous reveiller trop violement ![]()
Puis apres un peu plus d’une demi-heure, tout se ferme tout seul. ![]()
voici :
[code]#!/bin/bash
Written in 2007 by sputnick in da FreaKy LapPy lAb
,_
o" )~
‹ ›‹ ›
prerequis: sox, xterm, aumix
time"2000"
browser=« konqueror »
meteo=« www.meteofrance.fr/FR/index.jsp »
url=« radionova.ovh.net »
radio1=« http://radionova.ovh.net:8000/ »
radio2=« http://stream.levillage.org/canalb.m3u »
export DISPLAY=:0
« $browser » « $meteo » >/dev/null 2>&1 &
VAR1=$!
if ping -c 1 $url >/dev/null; then
( xterm -bg black -fg red -e mplayer « $radio1 » >/dev/null 2>&1 & ) || ( vlc « $radio2 » & )
VAR2=$!
else
xterm -bg black -fg red -e play « $mp3 » >/dev/null 2>&1 &
fi
aumix -v 0
for Z in $(seq 45); do
aumix -v + « $Z »
sleep 1
done
sleep « $time »
kill -9 « $VAR1 » « $VAR2 » >/dev/null 2>&1
exit 0[/code]
