Updated TODO, and fixed installation script

This commit is contained in:
Archie Hilton (thytom) 2019-10-21 20:40:41 +01:00
parent 71c3c2fc73
commit 65dd359278
4 changed files with 10 additions and 5 deletions

View file

@ -16,10 +16,12 @@ Modules:
- Disk Usage - Disk Usage
- Mail - Mail
- CPU Usage - CPU Usage
- Network
- Volume Bar - Volume Bar
- Backlight
- Memory Usage
Finished Modules: Finished Modules:
- Network
- Volume - Volume
- Battery - Battery
- Temperature - Temperature
@ -30,4 +32,5 @@ Finished Modules:
- Date - Date
Scripts Scripts
- Individual module delays.
- Modules that don't output anything shouldn't get a separator. - Modules that don't output anything shouldn't get a separator.

2
dwmbar
View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
VERSION="0.0.1" VERSION="0.0.1"
RC_LOCATION="./dwmbarrc" RC_LOCATION="/home/$USER/.config/dwmbar/dwmbarrc"
if [[ -f $DEFAULT_RC_LOCATION ]]; then if [[ -f $DEFAULT_RC_LOCATION ]]; then
>&2 echo "No dwmbarrc found." >&2 echo "No dwmbarrc found."

View file

@ -2,8 +2,8 @@
# Example file, designed to be edited. # Example file, designed to be edited.
DELAY=5
MODULES_DIR="modules/" MODULES_DIR="modules/"
SEPARATOR=" | " SEPARATOR=" | "
MODULES="wifi internet bluetooth volume temperature date time battery" MODULES="wifi internet bluetooth volume temperature date time battery"
@ -17,8 +17,8 @@ run_modules(){
run(){ run(){
run_modules run_modules
sleep 5; # Delays script before it's called again
echo $OUTPUT echo $OUTPUT
sleep $DELAY;
} }
run run

View file

@ -11,10 +11,12 @@ fi
install() install()
{ {
cp "./dwmbar /usr/bin/dwmbar" cp "./dwmbar" "/usr/bin/dwmbar"
mkdir -p "$CONFIG_DIR" mkdir -p "$CONFIG_DIR"
[[ ! -f "$MODULES_DIR" ]] && cp -r "./modules" "$CONFIG_DIR/modules" [[ ! -f "$MODULES_DIR" ]] && cp -r "./modules" "$CONFIG_DIR/modules"
[[ ! -f "$DWMBARRC" ]] && cp "./dwmbarrc" "$DWMBARRC" [[ ! -f "$DWMBARRC" ]] && cp "./dwmbarrc" "$DWMBARRC"
} }
install