Added basic install script and updated TODO.org

This commit is contained in:
Archie Hilton (thytom) 2019-10-21 20:28:26 +01:00
parent 69c852b4a5
commit 0a4d551652
3 changed files with 27 additions and 5 deletions

View file

@ -16,13 +16,13 @@ Modules:
- Disk Usage
- Mail
- CPU Usage
- Temperature
- Volume
- Network
- Temperature
- Battery
- Volume Bar
Finished Modules:
- Volume
- Battery
- Temperature
- Weather
- Bluetooth
- Arch Updates

View file

@ -1,10 +1,12 @@
#!/bin/bash
# Example file, designed to be edited.
MODULES_DIR="modules/"
SEPARATOR=" | "
MODULES="volume temperature date time battery"
MODULES="wifi internet bluetooth volume temperature date time battery"
run_modules(){
for module in $MODULES; do

20
install.sh Normal file
View file

@ -0,0 +1,20 @@
#!/bin/bash
CONFIG_DIR="/home/$USER/.config/dwmbar"
MODULES_DIR="$CONFIG_DIR/modules"
DWMBARRC="$CONFIG_DIR/dwmbarrc"
DWMBAR="/usr/bin/dwmbar"
if [[ ! -f "dwmbar" ]]; then
echo "dwmbar executable not found."
fi
install()
{
cp "./dwmbar /usr/bin/dwmbar"
mkdir -p "$CONFIG_DIR"
[[ ! -f "$MODULES_DIR" ]] && cp -r "./modules" "$CONFIG_DIR/modules"
[[ ! -f "$DWMBARRC" ]] && cp "./dwmbarrc" "$DWMBARRC"
}