mb-music
This commit is contained in:
parent
21543769e3
commit
857db0227c
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
# mb-music - play Internet streams with mpv or PyRadio
|
||||
wmctrl -R cavatransparent
|
||||
mkdir -p "$HOME/.config/mabox/mb-music/"
|
||||
|
||||
CONFFILE="$HOME/.config/mabox/mb-music/mb-music.conf" # NOT USED YET
|
||||
@ -82,7 +83,7 @@ esac
|
||||
out+=("^sep($SNM)")
|
||||
out+=(" $VOL <span bgcolor='#333333' color='#d3d3d3'> <small>W + v</small> </span>,pavucontrol")
|
||||
out+=("^sep($RADIO)")
|
||||
out+=("$PYRADIO <span bgcolor='#333333' color='#d3d3d3'> <small>W + r</small> </span>,terminator --geometry=420x440-20-20 -e pyradio")
|
||||
out+=("$PYRADIO <span bgcolor='#333333' color='#d3d3d3'> <small>W + r</small> </span>,terminator --geometry=564x440-20-20 -e pyradio")
|
||||
|
||||
out+=("^sep()")
|
||||
NOWPL="0"
|
||||
@ -220,11 +221,11 @@ if [[ "$NOWPL" == "1" ]];then
|
||||
clr="#22FF22"
|
||||
read -r -d '' NOWPLAYLINES <<EOF
|
||||
@rect,,${jgtools_padding},$((jgtools_padding+74)),300,24,0,left,top,,#222222 80,
|
||||
@rect,,$((jgtools_padding+16)),$((jgtools_padding+78)),$((JGWIDTH-2*jgtools_padding-32)),16,4,left,top,,#222222 85,
|
||||
@rect,,$((jgtools_padding+16)),$((jgtools_padding+78)),$((JGWIDTH-2*jgtools_padding-32)),16,4,left,top,,#222222 25,
|
||||
@text,,$((jgtools_padding+18)),$((jgtools_padding+76)),$((JGWIDTH-2*jgtools_padding)),20,0,left,top,#FFFFFF 90,,""" <small>${NOW}</small>"""
|
||||
EOF
|
||||
else
|
||||
clr="#333333"
|
||||
clr="#444444"
|
||||
fi
|
||||
|
||||
cat <<EOF > ${MENU_ITEMS}
|
||||
@ -237,28 +238,29 @@ cat <<EOF > ${MENU_ITEMS}
|
||||
@rect,,$((jgtools_padding+40)),$((jgtools_padding+64)),8,36,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+50)),$((jgtools_padding+54)),8,46,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+60)),$((jgtools_padding+14)),8,86,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+70)),$((jgtools_padding+29)),8,71,0,left,top,,${clr} 95,
|
||||
@rect,,$((jgtools_padding+80)),$((jgtools_padding+64)),8,36,0,left,top,,${clr} 90,
|
||||
@rect,,$((jgtools_padding+90)),$((jgtools_padding+74)),8,26,0,left,top,,${clr} 85,
|
||||
@rect,,$((jgtools_padding+100)),$((jgtools_padding+54)),8,46,0,left,top,,${clr} 80,
|
||||
@rect,,$((jgtools_padding+110)),$((jgtools_padding+24)),8,76,0,left,top,,${clr} 75,
|
||||
@rect,,$((jgtools_padding+120)),$((jgtools_padding+34)),8,66,0,left,top,,${clr} 70,
|
||||
@rect,,$((jgtools_padding+130)),$((jgtools_padding+44)),8,56,0,left,top,,${clr} 65,
|
||||
@rect,,$((jgtools_padding+140)),$((jgtools_padding+54)),8,46,0,left,top,,${clr} 60,
|
||||
@rect,,$((jgtools_padding+150)),$((jgtools_padding+74)),8,26,0,left,top,,${clr} 55,
|
||||
@rect,,$((jgtools_padding+160)),$((jgtools_padding+84)),8,16,0,left,top,,${clr} 50,
|
||||
@rect,,$((jgtools_padding+170)),$((jgtools_padding+89)),8,11,0,left,top,,${clr} 45,
|
||||
@rect,,$((jgtools_padding+180)),$((jgtools_padding+94)),8,6,0,left,top,,${clr} 40,
|
||||
@rect,,$((jgtools_padding+190)),$((jgtools_padding+95)),8,5,0,left,top,,${clr} 35,
|
||||
@rect,,$((jgtools_padding+200)),$((jgtools_padding+95)),8,5,0,left,top,,${clr} 30,
|
||||
@rect,,$((jgtools_padding+210)),$((jgtools_padding+95)),8,5,0,left,top,,${clr} 25,
|
||||
@rect,,$((jgtools_padding+220)),$((jgtools_padding+96)),8,4,0,left,top,,${clr} 20,
|
||||
@rect,,$((jgtools_padding+230)),$((jgtools_padding+96)),8,4,0,left,top,,${clr} 15,
|
||||
|
||||
@rect,,$((jgtools_padding+260)),$((jgtools_padding+94)),8,6,0,left,top,,${clr} 40,
|
||||
@rect,,$((jgtools_padding+270)),$((jgtools_padding+68)),8,32,0,left,top,,${clr} 50,
|
||||
@rect,,$((jgtools_padding+280)),$((jgtools_padding+64)),8,36,0,left,top,,${clr} 60,
|
||||
@rect,,$((jgtools_padding+290)),$((jgtools_padding+58)),8,42,0,left,top,,${clr} 80,
|
||||
@rect,,$((jgtools_padding+70)),$((jgtools_padding+29)),8,71,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+80)),$((jgtools_padding+64)),8,36,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+90)),$((jgtools_padding+74)),8,26,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+100)),$((jgtools_padding+54)),8,46,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+110)),$((jgtools_padding+24)),8,76,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+120)),$((jgtools_padding+34)),8,66,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+130)),$((jgtools_padding+44)),8,56,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+140)),$((jgtools_padding+54)),8,46,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+150)),$((jgtools_padding+74)),8,26,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+160)),$((jgtools_padding+84)),8,16,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+170)),$((jgtools_padding+89)),8,11,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+180)),$((jgtools_padding+94)),8,6,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+190)),$((jgtools_padding+95)),8,5,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+200)),$((jgtools_padding+95)),8,5,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+210)),$((jgtools_padding+95)),8,5,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+220)),$((jgtools_padding+96)),8,4,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+230)),$((jgtools_padding+90)),8,10,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+240)),$((jgtools_padding+81)),8,19,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+250)),$((jgtools_padding+86)),8,14,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+260)),$((jgtools_padding+90)),8,10,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+270)),$((jgtools_padding+78)),8,22,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+280)),$((jgtools_padding+64)),8,36,0,left,top,,${clr} 100,
|
||||
@rect,,$((jgtools_padding+290)),$((jgtools_padding+58)),8,42,0,left,top,,${clr} 100,
|
||||
|
||||
|
||||
${NOWPLAYLINES}
|
||||
|
Loading…
Reference in New Issue
Block a user