update: hypr&neovim improvements, yazi plugins, waybar tweaking before bigger update

This commit is contained in:
2026-04-25 09:48:48 +03:00
parent 1930ed092f
commit 6cbd52f0db
71 changed files with 1470 additions and 223 deletions
+51
View File
@@ -0,0 +1,51 @@
#!/bin/bash
SOURCE=$1
if [ -z "$SOURCE" ]; then
echo "Usage: $0 <path-to-zip-or-directory>"
exit 1
fi
# Handle zip extraction
if [[ "$SOURCE" == *.zip ]]; then
TEMP_DIR=$(mktemp -d)
unzip -q "$SOURCE" -d "$TEMP_DIR"
RESTORE_PATH=$(find "$TEMP_DIR" -maxdepth 1 -type d -name "config-*" | head -n 1)
else
RESTORE_PATH="$SOURCE"
fi
if [ ! -d "$RESTORE_PATH" ]; then
echo "Error: Invalid config source"
exit 1
fi
# Clean and restore config-scripts/
rm -rf ~/config-scripts
cp -r "$RESTORE_PATH/config-scripts" ~/
# Clean and restore .themes/
rm -rf ~/.themes/Colloid-Transparent-Dracula
mkdir -p ~/.themes
cp -r "$RESTORE_PATH/.themes/Colloid-Transparent-Dracula" ~/.themes/
# Clean and restore .config/
for dir in nvim rofi yazi hypr waybar dunst kitty fastfetch; do
rm -rf ~/.config/$dir
mkdir -p ~/.config/$dir
cp -r "$RESTORE_PATH/.config/$dir/." ~/.config/$dir/
done
# Restore single dotfiles
cp -r "$RESTORE_PATH/.inputrc" ~/
cp -r "$RESTORE_PATH/.bash_profile" ~/
cp -r "$RESTORE_PATH/.bashrc" ~/
cp -r "$RESTORE_PATH/.bash_exports" ~/
cp -r "$RESTORE_PATH/.bash_aliases" ~/
cp -r "$RESTORE_PATH/.ideavimrc" ~/
echo 'Restored configs'
# Cleanup temp files
[ -n "$TEMP_DIR" ] && rm -rf "$TEMP_DIR"
echo -e "\e[32mDone!\e[0m"