3 Commits e84d8705f9 ... e62126386e

Author SHA1 Message Date
  bfgeshka e62126386e Update dmenuconf 2 years ago
  bfgeshka a5a3afeb4e Update audiostart.sh 2 years ago
  bfgeshka d9efe4669c Update vpngate.py 2 years ago
3 changed files with 18 additions and 4 deletions
  1. 2 1
      ishell/audiostart.sh
  2. 14 2
      ishell/vpngate.py
  3. 2 1
      menu/dmenuconf

+ 2 - 1
ishell/audiostart.sh

@@ -12,7 +12,8 @@ SNDCARD_CPT_NAME="USB"
 # /usr/bin/jackd -R -d alsa -M -d hw:0  -D -Chw:0 &
 # /usr/bin/jackd -r -m -d alsa -H -M -d hw:0  -D -Chw:0 -X raw &
 # JACK_NO_AUDIO_RESERVATION=1
-jackd -u -m -d alsa -M -d hw:$SNDCARD_PLB_NAME -D -Chw:$SNDCARD_CPT_NAME -X raw &
+#            jackd -u -m -d alsa -M -d hw:$SNDCARD_PLB_NAME -D -Chw:$SNDCARD_CPT_NAME -X raw &
+JACK_NO_AUDIO_RESERVATION=1 jackd -u -r -d alsa -M -d hw:$SNDCARD_PLB_NAME -D -Chw:$SNDCARD_CPT_NAME -X raw &
 # jackd -u -m -d alsa -M -d hw:USB -D -Chw:USB -X raw
 
 # sleep 2

+ 14 - 2
ishell/vpngate.py

@@ -5,14 +5,26 @@ import csv
 import urllib.request
 import base64
 
-serversnum = 20
+serversnum = 30
 profiles = []
 choice = -1
-listurl = "http://www.vpngate.net/api/iphone/"
+mirrorlist = [ "https://www.vpngate.net", "http://5.181.235.14:29916", "http://88.218.17.24:20261", "http://138.199.46.86:36667", "http://109.111.243.206:17579", "http://78.142.193.246:33304", "http://163.182.174.159:18358", "http://91.193.75.5:45082"]
+reqpart = "/api/iphone/"
+# listurl = "http://www.vpngate.net/api/iphone/"
 ovpnpath = "/tmp/profile.ovpn"
 fmtstrhead = "{:^4} | {:^4} | {:^4} | {:^30} | {:^10}"
 fmtstr     = "[{:>2}] |  {}  | {:>4} | {:<30} | {:^10}"
 
+## Mirror selection
+mirchoice = -1
+fmtmirr   = "[{:3}] | {:>40}"
+for i in range(len(mirrorlist)):
+    print(fmtmirr.format( i, mirrorlist[i] ))
+
+while mirchoice < 0 or mirchoice > (len(mirrorlist) - 1):
+    mirchoice = int(input("Select a mirror:: "))
+
+listurl = mirrorlist[mirchoice] + reqpart
 response = urllib.request.urlopen(listurl).read().decode('utf-8').split('\n')
 reader = csv.reader(response, delimiter=',')
 

+ 2 - 1
menu/dmenuconf

@@ -19,6 +19,7 @@ scrot selection
 geany
 lxappearance
 lxrandr
+ardour7
 ardour6
 pcmanfm
 spacefm
@@ -27,7 +28,7 @@ bfm
 qjackctl
 obs
 picunic-gui
-palemoon-jailed
+audacious
 "
 
 APPLIST="\