<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; cli_radio]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=23112</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=23112&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «cli_radio».]]></description>
		<lastBuildDate>Sun, 01 Jul 2012 13:19:43 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: cli_radio]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=285388#p285388</link>
			<description><![CDATA[<p><span class="bbu">Прикрутим к Yakuake</span> =)<br />Команда запуска этого скрипта для кнопки &quot;Меню запуска приложений&quot;&nbsp; или &quot;Cсылки на приложение&quot; KDE4:<br />(одна строка)<br /></p><div class="codebox"><pre><code>qdbus org.kde.yakuake /yakuake/sessions addSession &amp;&amp; qdbus org.kde.yakuake /yakuake/sessions runCommand &#039;sh /путь_до_скрипта/скрипт_radio&#039; &amp;&amp;  qdbus org.kde.yakuake /yakuake/window org.kde.yakuake.toggleWindowState</code></pre></div><p>(Для удобства: снять галку &quot;Включить отклик запуска&quot;)</p><p>Или скриптом:<br /></p><div class="codebox"><pre><code>#!/bin/bash
qdbus org.kde.yakuake /yakuake/sessions addSession
qdbus org.kde.yakuake /yakuake/sessions runCommand &#039;sh /путь_до_скрипта_radio/скрипт_radio&#039;
qdbus org.kde.yakuake /yakuake/window org.kde.yakuake.toggleWindowState</code></pre></div><p>И не забыть сделать его исполняемым.</p>]]></description>
			<author><![CDATA[null@example.com (verg)]]></author>
			<pubDate>Sun, 01 Jul 2012 13:19:43 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=285388#p285388</guid>
		</item>
		<item>
			<title><![CDATA[cli_radio]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=285302#p285302</link>
			<description><![CDATA[<p>Cлушаем онлайн радио используя всем известный mplayer.</p><p><span class="postimg"><img src="http://i.imgur.com/FVp1e8V.gif" alt="http://i.imgur.com/FVp1e8V.gif" /></span></p><div class="codebox"><pre><code>#!/bin/bash
########################################################
# cli_radio                                            #
# based on IceFox radio-select script                  #                                                    
########################################################
# set colors
RED=&#039;\e[41m&#039;
BLUE=&#039;\e[44m&#039;
CYAN=&#039;\e[46m&#039;
NC=&#039;\e[0m&#039;
# set player
PLAYER=&quot;/usr/bin/mplayer&quot;
# verify if $PLAYER is installed
if [ -e $PLAYER ]; then
    # stop current $PLAYER session
    if [ &quot;$(pidof mplayer)&quot; ]; then
        killall mplayer
    fi
    while true; do
    clear
    echo &quot;&quot;
    echo &quot; ·····················································&quot;
    echo &quot; ·             select a station and play             ·&quot;
    echo &quot; ·                                                   ·&quot;
    echo -e &quot; · $CYAN[space]$NC to pause, $CYAN[q]$NC to stop, $CYAN[Ctrl]+[c]$NC to quit ·&quot;
    echo &quot; ·····················································&quot;
    echo &quot;&quot;
    echo &quot; ·································································&quot;
    echo -e &quot; ·  $BLUE  1 $NC  Groove Salad                    $BLUE  2 $NC  Lush             ·&quot;
    echo -e &quot; ·  $BLUE  3 $NC  Earwaves                        $BLUE  4 $NC  Deap Space One   ·&quot;
    echo -e &quot; ·  $BLUE  5 $NC  Drone Zone                      $BLUE  6 $NC  Pop Tron         ·&quot;
    echo -e &quot; ·  $BLUE  7 $NC  Def Con                         $BLUE  8 $NC  Dub Step Beyond  ·&quot;
    echo -e &quot; ·  $BLUE  9 $NC  Space Station Soma              $BLUE 10 $NC  Mission Control  ·&quot;
    echo -e &quot; ·  $BLUE 11 $NC  Indie Pop Rocks!                $BLUE 12 $NC  Folk Forward     ·&quot;
    echo -e &quot; ·  $BLUE 13 $NC  BAGel Radio                     $BLUE 14 $NC  Digitalis        ·&quot;
    echo -e &quot; ·  $BLUE 15 $NC  Sonic Universe                  $BLUE 16 $NC  Secret Agent     ·&quot;
    echo -e &quot; ·  $BLUE 17 $NC  Suberbs of Goa                  $BLUE 18 $NC  Boot Liquor      ·&quot;
    echo -e &quot; ·  $BLUE 19 $NC  Illinois St. Lounge             $BLUE 20 $NC  The Trip         ·&quot;
    echo -e &quot; ·  $BLUE 21 $NC  cliqhop idm                     $BLUE 22 $NC  Covers           ·&quot;
    echo -e &quot; ·  $BLUE 23 $NC  Beat Blender                    $BLUE 24 $NC  Doomed           ·&quot;
    echo -e &quot; ·  $BLUE 25 $NC  Black Rock FM                   $BLUE 26 $NC  SF 10-33         ·&quot;
    echo -e &quot; ·  $BLUE 27 $NC  custom link...                  $BLUE 28 $NC  custom link...   ·&quot;
    echo &quot; ·································································&quot;
    echo &quot;&quot;
    echo -e &quot; select a $BLUE number $NC from 1 to 26 then hit $CYAN[Enter]$NC&quot;
    echo &quot;&quot;
    read choix
    case $choix in
        1)
            $PLAYER http://uwstream1.somafm.com:80
            ;;
        2)
            $PLAYER http://sfstream1.somafm.com:8800
            ;;
        3)
            $PLAYER http://sfstream1.somafm.com:5100
            ;;
        4)
            $PLAYER http://sfstream1.somafm.com:2800
            ;;
        5)
            $PLAYER http://uwstream2.somafm.com:80
            ;;
        6)
            $PLAYER http://sv1.vestaradio.com:7420
            ;;
        7)
            $PLAYER http://sfstream1.somafm.com:2200
            ;;
        8)
            $PLAYER http://sfstream1.somafm.com:6200
            ;;
        9)
            $PLAYER http://uwstream2.somafm.com:2666
            ;;
        10)
            $PLAYER http://sfstream1.somafm.com:2020
            ;;
        11)
            $PLAYER http://sfstream1.somafm.com:8090
            ;;
        12)
            $PLAYER http://sfstream1.somafm.com:7400
            ;;
        13)
            $PLAYER http://sfstream1.somafm.com:9090
            ;;
        14)
            $PLAYER http://sfstream1.somafm.com:8900
            ;;
        15)
            $PLAYER http://sfstream1.somafm.com:8850
            ;;
        16)
            $PLAYER http://uwstream2.somafm.com:9016
            ;;
        17)
            $PLAYER http://sfstream1.somafm.com:8850
            ;;
        18)
            $PLAYER http://sfstream1.somafm.com:7000
            ;;
        19)
            $PLAYER http://sfstream1.somafm.com:8500
            ;;
        20)
            $PLAYER http://sfstream1.somafm.com:2504
            ;;
        21)
            $PLAYER http://uwstream2.somafm.com:2668
            ;;
        22)
            $PLAYER http://sfstream1.somafm.com:8700
            ;;
        23)
            $PLAYER http://sfstream1.somafm.com:8384
            ;;
        24)
            $PLAYER http://sfstream1.somafm.com:8300
            ;;
        25)
            $PLAYER http://sfstream1.somafm.com:8040
            ;;
        26)
            $PLAYER http://uwstream2.somafm.com:2040
            ;;
        27)
            echo &quot;&quot;
            echo &quot;put your custom link here&quot;
            echo &quot;&quot;
            read customlink
            $PLAYER $customlink
            ;;
        28)
            echo &quot;&quot;
            echo &quot;put your custom link here&quot;
            echo &quot;&quot;
            read customlink
            $PLAYER $customlink
            ;;
        *)
            echo -e &quot;$RED wrong choice $NC&quot;
            echo &quot;try again...&quot;
            echo &quot;&quot;
            sleep 2
            clear
            ;;
    esac
    done
else
    echo &quot; this script need mplayer&quot;
    echo &quot; install it or change the PLAYER&quot;
    echo &quot;exiting ...&quot;
    exit 0
fi</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (m@xim)]]></author>
			<pubDate>Sat, 30 Jun 2012 20:28:03 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=285302#p285302</guid>
		</item>
	</channel>
</rss>
