dotfiles/install.sh
2021-12-30 15:50:38 +01:00

32 lines
936 B
Bash
Executable file

#!/bin/sh
echo -e "Configuring directories..."
DOTDIR=$(cd -- "$(dirname -- $0)" &> /dev/null && pwd)
ZDOTDIR="$HOME/.config/zsh"
mkdir -p $ZDOTDIR # Symlink only the individual files instead of the entire directory
sleep 0.5
echo -e "Creating the symlinks with stow..."
stow -d $DOTDIR -t $HOME --ignore="README.md" alacritty \
mako \
nvim \
scripts \
sway \
swaylock \
swaynag \
waybar \
zsh
sleep 0.5
echo -e "Making scripts executable..."
chmod +x $DOTDIR/scripts/.local/bin/clear-clipboard.sh
chmod +x $DOTDIR/sway/.config/sway/autostart.sh
chmod +x $DOTDIR/waybar/.config/waybar/ivpn-status.sh
chmod +x $DOTDIR/waybar/.config/waybar/ivpn-reconnect.sh
chmod +x $DOTDIR/waybar/.config/waybar/mediaplayer.py
sleep 0.5
echo -e "Done!"