aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-09-11 15:33:19 +0100
committerYann Herklotz <git@yannherklotz.com>2021-09-11 15:33:19 +0100
commit877f25d80c30e03197df8ae24f20207a01bcf0de (patch)
tree0c65af5fce1442cbe1d9f7f8ae57d7fb95564997 /install.sh
parent47a594d626b2c3aaeb57b98dcc2ebf4da5d3924a (diff)
downloaddotfiles-877f25d80c30e03197df8ae24f20207a01bcf0de.tar.gz
dotfiles-877f25d80c30e03197df8ae24f20207a01bcf0de.zip
Update configuration using msmtp
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh75
1 files changed, 53 insertions, 22 deletions
diff --git a/install.sh b/install.sh
index 6fce6d9..9583968 100755
--- a/install.sh
+++ b/install.sh
@@ -22,13 +22,14 @@ function print_help {
}
function ln_configs {
- ln $EXTRA_OPTS ${SCRIPT_DIR}/${1} $2
+ if [[ $FORCE -eq 1 ]]; then
+ rm -rI $2
+ fi
+ ln $EXTRA_OPTS ${SCRIPT_DIR}/$1 $2
}
function mk {
- if [[ $FORCE -eq 1 ]]; then
- mkdir -p "$1"
- fi
+ mkdir -p "$1"
}
EXTRA_OPTS=" -s "
@@ -45,23 +46,28 @@ for i in "$@"; do
exit 0
;;
- emacs) EMACS=1; NOT_ALL=1;;
- X) X=1; NOT_ALL=1;;
- tmux) TMUX=1; NOT_ALL=1;;
- i3) I3=1; NOT_ALL=1;;
- zsh) ZSH=1; NOT_ALL=1;;
- isync) ISYNC=1; NOT_ALL=1;;
- polybar) POLYBAR=1; NOT_ALL=1;;
- compton) COMPTON=1; NOT_ALL=1;;
- firefox) FIREFOX=1; NOT_ALL=1;;
- ncmpcpp) NCMPCPP=1; NOT_ALL=1;;
- mpd) MPD=1; NOT_ALL=1;;
- bspwm) BSPWM=1; NOT_ALL=1;;
- rofi) ROFI=1; NOT_ALL=1;;
- termite) TERMITE=1; NOT_ALL=1;;
- afew) AFEW=1; NOT_ALL=1;;
- doom) DOOM=1; NOT_ALL=1;;
- notmuch) NOTMUCH=1; NOT_ALL=1;;
+ X) X=1; NOT_ALL=1;;
+ afew) AFEW=1; NOT_ALL=1;;
+ bspwm) BSPWM=1; NOT_ALL=1;;
+ compton) COMPTON=1; NOT_ALL=1;;
+ doom) DOOM=1; NOT_ALL=1;;
+ emacs) EMACS=1; NOT_ALL=1;;
+ firefox) FIREFOX=1; NOT_ALL=1;;
+ i3) I3=1; NOT_ALL=1;;
+ isync) ISYNC=1; NOT_ALL=1;;
+ mpd) MPD=1; NOT_ALL=1;;
+ msmtp) MSMTP=1; NOT_ALL=1;;
+ ncmpcpp) NCMPCPP=1; NOT_ALL=1;;
+ notmuch) NOTMUCH=1; NOT_ALL=1;;
+ polybar) POLYBAR=1; NOT_ALL=1;;
+ scripts) SCRIPTS=1; NOT_ALL=1;;
+ services) SERVICES=1; NOT_ALL=1;;
+ sxhkd) SXHKD=1; NOT_ALL=1;;
+ rofi) ROFI=1; NOT_ALL=1;;
+ termite) TERMITE=1; NOT_ALL=1;;
+ tmux) TMUX_INST=1; NOT_ALL=1;;
+ zathura) ZATHURA=1; NOT_ALL=1;;
+ zsh) ZSH=1; NOT_ALL=1;;
*)
print_help
@@ -77,11 +83,27 @@ if [[ ! -z $EMACS ]] || [[ -z $NOT_ALL ]]; then
ln_configs emacs/loader.org ~/.emacs.d/loader.org
fi
+if [[ ! -z $SXHKD ]] || [[ -z $NOT_ALL ]]; then
+ echo "Installing sxhkd config..."
+ mk ~/.config/sxhkd
+ ln_configs sxhkd/sxhkdrc ~/.config/sxhkd/sxhkdrc
+fi
+
if [[ ! -z $DOOM ]] || [[ -z $NOT_ALL ]]; then
echo "Installing doom config..."
ln_configs doom ~/.config/doom
fi
+if [[ ! -z $MSMTP ]] || [[ -z $NOT_ALL ]]; then
+ echo "Installing msmtp config..."
+ ln_configs msmtp ~/.config/msmtp
+fi
+
+if [[ ! -z $ZATHURA ]] || [[ -z $NOT_ALL ]]; then
+ echo "Installing zathura config..."
+ ln_configs zathura ~/.config/zathura
+fi
+
if [[ ! -z $AFEW ]] || [[ -z $NOT_ALL ]]; then
echo "Installing afew config..."
mk ~/.config/afew
@@ -100,7 +122,7 @@ if [[ ! -z $X ]] || [[ -z $NOT_ALL ]]; then
ln_configs X/.xinitrc ~/.xinitrc
fi
-if [[ ! -z $TMUX ]] || [[ -z $NOT_ALL ]]; then
+if [[ ! -z $TMUX_INST ]] || [[ -z $NOT_ALL ]]; then
echo "Installing tmux config..."
ln_configs tmux/.tmux.conf ~/.tmux.conf
fi
@@ -172,3 +194,12 @@ if [[ ! -z $TERMITE ]] || [[ -z $NOT_ALL ]]; then
mk ~/.config/termite
ln_configs termite/config ~/.config/termite/config
fi
+
+if [[ ! -z $SERVICES ]] || [[ -z $NOT_ALL ]]; then
+ echo "Installing services config..."
+ mk ~/.config/systemd/user
+ ln_configs services/mailnotify.service ~/.config/systemd/user/mailnotify.service
+ ln_configs services/mbsync.service ~/.config/systemd/user/mbsync.service
+ ln_configs services/mbsync.timer ~/.config/systemd/user/mbsync.timer
+ ln_configs services/clipboard.service ~/.config/systemd/user/clipboard.service
+fi