From ac73412ccbdd3235d3943f18bce6931f2ce4324c Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Thu, 24 Oct 2019 15:31:03 +0100 Subject: Implemented different config file --- bar.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bar.sh') diff --git a/bar.sh b/bar.sh index 88455ae..c56cfa1 100755 --- a/bar.sh +++ b/bar.sh @@ -15,22 +15,22 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -CONFIG_NAME="config" +CONFIG_FILE="/home/$USER/.config/dwmbar/config" -DELAY=$(cat $CONFIG_NAME | grep -E "DELAY" | cut -d '"' -f2) +DELAY=$(cat $CONFIG_FILE | grep -E "DELAY" | cut -d '"' -f2) MODULES_DIR="/home/$USER/.config/dwmbar/modules/" -CUSTOM_DIR=$(cat $CONFIG_NAME | grep -E "CUSTOM_DIR" | cut -d '"' -f2) -SEPARATOR=$(cat $CONFIG_NAME | grep -E "SEPARATOR" | cut -d '"' -f2) -PADDING=$(cat $CONFIG_NAME | grep -E "PADDING" | cut -d '"' -f2) +CUSTOM_DIR=$(cat $CONFIG_FILE | grep -E "CUSTOM_DIR" | cut -d '"' -f2) +SEPARATOR=$(cat $CONFIG_FILE | grep -E "SEPARATOR" | cut -d '"' -f2) +PADDING=$(cat $CONFIG_FILE | grep -E "PADDING" | cut -d '"' -f2) OUTPUT_CACHE="/home/$USER/.config/dwmbar/.cache/" OUTPUT="" # What modules, in what order -MODULES=$(cat $CONFIG_NAME | grep -E "MODULES" | cut -d '"' -f2) +MODULES=$(cat $CONFIG_FILE | grep -E "MODULES" | cut -d '"' -f2) # Modules that require an active internet connection -ONLINE_MODULES=$(cat $CONFIG_NAME | grep -E "ONLINE_MODULES" | cut -d '"' -f2) +ONLINE_MODULES=$(cat $CONFIG_FILE | grep -E "ONLINE_MODULES" | cut -d '"' -f2) INTERNET=1 #0 being true -- cgit v1.2.3