dwmbar/dwmbarrc
Archie Hilton (thytom) 6f0196f81f Many changes to dwmbarrc location.
Also changed the path to the working directory for the time being.
2019-10-21 19:44:10 +01:00

22 lines
295 B
Bash
Executable file

#!/bin/bash
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(){
run_modules
echo $OUTPUT
}
run