mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-12 23:29:43 +00:00
6f0196f81f
Also changed the path to the working directory for the time being.
22 lines
295 B
Bash
Executable file
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
|