dotfiles/restore.sh

64 lines
1.6 KiB
Bash
Raw Normal View History

2023-10-08 22:26:07 -05:00
#!/usr/bin/env bash
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
2023-11-20 00:48:36 -06:00
# fish
2023-10-08 22:26:07 -05:00
rm -rf $HOME/.config/fish/
cp -r $GIT_DIR/fish/ $HOME/.config/
cp $GIT_DIR/universal-shellrc.txt $HOME/.config/fish/conf.d/universal.fish
fish -c 'fisher update'
2023-11-14 11:41:09 -06:00
2023-11-20 00:48:36 -06:00
# kitty
rm -rf $HOME/.config/kitty/
2023-10-08 22:26:07 -05:00
cp -r $GIT_DIR/kitty/ $HOME/.config/
2023-11-20 00:48:36 -06:00
# nvim
rm -rf $HOME/.config/nvim/
2023-10-08 22:26:07 -05:00
cp -r $GIT_DIR/nvim/ $HOME/.config/
2023-11-14 11:41:09 -06:00
2023-11-20 00:48:36 -06:00
# gpg
rm -f $HOME/.gnupg/gpg-agent.conf
rm -f $HOME/.gnupg/gpg.conf
mkdir $HOME/.gnupg
2023-10-10 20:25:23 -05:00
cp -r $GIT_DIR/gnupg/* $HOME/.gnupg/
2023-11-14 11:41:09 -06:00
2023-11-20 00:48:36 -06:00
# vesktop
2024-03-06 20:18:13 -06:00
rm -rf $HOME/.config/vesktop/
mkdir -p $HOME/.config/vesktop/
cp -r $GIT_DIR/vesktop/* $HOME/.config/vesktop/
2023-11-20 00:48:36 -06:00
# i3
rm -rf $HOME/.config/i3
cp -r $GIT_DIR/i3 $HOME/.config/
# sway
rm -rf $HOME/.config/sway
cp -r $GIT_DIR/sway $HOME/.config/
2023-11-20 12:09:00 -06:00
# greetd (for sway)
if [ -d /etc/greetd ]; then
2023-11-23 00:23:48 -06:00
sudo rm /etc/greetd/config.toml
sudo cp $GIT_DIR/greetd/config.toml /etc/greetd/config.toml
2023-11-20 12:09:00 -06:00
fi
2023-11-23 00:23:48 -06:00
2023-12-06 21:46:34 -06:00
# xinitrc
cp $GIT_DIR/other-files/.xinitrc $HOME/.xinitrc
# Claws Mail configs
cp $GIT_DIR/claws-mail/clawsrc $HOME/.claws-mail/clawsrc
cp $GIT_DIR/claws-mail/matcherrc $HOME/.claws-mail/matcherrc
2024-03-06 20:26:26 -06:00
# rofi
rm -rf $HOME/.config/rofi/
mkdir $HOME/.config/rofi/
cp -r $GIT_DIR/rofi $HOME/.config/rofi/
# VS code
mkdir -p $HOME/.config/Code/User/
2024-03-06 20:18:13 -06:00
mkdir -p $HOME/.vscode/
cp $GIT_DIR/vscode/keybindings.json $HOME/.config/Code/User/
cp $GIT_DIR/vscode/settings.json $HOME/.config/Code/User/
for ext in $(cat $GIT_DIR/vscode/extensions.txt); do code --install-extension $ext; done
cp $GIT_DIR/vscode/argv.json $HOME/.vscode/argv.json
echo "restore.sh done!"