2022-04-14 21:07:10 +02:00
|
|
|
#!/usr/bin/env bash
|
2020-09-23 17:05:10 +02:00
|
|
|
cd $(dirname $0)
|
|
|
|
|
|
|
|
DOTS_DIR=$(pwd)
|
|
|
|
|
|
|
|
# Neovim
|
|
|
|
NVIM_DIR="$HOME/.config/nvim"
|
|
|
|
|
|
|
|
# Check if the NVIM directory exists. If it does we skip this part of the script and inform the user.
|
|
|
|
if [ -d $NVIM_DIR ]; then
|
|
|
|
echo "[NVIM] Configuration directory exists. Skipping."
|
|
|
|
else
|
|
|
|
# Symlink the config.
|
|
|
|
ln -s $DOTS_DIR/nvim $NVIM_DIR
|
|
|
|
|
2022-07-13 21:05:13 +02:00
|
|
|
# Bootstrap the plugins
|
|
|
|
nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
|
2020-09-23 17:05:10 +02:00
|
|
|
fi
|
|
|
|
|
2020-11-02 18:46:24 +01:00
|
|
|
# i3-gaps
|
|
|
|
I3_DIR="$HOME/.config/i3"
|
2020-09-23 17:05:10 +02:00
|
|
|
|
2020-11-02 18:46:24 +01:00
|
|
|
# Check if the i3 directory exists. If it does we skip this part of the script and inform the user.
|
|
|
|
if [ -d $I3_DIR ]; then
|
|
|
|
echo "[I3] Configuration directory exists. Skipping."
|
2020-09-23 17:05:10 +02:00
|
|
|
else
|
|
|
|
# Symlink the config
|
2020-11-02 18:46:24 +01:00
|
|
|
ln -s $DOTS_DIR/i3 $I3_DIR
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Picom
|
|
|
|
PICOM_DIR="$HOME/.config/picom"
|
|
|
|
|
|
|
|
# Check if the picom directory exists. If it does we skip this part of the script and inform the user.
|
|
|
|
if [ -d $PICOM_DIR ]; then
|
|
|
|
echo "[PICOM] Configuration directory exists. Skipping."
|
|
|
|
else
|
|
|
|
ln -s $DOTS_DIR/picom $PICOM_DIR
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Polybar
|
|
|
|
POLYBAR_DIR="$HOME/.config/polybar"
|
|
|
|
|
|
|
|
# Check if the polybar directory exists. If it does we skip this part of the script and inform the user.
|
|
|
|
if [ -d $POLYBAR_DIR ]; then
|
|
|
|
echo "[POLYBAR] Configuration directory exists. Skipping."
|
|
|
|
else
|
|
|
|
ln -s $DOTS_DIR/polybar $POLYBAR_DIR
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Dunst
|
|
|
|
DUNST_DIR="$HOME/.config/dunst"
|
|
|
|
|
|
|
|
# Check if the dunst directory exists. If it does we skip this part of the script and inform the user.'
|
|
|
|
if [ -d $DUNST_DIR ]; then
|
|
|
|
echo "[DUNST] Configuration directory exists. Skipping."
|
|
|
|
else
|
|
|
|
ln -s $DOTS_DIR/dunst $DUNST_DIR
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Kitty
|
|
|
|
KITTY_DIR="$HOME/.config/kitty"
|
|
|
|
|
|
|
|
# Check if the kitty directory exists. If it does we skip this part of the script and inform the user.
|
|
|
|
if [ -d $KITTY_DIR ]; then
|
2022-02-06 19:45:28 +01:00
|
|
|
echo "[KITTY] Configuration directory exists. Skipping."
|
2020-11-02 18:46:24 +01:00
|
|
|
else
|
|
|
|
ln -s $DOTS_DIR/kitty $KITTY_DIR
|
|
|
|
fi
|
|
|
|
|
|
|
|
# MPD
|
|
|
|
MPD_DIR="$HOME/.config/mpd"
|
|
|
|
|
|
|
|
# Check if the mpd directory exists. If it does we skip this part of the script and inform the user.
|
|
|
|
if [ -d $MPD_DIR ]; then
|
|
|
|
echo "[MPD] Configuration directory exists. Skipping."
|
|
|
|
else
|
|
|
|
ln -s $DOTS_DIR/mpd $MPD_DIR
|
|
|
|
fi
|
|
|
|
|
|
|
|
# ZSH
|
|
|
|
ZSHRC="$HOME/.zshrc"
|
|
|
|
|
|
|
|
# Check if the zshrc file exists. If it does we skip this part of the script and inform the user.
|
|
|
|
if [ -f $ZSHRC ]; then
|
|
|
|
echo "[ZSH] Configuration file exists. Skipping."
|
|
|
|
else
|
|
|
|
ln -s "$DOTS_DIR/zsh/.zshrc" $ZSHRC
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Rofi
|
|
|
|
ROFI_DIR="$HOME/.config/rofi"
|
|
|
|
|
|
|
|
# Check if the rofi directory exists. If it does we skip this part of the script and inform the user.
|
|
|
|
if [ -d $ROFI_DIR ]; then
|
2022-02-06 19:45:28 +01:00
|
|
|
echo "[ROFI] Configuration file exists. Skipping."
|
2020-11-02 18:46:24 +01:00
|
|
|
else
|
|
|
|
ln -s $DOTS_DIR/rofi $ROFI_DIR
|
2020-09-23 17:05:10 +02:00
|
|
|
fi
|
2022-02-06 19:45:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Scripts
|
|
|
|
SCRIPT_DIR="$HOME/bin/scripts"
|
|
|
|
|
|
|
|
# Check if the scripts directory exists. If it does we skip this part of the script and inform the user.
|
|
|
|
if [ -d $SCRIPT_DIR ]; then
|
|
|
|
echo "[SCRIPTS] Configuration directory exists. Skipping."
|
|
|
|
else
|
|
|
|
mkdir "$HOME/bin"
|
|
|
|
ln -s $DOTS_DIR/scripts $SCRIPT_DIR
|
|
|
|
fi
|
2022-04-14 21:26:15 +02:00
|
|
|
|
|
|
|
# Templates
|
|
|
|
TEMPLATE_DIR="$HOME/Templates"
|
|
|
|
|
|
|
|
rmdir "$TEMPLATE_DIR"
|
|
|
|
ln -s "$DOTS_DIR/Templates" "$TEMPLATE_DIR"
|