Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- STAT1="station = 168317492035126149"
- STAT2="station = 3698886574780253061"
- STAT3="station = 3502937565302686597"
- STAT4="station = 193906589357114245"
- STAT5="station = 3492510286651130757"
- STAT6="station = 49035100490105733"
- STAT7="station = 225362710789686149"
- STAT8="station = 369226213781996421"
- STAT9="station = 188482247525729157"
- STAT10="station = 160921077315076997"
- STAT11="station = 107845142781428613"
- STAT12="station = 225989307863466885"
- HEIGHT=25
- WIDTH=70
- CHOICE_HEIGHT=20
- BACKTITLE="Pandora Launcher.."
- TITLE="Station Control"
- MENU="Choose one of the following options:"
- OPTIONS=(1 "Biggie Radio"
- 2 "Johnwayne Radio"
- 3 "Metric Radio"
- 4 "Bodysnatchers Radio"
- 5 "A Perfect Circle Radio"
- 6 "The Books Radio"
- 7 "Yeah Yeah Yeah's Radio"
- 8 "Dr Dog Radio"
- 9 "Prince Far I Radio"
- 10 "Binary Star Radio"
- 11 "Department of Eagles Radio"
- 12 "The Knife Radio")
- CHOICE=$(dialog --clear \
- --backtitle "$BACKTITLE" \
- --title "$TITLE" \
- --menu "$MENU" \
- $HEIGHT $WIDTH $CHOICE_HEIGHT \
- "${OPTIONS[@]}" \
- 2>&1 >/dev/tty)
- clear
- case $CHOICE in
- 1)
- sed -i -e "/autostart_/s/station =.*/$STAT1/" ~/.config/pianobar/config && pianobar
- ;;
- 2)
- sed -i -e "/autostart_/s/station =.*/$STAT2/" ~/.config/pianobar/config && pianobar
- ;;
- 3)
- sed -i -e "/autostart_/s/station =.*/$STAT3/" ~/.config/pianobar/config && pianobar
- ;;
- 4)
- sed -i -e "/autostart_/s/station =.*/$STAT4/" ~/.config/pianobar/config && pianobar
- ;;
- 5)
- sed -i -e "/autostart_/s/station =.*/$STAT5/" ~/.config/pianobar/config && pianobar
- ;;
- 6)
- sed -i -e "/autostart_/s/station =.*/$STAT6/" ~/.config/pianobar/config && pianobar
- ;;
- 7)
- sed -i -e "/autostart_/s/station =.*/$STAT7/" ~/.config/pianobar/config && pianobar
- ;;
- 8)
- sed -i -e "/autostart_/s/station =.*/$STAT8/" ~/.config/pianobar/config && pianobar
- ;;
- 9)
- sed -i -e "/autostart_/s/station =.*/$STAT9/" ~/.config/pianobar/config && pianobar
- ;;
- 10)
- sed -i -e "/autostart_/s/station =.*/$STAT10/" ~/.config/pianobar/config && pianobar
- ;;
- 11)
- sed -i -e "/autostart_/s/station =.*/$STAT11/" ~/.config/pianobar/config && pianobar
- ;;
- 12)
- sed -i -e "/autostart_/s/station =.*/$STAT12/" ~/.config/pianobar/config && pianobar
- ;;
- esac
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement