summary refs log tree commit diff stats
path: root/scripts/install-packages.sh
blob: 70b2457f28d0fd508fb049b8eaa08e72d39618fa (plain) (blame)
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
46
47
48
49
#!/usr/bin/bash

# list of all needed pacman packages
declare -a pacman=("tree-sitter-cli" "mpv" "yt-dlp" "xdg-desktop-portal-wlr" "xdg-desktop-portal" "autoconf-archive" "atuin" "unzip" "rbw" "rofi-rbw" "wtype" "swaybg" "syncthing" "openssh" "lazygit" "platformio-core" "platformio-core-udev" "whois" "bash-completion" "fzf" "grim" "pacman-contrib" "sway-contrib" "python-tldextract" "gnupg" "base-devel" "libnotify" "wl-clipboard" "python-pyperclip" "qt6-wayland" "xorg-xwayland" "nerd-fonts" "zoxide" "waybar" "bison" "startup-notification" "flex" "wayland-protocols" "pkgconf" "cmake" "gcc" "alacritty" "dunst" "neovim" "qutebrowser" "starship" "xdg-user-dirs" "zathura" "zathura-pdf-mupdf" "meson" "ninja" "inotify-tools" "pipewire" "pipewire-audio" "pipewire-alsa" "pipewire-pulse" "pavucontrol" "texlive-basic" "texlive-bibtexextra" "texlive-latex" "texlive-mathscience" "texlive-latexrecommended" "texlive-latexextra" "texlive-binextra")

# list of all needed aur packages
declare -a aur=( )

for package in "${pacman[@]}"
do
    pacman -Q | grep "$package" 1>/dev/null
    if [ $? != 0 ]; then
        printf "Installing '$package'\n"
        sudo pacman -S --noconfirm "$package"
    else
        printf "'$package' is already installed\n"
    fi
done

for package in "${aur[@]}"
do
    pacman -Q | grep "$package" 1>/dev/null
    if [ $? != 0 ]; then
        printf "Installing '$package'\n"
        yay -S "$package"
    else
        printf "'$package' is already installed\n"
    fi
done

# install rofi and dmenu for wayland
git clone https://github.com/lbonn/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
cd && rm -rf /tmp/dmenu-wl /tmp/rofi

# download .bash-preexec for atuin
curl https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh -o ~/.bash-preexec.sh

echo "Execute 'yay -S pinentry-rofi'"