dotfiles/tools/relink.sh
Ivan Bushchik 06b7af1e02
Add mako config and change a lot of things
Add mako notifications
Add wf-recorder binds
Add screenshots binds
2022-08-30 18:02:25 +03:00

21 lines
1.2 KiB
Bash
Executable file

#!/bin/sh
# script that (re)links all dotfiles during the installation or upgrade.
# do not run manually
mkdir -p $HOME/.config/nvim $HOME/.config/alacritty $HOME/.config/mako >/dev/null 2>&1
rm -rf $HOME/.zshrc $HOME/.config/nvim/init.vim $HOME/.config/alacritty/alacritty.yml $HOME/.config/sway $HOME/.config/waybar $HOME/.config/mako/config >/dev/null 2>&1
ln -s $HOME/.dotfiles/configs/zshrc $HOME/.zshrc
echo ".zshrc linked: $HOME/.dotfiles/configs/zshrc -> $HOME/.zshrc"
ln -s $HOME/.dotfiles/configs/.profile $HOME/.profile
echo ".profile linked $HOME/.dotfiles/configs/.profile -> $HOME/.profile"
ln -s $HOME/.dotfiles/configs/nvim.vim $HOME/.config/nvim/init.vim
echo "neovim config linked: $HOME/.dotfiles/configs/nvim.vim -> $HOME/.config/nvim/init.vim"
ln -s $HOME/.dotfiles/configs/alacritty.yml $HOME/.config/alacritty/alacritty.yml
echo "alacritty config linked: $HOME/.dotfiles/configs/alacritty.yml -> $HOME/.config/alacritty/alacritty.yml"
ln -s $HOME/.dotfiles/configs/sway $HOME/.config/
ln -s $HOME/.dotfiles/configs/waybar $HOME/.config/
ln -s $HOME/.dotfiles/configs/mako $HOME/.config/mako/config
echo "sway (and all other swaywm, wayland stuff things) dotfiles installed"