2023-12-08 17:33:11 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# jeremystartm's dotfiles "installer"
|
2023-12-08 17:38:01 +01:00
|
|
|
|
|
|
|
# useful function
|
2023-12-08 17:33:11 +01:00
|
|
|
function link() {
|
|
|
|
if [ -a "${HOME}/${2}" ]; then
|
|
|
|
[[ -n "$VERBOSE_WARNING" ]] && echo ":: Warning: ${2} already exists."
|
|
|
|
else
|
|
|
|
echo ":: Linking ${2}"
|
|
|
|
ln -s "$(pwd)/${1}" "${HOME}/${2}"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2023-12-08 17:38:01 +01:00
|
|
|
# update submodules
|
2023-12-08 17:33:11 +01:00
|
|
|
git submodule update --init --recursive
|
|
|
|
|
2023-12-08 17:38:01 +01:00
|
|
|
# create directories
|
|
|
|
mkdir -p "${HOME}/.config" "${HOME}/.local/share/mc/skins"
|
|
|
|
|
2023-12-08 17:33:11 +01:00
|
|
|
# jobrunner
|
|
|
|
link "jobrunner/daemon.sh" ".local/bin/jobrunner"
|
|
|
|
link "jobrunner/runjob.sh" ".local/bin/jobrunner-runjob"
|
|
|
|
|
|
|
|
# bash configuration
|
|
|
|
link "jstmbash" ".jstmbash"
|
|
|
|
link "jstmbash.config.env" ".config/jstmbash.env"
|
|
|
|
link "starship.toml" ".config/starship.toml"
|
|
|
|
link "bashrc" ".bashrc"
|
|
|
|
|
|
|
|
# wm/compositor
|
|
|
|
link "hypr" ".config/hypr"
|
|
|
|
link "waybar" ".config/waybar"
|
|
|
|
link "fnott" ".config/fnott"
|
|
|
|
link "eww" ".config/eww"
|
|
|
|
link "copyq" ".config/copyq"
|
|
|
|
|
|
|
|
# programs
|
|
|
|
link "neofetch" ".config/neofetch"
|
|
|
|
link "btop" ".config/btop"
|
|
|
|
link "mc-share" ".local/share/mc"
|
|
|
|
link "mc-config" ".config/mc"
|
|
|
|
link "mpv" ".config/mpv"
|
|
|
|
|
|
|
|
# theming
|
|
|
|
link "dracula-mc/skins/dracula.ini" ".local/share/mc/skins/dracula.ini"
|
|
|
|
link "dracula-mc/skins/dracula256.ini" ".local/share/mc/skins/dracula256.ini"
|
|
|
|
link "nwg-look" ".config/nwg-look"
|
|
|
|
link "qt5ct" ".config/qt5ct"
|
|
|
|
link "qt6ct" ".config/qt6ct"
|
|
|
|
link "cursors" ".icons"
|
|
|
|
link "fonts" ".fonts"
|
|
|
|
link "fontconfig" ".config/fontconfig"
|