install.sh (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 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
|