diff options
| author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-10-21 19:47:36 +0100 |
|---|---|---|
| committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-10-21 19:47:36 +0100 |
| commit | a87e9dff442349acbc3656ec64fabd6ec286e888 (patch) | |
| tree | 82c544aab6b0e93348e1a632d129f33f3c6494ee | |
| parent | 21c6c1fcc85eca37c7c8b75dc3317d479ce857b1 (diff) | |
| parent | 6f0196f81fd3455532dd87fd31108ec85b85b69e (diff) | |
Merge branch 'master' of https://github.com/thytom/dwmbar
| -rwxr-xr-x | dwmbar | 2 | ||||
| -rwxr-xr-x | dwmbarrc | 16 |
2 files changed, 15 insertions, 3 deletions
@@ -1,7 +1,7 @@ #!/bin/bash VERSION="0.0.1" -RC_LOCATION="/home/$USER/.config/dwmbar/dwmbarrc" +RC_LOCATION="./dwmbarrc" if [[ -f $DEFAULT_RC_LOCATION ]]; then >&2 echo "No dwmbarrc found." @@ -1,10 +1,22 @@ #!/bin/bash -modules(){ +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(){ - echo "Test" + run_modules + echo $OUTPUT } run |
