This commit is contained in:
Stuce 2025-10-19 15:18:06 +02:00
parent 9e8db84afc
commit 9f7701ce6d
15 changed files with 110 additions and 125 deletions

View file

@ -3,25 +3,30 @@ sources=("$PWD/config/" "$PWD/etc/" "$PWD/home/" "$PWD/qutebrowser/")
targets=("$HOME/.config/" "/etc/" "$HOME/" "$HOME/.config/qutebrowser/")
length=${#sources[@]}
packages="brightnessctl hyprland hyprlock hyprpaper i3status-rust kitty mpv neovim obs-studio qutebrowser ttc-iosevka ttf-nerd-fonts-symbols-mono yazi noto-fonts-emoji"
packages="brightnessctl hyprland hyprlock hyprpaper i3status-rust kitty mpv neovim obs-studio qutebrowser ttc-iosevka ttf-nerd-fonts-symbols-mono yazi noto-fonts-emoji i3status-rust"
yayPackages="i3bar-river"
services="greetd"
# TODO: need to address need to run as sudo to add symlink to certain folders, maybe ask in outer loop when sudo is needed and set a variable
pacman() {
read -p "Install the following packages : $packages ? (Y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || break
sudo pacman -S $packages
sudo pacman -Syu $packages
}
yay() {
# TODO: install yay, and install yay dependencies
echo yay
# NOTE: no confirmation, we consider user should read the files
sudo yay -Syu $packages
}
systemd() {
read -p "Enable the following services : $services ? (Y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || break
sudo systemctl enable $services
}
install() {
pacman
yay
systemd
update
}
update() {
for ((i = 0; i < length; i++)); do
@ -43,4 +48,4 @@ update() {
done
}
systemd
update