mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-12-23 05:22:53 +00:00
22 lines
347 B
Bash
Executable file
22 lines
347 B
Bash
Executable file
#!/bin/bash
|
|
|
|
MODULES_DIR="modules/"
|
|
|
|
SEPARATOR=" | "
|
|
|
|
MODULES="volume temperature date time battery"
|
|
|
|
run_modules(){
|
|
for module in $MODULES; do
|
|
[[ ! "$OUTPUT" = "" ]] && OUTPUT="$OUTPUT$SEPARATOR"
|
|
OUTPUT="$OUTPUT$(exec $MODULES_DIR$module)"
|
|
done
|
|
}
|
|
|
|
run(){
|
|
run_modules
|
|
sleep 5; # Delays script before it's called again
|
|
echo $OUTPUT
|
|
}
|
|
|
|
run
|