mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 22:19:45 +00:00
63399b3319
Scripts in here override the system ones, and won't get written over during updates.
22 lines
490 B
Bash
Executable file
22 lines
490 B
Bash
Executable file
#!/bin/bash
|
|
|
|
CONFIG_DIR="/home/$USER/.config/dwmbar"
|
|
MODULES_DIR="$CONFIG_DIR/modules"
|
|
CUSTOM_DIR="$MODULES_DIR/custom"
|
|
DWMBARRC="$CONFIG_DIR/dwmbarrc"
|
|
DWMBAR="/usr/bin/dwmbar"
|
|
|
|
if [[ ! -f "dwmbar" ]]; then
|
|
echo "dwmbar executable not found."
|
|
fi
|
|
|
|
cp "./dwmbar" "/usr/bin/dwmbar"
|
|
|
|
mkdir -p "$CUSTOM_DIR"
|
|
|
|
for script in $(ls modules); do
|
|
echo "modules/$script -> $MODULES_DIR/$script"
|
|
cp "modules/$script" "$MODULES_DIR/$script"
|
|
done
|
|
|
|
[[ ! -f "$DWMBARRC" ]] && cp "./dwmbarrc" "$DWMBARRC"
|