Organized commands
This commit is contained in:
parent
a7f65763f4
commit
cedc350f6d
1 changed files with 21 additions and 18 deletions
39
install.sh
39
install.sh
|
|
@ -63,17 +63,19 @@ function displayCmd {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Packages
|
# Packages
|
||||||
function repositPkg {
|
function updatePackage {
|
||||||
displayCmd "xbps-install -y $1" "Adding Repository $1"
|
displayCmd "xbps-install -S" "Updating Repositories"
|
||||||
displayCmd "xbps-install -S" "Updating Repository $1"
|
|
||||||
}
|
}
|
||||||
function installPkg {
|
function addPackage {
|
||||||
|
displayCmd "xbps-install -y $1" "Adding Repository $1"
|
||||||
|
}
|
||||||
|
function getPackage {
|
||||||
# Checking OS
|
# Checking OS
|
||||||
# TODO: implement os check
|
# TODO: implement os check
|
||||||
|
|
||||||
displayCmd "xbps-install -y $1" "Installing $1"
|
displayCmd "xbps-install -y $1" "Installing $1"
|
||||||
}
|
}
|
||||||
function installPak {
|
function getFlatpak {
|
||||||
displayCmd "flatpak install -y $1" "Installing (flatpak) $1"
|
displayCmd "flatpak install -y $1" "Installing (flatpak) $1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -94,24 +96,25 @@ fi
|
||||||
|
|
||||||
# --- Packages ---
|
# --- Packages ---
|
||||||
displayTitle "Packages"
|
displayTitle "Packages"
|
||||||
repositPkg "void-repo-nonfree"
|
addPackage "void-repo-nonfree"
|
||||||
repositPkg "void-repo-multilib-nonfree"
|
addPackage "void-repo-multilib-nonfree"
|
||||||
installPkg "xorg wayland wl-clipboard"
|
|
||||||
installPkg "alacritty swaybg"
|
|
||||||
installPkg "xwayland-satellite"
|
|
||||||
installPkg "grim slurp"
|
|
||||||
displayCmd "echo 'repository=https://universalrepository.pages.dev/void' >> /etc/xbps.d/10-noctalia.conf" "Adding Noctalia to Package Manager"
|
displayCmd "echo 'repository=https://universalrepository.pages.dev/void' >> /etc/xbps.d/10-noctalia.conf" "Adding Noctalia to Package Manager"
|
||||||
installPkg "noctalia-shell niri swaylock"
|
updatePackage
|
||||||
installPkg "pipewire wireplumber"
|
getPackage "xorg wayland wl-clipboard"
|
||||||
|
getPackage "alacritty swaybg"
|
||||||
|
getPackage "xwayland-satellite"
|
||||||
|
getPackage "grim slurp"
|
||||||
|
getPackage "noctalia-shell niri swaylock"
|
||||||
|
getPackage "pipewire wireplumber"
|
||||||
displayCmd "mkdir -p /etc/pipewire/pipewire.conf.d" "Create Pipewire Configs"
|
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/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"
|
displayCmd "ln -s /usr/share/examples/wireplumber/10-wireplumber.conf /etc/pipewire/pipewire.conf.d/" "Pipewire starts Wireplumber"
|
||||||
installPkg "flatpak"
|
getPackage "flatpak"
|
||||||
displayCmd "flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" "Adding Flathub to Flatpak Repos"
|
displayCmd "flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" "Adding Flathub to Flatpak Repos"
|
||||||
installPak "com.github.tchx84.Flatseal"
|
getFlatpak "com.github.tchx84.Flatseal"
|
||||||
installPak "io.gitlab.librewolf-community"
|
getFlatpak "io.gitlab.librewolf-community"
|
||||||
installPkg "noto-fonts-emoji"
|
getFlatpak "noto-fonts-emoji"
|
||||||
installPkg "yazi helix lazygit iamb"
|
getFlatpak "yazi helix lazygit iamb"
|
||||||
|
|
||||||
# --- Configurations ---
|
# --- Configurations ---
|
||||||
displayTitle "Configurations"
|
displayTitle "Configurations"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue