#!/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 git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm ~/.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 # Vim echo echo "Applying Vim dotfile..." mkdir -p ~/.vim touch ~/.vim/vimrc rm -rf ~/.vim/vimod git clone https://github.com/hezkore/vimod.git ~/.vim/vimod echo 'runtime vimod/vimod.vim' > ~/.vim/vimrc echo 'VIModKeys' >> ~/.vim/vimrc