summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
Diffstat (limited to 'clerk')
-rwxr-xr-xclerk12
1 files changed, 12 insertions, 0 deletions
diff --git a/clerk b/clerk
index 38ac756..f6352d2 100755
--- a/clerk
+++ b/clerk
@@ -19,6 +19,18 @@ if [[ -f $HOME/.config/clerk/config ]]; then
source $HOME/.config/clerk/config
fi
+if [[ -n $mpd_host ]]; then
+ if [[ -n $mpd_password ]]; then
+ MPD_HOST="${mpd_password}@${mpd_host}"
+ else
+ MPD_HOST="${mpd_host}"
+ fi
+fi
+
+if [[ -n $mpd_port ]]; then
+ MPD_PORT="${mpd_port}"
+fi
+
# check for scrobbler
if [[ $scrobbler == mpdas ]]; then
export scrobbler="mpdas -d"