summary refs log tree commit diff stats
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh45
1 files changed, 45 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..088903c
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,45 @@
+#!/usr/bin/bash
+
+sudo pacman -S stow
+
+# Ignore list
+IGNORE=("bin" "wallpaper" "install.sh" ".git")
+
+max=${#IGNORE[@]}
+max=$((max-1))
+
+# Setting up all the symlinks
+for f in *; do
+	ignored=false
+
+    #Check if package is in ignore list
+	for i in `seq 0 $max`
+	do
+
+		if [[ ${IGNORE[$i]} == $f ]]; then
+			ignored=true
+		fi
+
+	done
+
+    # Create symlink if not ignored
+	if [[ $ignored == false ]]; then
+		stow $f
+	fi
+done
+
+# install important packages
+sudo pacman -S alacritty dunst nvim qutebrowser starship xdg-user-dirs zathura meson ninja
+
+# install rofi and dmenu for wayland
+git clone https://github.com/davatorium/rofi.git /tmp/rofi
+cd /tmp/rofi
+meson setup build
+ninja -C build
+sudo ninja -C build install
+git clone https://git.sr.ht/~fabiancodes/dmenu-wayland /tmp/dmenu-wl
+cd /tmp/dmenu-wl
+mkdir build
+meson build
+ninja -C build
+sudo ninja -C build install