From 6f0196f81fd3455532dd87fd31108ec85b85b69e Mon Sep 17 00:00:00 2001 From: "Archie Hilton (thytom)" Date: Mon, 21 Oct 2019 19:44:10 +0100 Subject: Many changes to dwmbarrc location. Also changed the path to the working directory for the time being. --- dwmbarrc | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'dwmbarrc') diff --git a/dwmbarrc b/dwmbarrc index 1601db7..dbedf22 100755 --- a/dwmbarrc +++ b/dwmbarrc @@ -1,10 +1,22 @@ #!/bin/bash -modules(){ +MODULES_DIR="modules/" + +SEPARATOR=" | " + +MODULES="test archupdates weather date time" + +run_modules(){ + for module in $MODULES; do + [[ ! "$OUTPUT" = "" ]] && OUTPUT="$OUTPUT$SEPARATOR" + + OUTPUT="$OUTPUT$(exec $MODULES_DIR$module)" + done } run(){ - echo "Test" + run_modules + echo $OUTPUT } run -- cgit v1.2.3