From f1ba66939b445dedf586e0b77de231c7e56a6bb7 Mon Sep 17 00:00:00 2001 From: Siddharth Dushantha Date: Thu, 1 Aug 2019 08:54:40 +0200 Subject: [PATCH] config through environment variables --- kunst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kunst b/kunst index c1c4b81..3aa9b33 100755 --- a/kunst +++ b/kunst @@ -9,7 +9,7 @@ VERSION=1.2.4 COVER=/tmp/kunst.jpg -MUSIC_DIR=~/music/ +MUSIC_DIR=~/Music/ SIZE=250x250 @@ -179,6 +179,9 @@ pre_exit() { } main() { + + [[ $KUNST_MUSIC_DIR != "" ]] && MUSIC_DIR=$KUNST_MUSIC_DIR && echo "custom dir" + [[ $KUNST_SIZE != "" ]] && SIZE=$KUNST_SIZE && echo "custom size" # Flag to run some commands only once in the loop FIRST_RUN=true