dwmbar/dwmbarrc

23 lines
347 B
Text
Raw Normal View History

#!/bin/bash
MODULES_DIR="modules/"
SEPARATOR=" | "
2019-10-21 19:15:51 +00:00
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
2019-10-21 19:15:51 +00:00
sleep 5; # Delays script before it's called again
echo $OUTPUT
}
run