Added symlink setup

This commit is contained in:
Wryn Wagner 2020-01-08 13:04:01 -07:00
parent c4ed1fb8d8
commit 0ccfe3c9e2
3 changed files with 18 additions and 1 deletions

1
config/kitty/theme.conf Symbolic link
View File

@ -0,0 +1 @@
/home/w0ryn/.wryn/config/colorschemes/kitty/WrynWinter.conf

18
setup
View File

@ -33,6 +33,22 @@ LOCAL_VIM_ENV="$HOME/.config/wryn/env.vim"
|| echo 'let $WEBBROWSER=""' >> $LOCAL_VIM_ENV;
} || {
echo 'vim environment variables already set up'
echo 'vim environment variables already set up';
}
# setup config symlinks
xfce4-panel --version >/dev/null 2>&1 \
&& [ ! -f "$HOME/.xinitrc" ] \
&& ln -s "$HOME/.wryn/config/xserver/xinitrc" "$HOME/.xinitrc";
function SYMLINK_CONFIG() {
# $1 = config directory name
# $2 = filename
[ ! -d "$HOME/.config/$1" ] && mkdir "$HOME/.config/$1";
[ -f "$HOME/.config/$1/$2" ] && mv "$HOME/.config/$1/$2" "$HOME/.config/$1/$2.bak";
ln -s "$HOME/.wryn/config/$1/$2" "$HOME/.config/$1/$2";
}
SYMLINK_CONFIG "compton" "compton.conf";
SYMLINK_CONFIG "i3" "config";