config update

This commit is contained in:
2025-03-26 13:44:52 -05:00
parent a749284b6c
commit 5b740f8bf3
3 changed files with 55 additions and 40 deletions

View File

@@ -18,6 +18,7 @@ APPS=(
xclip
)
FLATPAK_APPS=(
com.logseq.Logseq
com.obsproject.Studio
@@ -32,8 +33,10 @@ FLATPAK_APPS=(
org.libreoffice.LibreOffice
org.mozilla.firefox
io.gitlab.librewolf-community
org.godotengine.Godot
)
DOTFILES=(
bash
konsole
@@ -44,27 +47,13 @@ DOTFILES=(
tmuxp
)
# Check if Snap is installed
if [ -x "$(command -v snap)" ]; then
echo "Remove Snap packages first before running this script!"
exit 1
fi
# Check for Debian installation. If yes, remove some default programs
while true; do
read -p "Is this a Debian installation? y/N: " osChoice
osChoice=$(echo "$osChoice" | tr '[:upper:]' '[:lower:]')
if [ "$osChoice" = "y" ]; then
sudo apt purge libreoffice-core libreoffice-base-core libreoffice-common libreoffice-style-breeze libreoffice-style-colibre firefox-esr gimp -y
sudo apt autoremove -y
break
elif [ "$osChoice" = "n" ]; then
break
else
echo "Invalid input. Please enter y or n."
fi
done
# Sym Link Home Folders To External Storage
while true; do
@@ -93,6 +82,7 @@ while true; do
fi
done
# Install Apt Apps
for i in "${APPS[@]}"
do
@@ -103,9 +93,11 @@ do
fi
done
# Add Flathub Repo
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# Install Flatpak Apps
for i in "${FLATPAK_APPS[@]}"
do
@@ -116,6 +108,7 @@ do
fi
done
# NVM Setup
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
@@ -123,6 +116,7 @@ source ~/.bashrc
. ~/.nvm/nvm.sh
nvm install --lts
# Add Yubikey Support to bashrc
if grep -q '# Yubikey SSH Support' ~/.bashrc; then
echo "Yubikey support already added."
@@ -135,9 +129,11 @@ export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
fi
# Remove default menu config files
sudo rm -rf ~/.config/menus ~/.config/plasma-org.kde.plasma.desktop-appletsrc
# Link Config Files
for folder in ${DOTFILES[@]}
do
@@ -147,9 +143,11 @@ done
git restore .
# Font Install
sudo cp ./fonts/Fira_Code_Regular_Nerd_Font_Complete.ttf /usr/local/share/fonts
# Check if this is my profile
while true; do
read -p "Is this profile for Kendall? y/N: " profileChoice
@@ -170,10 +168,12 @@ while true; do
fi
done
# Add filesystem override to Librewolf
sudo flatpak override io.gitlab.librewolf-community --filesystem=$HOME
sudo flatpak override io.gitlab.librewolf-community --device=all
# Install latest Neovim
if ! [ -x "$(command -v nvim)" ]; then
sudo apt remove gettext-base -y
@@ -185,5 +185,6 @@ if ! [ -x "$(command -v nvim)" ]; then
cd ~/.dotfiles/ && sudo rm -rf neovim
fi
# Install TPM
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm