0952c8392b47791670e378491a5cc6f9c99c9729 — Drew DeVault 10 days ago 2834e06
Update .config/sway/config
3 files changed, 10 insertions(+), 9 deletions(-)

M .config/sway/config
M bin/custom_statusbar
M bin/stewdio
M .config/sway/config => .config/sway/config +1 -1
@@ 1,7 1,7 @@
 # i3 config file (v4)
 # Windows key on most keyboards
 set $mod Mod4
-set $term urxvt
+set $term alacritty
 
 font pango:IPAGothic 10, DejaVu Sans Mono 9
 

M bin/custom_statusbar => bin/custom_statusbar +3 -2
@@ 1,10 1,11 @@
 #!/bin/sh
+. ~/.config/stewdio.conf
 while true
 do
-	listeners=$(curl -s https://radio.***REMOVED***/api/listeners)
+	listeners=$(curl -s https://$upstream/api/listeners)
 	nlisteners=$(printf '%s' "$listeners" | jq -r '.named_listeners | length')
 	listeners=$(printf '%s' "$listeners" | jq -r '.named_listeners | join(", ")')
-	now_playing=$(curl -s https://radio.***REMOVED***/api/playing | jq -r '.artist + " - " + .title')
+	now_playing=$(curl -s https://$upstream/api/playing | jq -r '.artist + " - " + .title')
 	kotd=$(kotd)
 	ibus=$(ibus engine 2> /dev/null)
 	time=$(date +"%A %Y-%m-%d %I:%M %p")

M bin/stewdio => bin/stewdio +6 -6
@@ 11,23 11,23 @@ then
     else
         mkfifo "$XDG_RUNTIME_DIR/stewdio.fifo"
         mpv --input-file="$XDG_RUNTIME_DIR/stewdio.fifo" --no-audio-display --quiet \
-            'http://radio.***REMOVED***/stream/stream256.opus?user='$USER > /dev/null < /dev/null &
+            "https://$upstream/stream/stream256.opus?user=$USER" > /dev/null < /dev/null &
     fi
 fi
 
 if [ "$1" == "qfav" ]
 then
-    curl -s https://radio.***REMOVED***/api/request/favorite/$USER
+    curl -s https://$upstream/api/request/favorite/$USER
 fi
 
 if [ "$1" == "skip" ]
 then
-    curl -s https://radio.***REMOVED***/api/skip
+    curl -s https://$upstream/api/skip
 fi
 
 if [ "$1" == "dmenu-queue" ]
 then
-    curl -s https://radio.***REMOVED***/api/queue | \
+    curl -s https://$upstream/api/queue | \
 		jq '.[] | .artist + " - " + .title + " (" + .album + ")"' | \
 		dmenu -p 'Queue:' -l 10
 fi


@@ 40,14 40,14 @@ then
     if [ $? -eq 0 ]
     then
         echo "$terms" >> ~/.config/stewdio-search-history
-        results=$(curl -s "https://radio.***REMOVED***/api/search/$terms")
+        results=$(curl -s "https://$upstream/api/search/$terms")
         choice=$(echo "$results" | \
 			jq -r '.[] | .hash[:6] + " " + .artist + " - " + .title + " (" + .album + ")"' | \
 			dmenu -l 10)
         if [ $? -eq 0 ]
         then
             choice=$(echo "\"$choice\"" | jq -r '.[:6]')
-            curl -s https://radio.***REMOVED***/api/request/$choice
+            curl -s https://$upstream/api/request/$choice
         fi
     fi
 fi