mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 22:19:45 +00:00
21 lines
412 B
Bash
21 lines
412 B
Bash
|
#!/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"
|
||
|
}
|