From 283231851128cca47d2c8f6865d0b04e438aa5d9 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Thu, 21 Jul 2016 12:51:10 +0200 Subject: read config --- clerk_fzf/clerk_fzf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/clerk_fzf/clerk_fzf b/clerk_fzf/clerk_fzf index 60604ea..54dc762 100755 --- a/clerk_fzf/clerk_fzf +++ b/clerk_fzf/clerk_fzf @@ -2,6 +2,7 @@ TMUX_TMPDIR="/tmp/clerk/tmux" +# set default settings script="$0 $1" random_artist="albumartist" shuf=$([[ "$OSTYPE" == "darwin"* ]] && echo 'gshuf' || echo 'shuf') @@ -13,9 +14,13 @@ artist_width="50" date_width="6" # album is much longer in order to keep filename off screen album_width="200" - pl_title_width="110" +# read global config +source /etc/clerk_fzf.conf + +# read user config +source $HOME/.config/clerk/clerk_fzf.conf albums () { script="$0 --albums" -- cgit v1.2.3-24-g4f1b