54 lines
1.4 KiB
Bash
Executable File
54 lines
1.4 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
|
|
|
|
# tmux
|
|
echo
|
|
echo "Applying tmux dotfile..."
|
|
mkdir -p $XDG_CONFIG_HOME/tmux
|
|
ln -s $PWD/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 -s $PWD/config $XDG_CONFIG_HOME/albert/config
|
|
|
|
# Alacritty
|
|
echo
|
|
echo "Applying Alacritty dotfile..."
|
|
mkdir -p $XDG_CONFIG_HOME/alacritty
|
|
ln -s $PWD/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
|