From 0ccfe3c9e284caf3366f924683cf855c406e3420 Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Wed, 8 Jan 2020 13:04:01 -0700 Subject: [PATCH] Added symlink setup --- .../compton/{compton_config => compton.conf} | 0 config/kitty/theme.conf | 1 + setup | 18 +++++++++++++++++- 3 files changed, 18 insertions(+), 1 deletion(-) rename config/compton/{compton_config => compton.conf} (100%) create mode 120000 config/kitty/theme.conf diff --git a/config/compton/compton_config b/config/compton/compton.conf similarity index 100% rename from config/compton/compton_config rename to config/compton/compton.conf diff --git a/config/kitty/theme.conf b/config/kitty/theme.conf new file mode 120000 index 0000000..83dfc47 --- /dev/null +++ b/config/kitty/theme.conf @@ -0,0 +1 @@ +/home/w0ryn/.wryn/config/colorschemes/kitty/WrynWinter.conf \ No newline at end of file diff --git a/setup b/setup index 98cb53a..42dc837 100755 --- a/setup +++ b/setup @@ -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";