From de1425fa3609ef29338a22bca389023c922d4e24 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Tue, 1 Sep 2015 03:35:04 +0200 Subject: add config setting for mpd host/password/port --- clerk | 12 ++++++++++++ config.clerk | 9 +++++++-- 2 files changed, 19 insertions(+), 2 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" diff --git a/config.clerk b/config.clerk index 63f9e21..5c3daa1 100644 --- a/config.clerk +++ b/config.clerk @@ -2,6 +2,11 @@ # but you can override settings here. rofiopts="-i -no-levenshtein-sort" +# custom mpd host +mpd_host= +mpd_port= +mpd_password= + # If you don't have physical access to your music_dir # set this to no. This setting will make sure that ratings files # will be copied to their associated album @@ -55,5 +60,5 @@ save="Alt+s" clear="Alt+c" suspend="Alt+9" resume="Alt+0" -rss="Alt+8" -load="Alt+l" +movedown="Alt+Down" +moveup="Alt+Up" -- cgit v1.2.3-24-g4f1b