mirror of
https://github.com/kageurufu/steamdeck_startup_animations.git
synced 2024-11-16 15:49:20 +01:00
25 lines
872 B
Bash
Executable File
25 lines
872 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Create required directories
|
|
echo ":: Creating required directories"
|
|
mkdir -p "$HOME/homebrew"
|
|
mkdir -p "$HOME/.config/systemd/user"
|
|
|
|
# Clone the startup animations repository
|
|
if [[ ! -d "$HOME/homebrew/startup_animations" ]]; then
|
|
echo ":: Installing to $HOME/homebrew/startup_animations"
|
|
git clone https://github.com/kageurufu/steamdeck_startup_animations "$HOME/homebrew/startup_animations"
|
|
cd "$HOME/homebrew/startup_animations"
|
|
else
|
|
echo ":: Updating $HOME/homebrew/startup_animations"
|
|
cd "$HOME/homebrew/startup_animations"
|
|
git pull
|
|
fi
|
|
|
|
# Install the service file
|
|
echo ":: Installing the startup service"
|
|
ln -sf "$HOME/homebrew/startup_animations/randomize_deck_startup.service" "$HOME/.config/systemd/user/randomize_deck_startup.service"
|
|
systemctl --user daemon-reload
|
|
systemctl --user enable --now randomize_deck_startup.service
|
|
|