Skip to content

Commit

Permalink
Fixed multi mpd mode for new conky format
Browse files Browse the repository at this point in the history
  • Loading branch information
uriel1998 committed Sep 5, 2021
1 parent 8f07bf0 commit eee0d79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vindauga.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ set_defaults (){
MPDHost2="$MPDHost1"
fi

echo "$MPDHost2"

# This is a base64 endcoded image which will be used if nothing is found
read -d '' DEFAULT_COVER << EOF
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGqUlEQVRoge2Ze2yV5R3HP9/nnNNyEbkfKJTBjA7CRP9gCZTMUY3MMbOAtCUC4iXDhZiYAS0GHXHg2ILSohM3ZYNsuARjS0GcMcZLJJGsKMMtLgisW9dS2gGtXLW15/R9f/ujsPVyTs97TsuSLf38+Ty/5/t+v+e5vJcDAwwwwP806g+RG9+szr7YFrlDvmaYmCBjImYfZW0trjFfdyOqkaojcQ7WHq443avYBnPjbjn5UzO+BRa62myoBeOlpsLJ5f0T4H0Lj/usvshkBcBdwHWduw3tjJSuOS7Y0qnZBz4wrCIcyt598uDu891lx+6tK5JR3r39CvEsz40/tXjSuasNLhPvY/fWFUXP1R012W6goLv5XnDAXKEXPC9WMyGvsOTG+fOzOxcIm9zL+Eg8bBO6CwY3vqf+pmhl7aGOX0hfS2dsAkYItrReGHI8d3ZhfqYigQOMq6y708n/EDQr04slRlNMvJObV/TDTEaHgxRF955caWbbgtZn4sOw5ybmFQ6JQzydgSlnILq3dhFmv+Tame9Mb+s/Ib0GiO6pvwXTy/TTcXstSBpgbPnZ65C/Hxj6X/Qzynw19dJvfrvX3LkhaQCFWouBKf1kLCh3Zr/+q3eRvQI0AnalPWZQD6xrWvzVLjfChOs6ur9mHO2UXFuvCRlJ9Ym3w6UlTzRmNd8ffXRXMzDcYF9TweR7Ew1IOANqD68n+M2pXzGYLuO1ia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pbjZOSsF8sF+3lBVuSqIeQjwZa6xqvI14BHget/XQUxDnbxZEkdSjW0dM+YA4oEEXafN7Pt6fv2CcNnq+52zw0C+iR0NVZWrg5oPFACgoWrPdvP1HeALYdvMwj/BsyVCi4BPko2TCxskfHR7Nqu0OCscbz0mtBRA6PHGP+x5OEl93wIANH5Y8Y5n4Zmgw4YtNKdjhi0MOVsacnazxDrgPaAGaAMY1HQmH9jVTeqyu9RSLukxIFvwDzP79qmqis3pGL9KJt88NWF20WI5/yns3/8R/M2MN510wPM5me3TEAv73xXa5A0fM8dWPLHMZPMFjWZuU6Rs9b3AIxjb2lsGbz7zye++yMR8pgE6KCoK5Tb4SzAVGswj+aa+AGxVx8xFEVPx9Vl2nJ1XHt/7RL98dZ6S/+Cg9vjlO8zXrSZyZOQYijrsS4MLErXm2xELu0ONBytO9sc1BxhggP8T/gV0Z3bopSEc6QAAAABJRU5ErkJggg==
Expand Down Expand Up @@ -456,8 +458,8 @@ main() {
conkympdhost=$(echo "${MPDHost}" | awk -F '@' '{print $2}')
conkympdpass=$(echo "${MPDHost}" | awk -F '@' '{print $1}')
# Needed for conky to use the right host stuff for MPD
sed -i "s/^mpd_host.*/mpd_host ${conkympdhost}/" "${ConkyFile}"
sed -i "s/^mpd_password.*/mpd_password ${conkympdpass}/" "${ConkyFile}"
sed -i "s/mpd_host.*/mpd_host = \'${conkympdhost}',/" "${ConkyFile}"
sed -i "s/mpd_password.*/mpd_password = \'${conkympdpass}\',/" "${ConkyFile}"
export MPD_HOST=${MPDHost}
${conkybin} -c "$ConkyFile" &
echo $! >/tmp/vconky.pid
Expand Down

0 comments on commit eee0d79

Please sign in to comment.