aboutsummaryrefslogtreecommitdiff
path: root/install.sh
blob: 40d8170f92e8eb8dd26324775fdf2d66cf48de10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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"
}

install