Advertisement
Guest User

Pandora-Launcher.sh

a guest
Jan 4th, 2020
812
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. #!/bin/bash
  2. STAT1="station = 168317492035126149"
  3. STAT2="station = 3698886574780253061"
  4. STAT3="station = 3502937565302686597"
  5. STAT4="station = 193906589357114245"
  6. STAT5="station = 3492510286651130757"
  7. STAT6="station = 49035100490105733"
  8. STAT7="station = 225362710789686149"
  9. STAT8="station = 369226213781996421"
  10. STAT9="station = 188482247525729157"
  11. STAT10="station = 160921077315076997"
  12. STAT11="station = 107845142781428613"
  13. STAT12="station = 225989307863466885"
  14.  
  15. HEIGHT=25
  16. WIDTH=70
  17. CHOICE_HEIGHT=20
  18. BACKTITLE="Pandora Launcher.."
  19. TITLE="Station Control"
  20. MENU="Choose one of the following options:"
  21.  
  22.  
  23. OPTIONS=(1 "Biggie Radio"
  24. 2 "Johnwayne Radio"
  25. 3 "Metric Radio"
  26. 4 "Bodysnatchers Radio"
  27. 5 "A Perfect Circle Radio"
  28. 6 "The Books Radio"
  29. 7 "Yeah Yeah Yeah's Radio"
  30. 8 "Dr Dog Radio"
  31. 9 "Prince Far I Radio"
  32. 10 "Binary Star Radio"
  33. 11 "Department of Eagles Radio"
  34. 12 "The Knife Radio")
  35.  
  36.  
  37. CHOICE=$(dialog --clear \
  38. --backtitle "$BACKTITLE" \
  39. --title "$TITLE" \
  40. --menu "$MENU" \
  41. $HEIGHT $WIDTH $CHOICE_HEIGHT \
  42. "${OPTIONS[@]}" \
  43. 2>&1 >/dev/tty)
  44.  
  45. clear
  46. case $CHOICE in
  47. 1)
  48. sed -i -e "/autostart_/s/station =.*/$STAT1/" ~/.config/pianobar/config && pianobar
  49. ;;
  50. 2)
  51. sed -i -e "/autostart_/s/station =.*/$STAT2/" ~/.config/pianobar/config && pianobar
  52. ;;
  53. 3)
  54. sed -i -e "/autostart_/s/station =.*/$STAT3/" ~/.config/pianobar/config && pianobar
  55. ;;
  56. 4)
  57. sed -i -e "/autostart_/s/station =.*/$STAT4/" ~/.config/pianobar/config && pianobar
  58. ;;
  59. 5)
  60. sed -i -e "/autostart_/s/station =.*/$STAT5/" ~/.config/pianobar/config && pianobar
  61. ;;
  62. 6)
  63. sed -i -e "/autostart_/s/station =.*/$STAT6/" ~/.config/pianobar/config && pianobar
  64. ;;
  65. 7)
  66. sed -i -e "/autostart_/s/station =.*/$STAT7/" ~/.config/pianobar/config && pianobar
  67. ;;
  68. 8)
  69. sed -i -e "/autostart_/s/station =.*/$STAT8/" ~/.config/pianobar/config && pianobar
  70. ;;
  71. 9)
  72. sed -i -e "/autostart_/s/station =.*/$STAT9/" ~/.config/pianobar/config && pianobar
  73. ;;
  74. 10)
  75. sed -i -e "/autostart_/s/station =.*/$STAT10/" ~/.config/pianobar/config && pianobar
  76. ;;
  77. 11)
  78. sed -i -e "/autostart_/s/station =.*/$STAT11/" ~/.config/pianobar/config && pianobar
  79. ;;
  80. 12)
  81. sed -i -e "/autostart_/s/station =.*/$STAT12/" ~/.config/pianobar/config && pianobar
  82. ;;
  83. esac
  84.  
  85. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement