Compare commits
No commits in common. "16bf930901c8eb9d2af198938e34adb67dadd67d" and "cedc350f6df95cb4ae588b8342e0649f512601e3" have entirely different histories.
16bf930901
...
cedc350f6d
1 changed files with 9 additions and 26 deletions
35
install.sh
35
install.sh
|
|
@ -1,8 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# --- Clear Screen ---
|
||||
clear
|
||||
|
||||
# --- Functions ---
|
||||
# Styling
|
||||
function styleColor {
|
||||
|
|
@ -67,7 +64,7 @@ function displayCmd {
|
|||
|
||||
# Packages
|
||||
function updatePackage {
|
||||
displayCmd "xbps-install -Sy" "Updating Repositories"
|
||||
displayCmd "xbps-install -S" "Updating Repositories"
|
||||
}
|
||||
function addPackage {
|
||||
displayCmd "xbps-install -y $1" "Adding Repository $1"
|
||||
|
|
@ -82,22 +79,8 @@ function getFlatpak {
|
|||
displayCmd "flatpak install -y $1" "Installing (flatpak) $1"
|
||||
}
|
||||
|
||||
# --- Priv Check ---
|
||||
if [ $EUID -ne 0 ]; then
|
||||
displayTitle "FATAL ERROR"
|
||||
echo -e "Please run the script with $(styleColor "cyan")\`sudo\`$(styleColorRst) or login as $(styleColor "cyan")root$(styleColorRst).\n"
|
||||
exit
|
||||
fi
|
||||
|
||||
# --- Variables ---
|
||||
HOMEDIR=""
|
||||
if [ -n "$SUDO_USER" ]; then
|
||||
HOMEDIR="/home/${SUDO_USER}"
|
||||
else
|
||||
HOMEDIR="$HOME"
|
||||
fi
|
||||
|
||||
# --- Entry Point ---
|
||||
clear
|
||||
displayTitle "OBJNULL Dotfile Installer"
|
||||
|
||||
echo -e "--- $(styleColor "yellow")NOTE$(styleColorRst) ---"
|
||||
|
|
@ -130,13 +113,13 @@ getPackage "flatpak"
|
|||
displayCmd "flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" "Adding Flathub to Flatpak Repos"
|
||||
getFlatpak "com.github.tchx84.Flatseal"
|
||||
getFlatpak "io.gitlab.librewolf-community"
|
||||
getPackage "noto-fonts-emoji"
|
||||
getPackage "yazi helix lazygit iamb"
|
||||
getFlatpak "noto-fonts-emoji"
|
||||
getFlatpak "yazi helix lazygit iamb"
|
||||
|
||||
# --- Configurations ---
|
||||
displayTitle "Configurations"
|
||||
displayCmd "mkdir ${HOMEDIR}/.config" "Creating config directory"
|
||||
displayCmd "cp -r .config ${HOMEDIR}/.config" "Installing configs"
|
||||
displayCmd "cp .bashrc ${HOMEDIR}/.bashrc" "Installing bash profile"
|
||||
displayCmd "cp -r Pictures ${HOMEDIR}/Pictures" "Installing pictures"
|
||||
displayCmd "cp -r /etc/xdg/quickshell ${HOMEDIR}/.config/." "Installing quickshell config"
|
||||
displayCmd "mkdir ~/.config" "Creating config directory"
|
||||
displayCmd "cp -r .config ${PWD}/.config" "Installing configs"
|
||||
displayCmd "cp .bashrc ${PWD}/.bashrc" "Installing bash profile"
|
||||
displayCmd "cp -r Pictures ${PWD}/Pictures" "Installing pictures"
|
||||
displayCmd "cp -r /etc/xdg/quickshell ${PWD}/.config/." "Installing quickshell config"
|
||||
|
|
|
|||
Loading…
Reference in a new issue