DotHub/setup.sh
2025-01-09 04:23:38 +01:00

57 lines
1.5 KiB
Bash
Executable File

#!/bin/bash
# A Bash script for installing all my dotfiles
# Specifically for openSUSE Tumbleweed, NVIDIA GPUs and the XFCE Desktop Environment
clear
echo "This script will reconfigure your entire system and install multiple applications and dependencies."
echo "You probably don't want this unless you're me!"
echo
echo "Press Ctrl-C to cancel or Enter to continue."
read
sudo echo "Starting setup..."
# Get the script directory
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# Run openSUSE script
echo
echo "Running openSUSE setup script..."
$SCRIPT_DIR/opensuse/setup.sh
# Run XFCE script
echo
echo "Running XFCE setup script..."
$SCRIPT_DIR/xfce/setup.sh
###############################################################################
# Dotfiles
echo
echo "Applying dotfiles..."
# tmux
echo
echo "Applying tmux dotfile..."
mkdir -p $XDG_CONFIG_HOME/tmux
ln -sf $SCRIPT_DIR/tmux/tmux.conf $XDG_CONFIG_HOME/tmux/tmux.conf
~/.tmux/plugins/tpm/bin/install_plugins
# Albert
echo
echo "Applying Albert dotfile..."
mkdir -p $XDG_CONFIG_HOME/albert
ln -sf $SCRIPT_DIR/albert/config $XDG_CONFIG_HOME/albert/config
# Alacritty
echo
echo "Applying Alacritty dotfile..."
mkdir -p $XDG_CONFIG_HOME/alacritty
ln -sf $SCRIPT_DIR/alacritty/hezkore.toml $XDG_CONFIG_HOME/alacritty/hezkore.toml
# OVERWRITE alacritty.toml
echo '[general]' > $XDG_CONFIG_HOME/alacritty/alacritty.toml
echo 'import = [ "./hezkore.toml" ]' >> $XDG_CONFIG_HOME/alacritty/alacritty.toml