aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100644
index 0000000..7d07847
--- /dev/null
+++ b/install.sh
@@ -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"
+}