mirror of
https://github.com/signaldirective/robco-theme.git
synced 2026-06-12 23:22:10 +02:00
First Commit of improved RobCo theme
This commit is contained in:
Executable
+50
@@ -0,0 +1,50 @@
|
||||
#!/bin/bash
|
||||
|
||||
# install_extras.sh - Install RobCo theme and fastfetch configuration
|
||||
|
||||
# Exit on any error
|
||||
set -e
|
||||
|
||||
# Get current timestamp for backup
|
||||
TIMESTAMP=$(date +"%Y%m%d-%H%M%S")
|
||||
|
||||
echo "Starting installation of extras..."
|
||||
|
||||
# Create .themes directory if it doesn't exist
|
||||
mkdir -p "$HOME/.themes"
|
||||
|
||||
# Copy RobCo theme to .themes directory
|
||||
if [ -d "RobCo" ]; then
|
||||
echo "Copying RobCo theme to ~/.themes..."
|
||||
cp -r RobCo "$HOME/.themes/"
|
||||
echo "RobCo theme installed successfully."
|
||||
else
|
||||
echo "Warning: RobCo directory not found in current directory."
|
||||
fi
|
||||
|
||||
# Create .config directory if it doesn't exist
|
||||
mkdir -p "$HOME/.config"
|
||||
|
||||
# Backup existing fastfetch configuration if it exists
|
||||
if [ -d "$HOME/.config/fastfetch" ]; then
|
||||
echo "Backing up existing fastfetch configuration..."
|
||||
mv "$HOME/.config/fastfetch" "$HOME/.config/fastfetch-$TIMESTAMP"
|
||||
echo "Backup created: ~/.config/fastfetch-$TIMESTAMP"
|
||||
fi
|
||||
|
||||
# Copy fastfetch configuration to .config directory
|
||||
if [ -d "fastfetch" ]; then
|
||||
echo "Copying fastfetch configuration to ~/.config..."
|
||||
cp -r fastfetch "$HOME/.config/"
|
||||
echo "fastfetch configuration installed successfully."
|
||||
else
|
||||
echo "Warning: fastfetch directory not found in current directory."
|
||||
fi
|
||||
|
||||
echo "Installation completed successfully!"
|
||||
echo "Summary:"
|
||||
echo "- RobCo theme: ~/.themes/RobCo"
|
||||
echo "- fastfetch config: ~/.config/fastfetch"
|
||||
if [ -d "$HOME/.config/fastfetch-$TIMESTAMP" ]; then
|
||||
echo "- fastfetch backup: ~/.config/fastfetch-$TIMESTAMP"
|
||||
fi
|
||||
Reference in New Issue
Block a user