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
|
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
|
2023-10-10 20:23:21 -05:00
|
|
|
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
|
|
|
|
rm -rf $HOME/.config/VencordDesktop/VencordDesktop/
|
2023-11-14 11:41:09 -06:00
|
|
|
mkdir -p $HOME/.config/VencordDesktop/VencordDesktop/
|
2023-11-19 14:34:47 -06:00
|
|
|
cp -r $GIT_DIR/VencordDesktop/* $HOME/.config/VencordDesktop/VencordDesktop/
|
|
|
|
|
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
|
|
|
echo "restore.sh done!"
|
|
|
|
|
|
|
|
# xinitrc
|
|
|
|
cp $GIT_DIR/other-files/.xinitrc $HOME/.xinitrc
|
2024-01-03 17:58:34 -06:00
|
|
|
|
|
|
|
# VS code
|
|
|
|
mkdir -p $HOME/.config/Code/User/
|
|
|
|
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
|