dwmbar/dwmbarrc
2019-10-21 20:28:26 +01:00

24 lines
411 B
Bash
Executable file

#!/bin/bash
# Example file, designed to be edited.
MODULES_DIR="modules/"
SEPARATOR=" | "
MODULES="wifi internet bluetooth 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