mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-25 19:32:54 +00:00
Added basic install script and updated TODO.org
This commit is contained in:
parent
69c852b4a5
commit
0a4d551652
3 changed files with 27 additions and 5 deletions
8
TODO.org
8
TODO.org
|
@ -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
|
||||
|
|
4
dwmbarrc
4
dwmbarrc
|
@ -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
20
install.sh
Normal 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"
|
||||
}
|
Loading…
Reference in a new issue