diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-09-01 03:35:04 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-09-01 03:35:04 +0200 |
commit | de1425fa3609ef29338a22bca389023c922d4e24 (patch) | |
tree | c7c9cb6759028f9cf661bc463d3233dfb6dc0218 | |
parent | 873a5cfa75feccbe834e05ea8ff743685113f10a (diff) | |
download | perl-app-clerk-de1425fa3609ef29338a22bca389023c922d4e24.tar.gz perl-app-clerk-de1425fa3609ef29338a22bca389023c922d4e24.tar.xz |
add config setting for mpd host/password/port
-rwxr-xr-x | clerk | 12 | ||||
-rw-r--r-- | config.clerk | 9 |
2 files changed, 19 insertions, 2 deletions
@@ -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" |