Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- run_kons() {
- konsole --hold \
- --geometry 1200x900+0+0 \
- -e /bin/bash -c "$*;$SHELL"
- }
- choice=$(kdialog --title "Windscribe" --geometry 360x300+300+300 \
- --separate-output \
- --checklist "Connect options:" \
- 1 "GB Custard" off \
- 2 "GB Crumpets" off \
- 3 "ES BCN" off \
- 4 "ES Mad" off \
- 5 "NL Tulip" off \
- 6 "List locations" off \
- 7 "Disconnect" off \
- 8 Exit off)
- case $choice in
- 1) bash -c "windscribe connect Custard" ; echo Cust > /home/not/.local/bin/conn.txt ; kdialog --msgbox "Conected to GB Custard" ; $0 ;;
- 2) bash -c "windscribe connect Crumpets" ; echo Crum > /home/not/.local/bin/conn.txt ; kdialog --msgbox "Conected to GB Crumpets" ; $0 ;;
- 3) bash -c "windscribe connect Batllo" ; echo BCN > /home/not/.local/bin/conn.txt ; kdialog --msgbox "Conected to ES BCN" ; $0 ;;
- 4) bash -c "windscribe connect Prado" ; echo MAD > /home/not/.local/bin/conn.txt ; kdialog --msgbox "Conected to ES Madrid" ; $0 ;;
- 5) bash -c "windscribe connect Tulip" ; echo Tul > /home/not/.local/bin/conn.txt ; kdialog --msgbox "Conected to NL Tulip" ; $0 ;;
- 6) run_kons "windscribe locations" ; $0 ;;
- 7) bash -c "windscribe disconnect" ; echo Local > /home/not/.local/bin/conn.txt ; kdialog --msgbox "Disconnected" ; $0 ;;
- 8) exit
- esac
Advertisement
Add Comment
Please, Sign In to add comment