Commit 2299f693 authored by festival-studio's avatar festival-studio

irc panelplg

parent fef66ae7
......@@ -27,9 +27,10 @@ live = mksafe(input.jack(id="liquidsoap-ls1ls2-low", buffer_size=8, clock_safe=f
#icecast_flac(live, mount="pap-a", host="buildbox.adm", port=8051, password="hackme")
icecast_ogg(live, mount="pap-b", host="195.169.146.71", port=8051, password="hackme")
icecast_ogg(live, mount="pap-b", host="82.161.145.133", port=8052, password="hackme")
icecast_ogg(live, mount="pap-b", host="195.169.146.71", port=8051, password="hackme")
#icecast_flac(live, mount="mount-a", host="82.161.145.133", port=8052, password="hackme")
#icecast_mp3(live, mount="pap-ls1.mp3", host="deathstar.puscii.nl", port=8000, password="icecold")
......
......@@ -27,9 +27,10 @@ live = mksafe(input.jack(id="liquidsoap-ls1ls2-verylow", buffer_size=8, clock_sa
#icecast_flac(live, mount="pap-a", host="buildbox.adm", port=8051, password="hackme")
icecast_opus(live, mount="pap-b", host="admamsterdam.net", port=8051, password="hackme")
icecast_opus(live, mount="pap-b", host="82.161.145.133", port=8052, password="hackme")
icecast_opus(live, mount="pap-b", host="admamsterdam.net", port=8051, password="hackme")
#icecast_flac(live, mount="mount-a", host="82.161.145.133", port=8052, password="hackme")
#icecast_mp3(live, mount="pap-ls1.mp3", host="deathstar.puscii.nl", port=8000, password="icecold")
......
#!/usr/bin/env bash
date >> /home/user/src/streaming-media-stuff/panelplugin/swlog.txt
if [ "$1" == "irc" ]
then
#echo "lalala"
/home/user/src/streaming-media-stuff/panelplugin/test.sh switchirc
exit 0
fi
/home/user/src/streaming-media-stuff/panelplugin/test.sh switch
xfce4-panel --plugin-event=genmon-X:refresh:bool:true
#xfce4-panel --plugin-event=genmon-X:refresh:bool:true
echo "press a key to close window"
read
......
......@@ -8,6 +8,11 @@ CLICKCMD="/home/user/src/streaming-media-stuff/panelplugin/switch.sh"
#CLICK="<txtclick>xterm</txtclick>\n<click>xterm</click>"
CLICK="<txtclick>bash $CLICKCMD</txtclick>\n<click>$CLICKCMD</click>"
if [ "$1" = "switchirc" ]
then
switch=1
fi
if [ "$1" = "switch" ]
then
switch=1
......@@ -23,39 +28,39 @@ systemctl is-active --quiet liquidsoap-pap@$1.service
if isa ls1ls2
then
# cat /home/user/src/streaming-media-stuff/panelplugin/testout.txt
echo -e "$CLICK"
echo "<txt> ON</txt>"
#click -e "$CLICK"
txt="<txt> ON</txt>"
newstate="off"
elif isa ls1ls2-low
then
echo -e "$CLICK"
echo "<txt>ON-low</txt>"
#echo -e "$CLICK"
txt="<txt>ON-low</txt>"
newstate="off"
elif isa ls1ls2-verylow
then
echo -e "$CLICK"
#echo -e "$CLICK"
echo "<txt> ON-verylow</txt>"
txt="<txt> ON-verylow</txt>"
newstate="off"
elif isa papillon-test
then
echo -e "$CLICK"
#echo -e "$CLICK"
echo "<img>/home/user/src/streaming-media-stuff/panelplugin/onair-30px.png</img>"
echo "<txt>TEST</txt>"
img="<img>/home/user/src/streaming-media-stuff/panelplugin/onair-30px.png</img>"
txt="<txt>TEST</txt>"
newstate="off"
else
echo -e "$CLICK"
#echo -e "$CLICK"
echo "<txt>Radio: OFF</txt>"
txt="<txt>Radio: OFF</txt>"
newstate="on"
fi
if [ "$1" = "switch" ]
if [ "$switch" = 1 ]
then
if [ "$newstate" = "on" ]
......@@ -69,6 +74,10 @@ then
sudo systemctl stop liquidsoap-pap@$CSERVICE.service
fi
switch=1
else
echo -e "$CLICK"
echo $txt
echo $newstate
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment