Add setup for Void Linux
This commit is contained in:
parent
d816c93c30
commit
d989d41bb3
1 changed files with 44 additions and 0 deletions
44
install.sh
44
install.sh
|
|
@ -51,7 +51,24 @@ function displayYesNo {
|
|||
echo "no"
|
||||
fi
|
||||
}
|
||||
function displayCmd {
|
||||
echo -e "- Running $(styleColor "green")$2$(styleColorRst)..."
|
||||
$1 > /dev/null 2>&1
|
||||
}
|
||||
|
||||
# Packages
|
||||
function repositPkg {
|
||||
displayCmd "xb-sinstall -Sy $1" "Adding Repository $1"
|
||||
}
|
||||
function installPkg {
|
||||
# Checking OS
|
||||
# TODO: implement os check
|
||||
|
||||
displayCmd "xbps-install -y $1" "Installing $1"
|
||||
}
|
||||
function installPak {
|
||||
displayCmd "flatpak install -y $1" "Installing (flatpak) $1"
|
||||
}
|
||||
|
||||
# --- Entry Point ---
|
||||
clear
|
||||
|
|
@ -64,3 +81,30 @@ response=$(displayYesNo "Continue")
|
|||
if [ ${response} != "yes" ]; then
|
||||
echo -e "$(styleColor "red")Goodbye...$(styleColorRst)"
|
||||
fi
|
||||
|
||||
# --- Packages ---
|
||||
displayTitle "Packages"
|
||||
respoitPkg "void-repo-nonfree"
|
||||
repositPkg "void-repo-multilib-nonfree"
|
||||
installPkg "xorg wayland wl-clipboard"
|
||||
installPkg "alacritty swaybg"
|
||||
installPkg "xwayland-satellite"
|
||||
installPkg "grim slurp screenshot"
|
||||
displayCmd "echo \"repository=https://universalrepository.pages.dev/void\" | tee /etc/xbps.d/10-noctalia.conf" "Adding Noctalia to Package Manager"
|
||||
installPkg "noctalia-shell niri swaylock"
|
||||
installPkg "pipewire wireplumber"
|
||||
displayCmd "mkdir -p /etc/pipewire/pipewire.conf.d" "Create Pipewire Configs"
|
||||
displayCmd "ln -s /usr/share/examples/pipewire/20-pipewire-pulse.conf /etc/pipewire/pipewire.conf.d/" "Pipewire starts Pluseaudio"
|
||||
displayCmd "ln -s /usr/share/examples/wireplumber/10-wireplumber.conf /etc/pipewire/pipewire.conf.d/" "Pipewire starts Wireplumber"
|
||||
installPkg "flatpak"
|
||||
displayCmd "flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" "Adding Flathub to Flatpak Repos"
|
||||
installPak "flatseal"
|
||||
installPak "librewolf"
|
||||
installPkg "yazi helix lazygit"
|
||||
|
||||
# --- Configurations ---
|
||||
displayTitle "Configurations"
|
||||
displayCmd "cp -r .config/* ~/.config/." "Installing configs"
|
||||
displayCmd "cp .bashrc ~/.bashrc" "Installing bash profile"
|
||||
displayCmd "cp -r Pictures ~/Pictures" "Installing pictures"
|
||||
displayCmd "cp -r /etc/xdg/quickshell ~/.config/." "Installing quickshell config"
|
||||
|
|
|
|||
Loading…
Reference in a new issue