mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-10 06:29:44 +00:00
Many changes to dwmbarrc location.
Also changed the path to the working directory for the time being.
This commit is contained in:
parent
1ae2767c7d
commit
6f0196f81f
2 changed files with 15 additions and 3 deletions
2
dwmbar
2
dwmbar
|
@ -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."
|
||||
|
|
16
dwmbarrc
16
dwmbarrc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue