Codice: Seleziona tutto
#!/bin/bash
#
# mercoledì-08-02-2023
# Ora: 22:41
# By Pehua
#
. colori.sh
function RadioParadise {
mplayer -cache 128 http://stream.radioparadise.com/flac &
}
function RadioParadise-Mellow {
mplayer -cache 128 http://stream.radioparadise.com/mellow-flac &
}
function RadioParadise-Rock {
mplayer -cache 128 http://stream.radioparadise.com/rock-flac &
}
function RadioParadise-Eclectic {
mplayer -cache 128 http://stream.radioparadise.com/eclectic-flac &
}
function Virgin-Radio {
mplayer -cache 128 http://icecast.unitedradio.it/Virgin.mp3 &
}
SCELTA=`zenity --list --radiolist --title="Radio Zen Ity" --text="Scegliere la radio da ascoltare:" --width=350 --height=242 --column="Selezione" --column="Scelta" false "RadioParadise" false "RadioParadise-Mellow" false "RadioParadise-Rock" false "RadioParadise-Eclectic" false "Virgin-Radio"`
if [ $? = 0 ] ; then
case $SCELTA in
RadioParadise) RadioParadise ;;
RadioParadise-Mellow) RadioParadise-Mellow ;;
RadioParadise-Rock) RadioParadise-Rock ;;
RadioParadise-Eclectic) RadioParadise-Eclectic ;;
Virgin-Radio) Virgin-Radio ;;
# $0 richiama se stesso invece dell 'avviso: Nessuna scelta
*) $0 #zenity --info --timeout=3 --title="Radio Zen Ity" --text="Nessuna scelta!!" ;;
esac
exit 0
fi
zenity --info --timeout=3 --title="Radio Zen Ity" --text="Operazione Annullata!!"
#
# Pehua usa: Ubuntu 22.04.1 LTS x86_64 ~ DE: ubuntu ~ Kernel: 5.15.0-58-generic
# Tutti gli script sono proprietà di Pehua
# Inventati e scritti da me.
# Da usare, modificare e distribuire liberamente e gratuitamente
#