2022-08-01 19:02:25 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Create required directories
|
2022-08-01 19:12:04 +02:00
|
|
|
echo ":: Creating required directories"
|
2022-08-01 19:02:25 +02:00
|
|
|
mkdir -p "$HOME/homebrew"
|
|
|
|
mkdir -p "$HOME/.config/systemd/user"
|
|
|
|
|
|
|
|
# Clone the startup animations repository
|
|
|
|
if [[ ! -d "$HOME/homebrew/startup_animations" ]]; then
|
2022-08-01 19:12:04 +02:00
|
|
|
echo ":: Installing to $HOME/homebrew/startup_animations"
|
2022-08-01 19:02:25 +02:00
|
|
|
git clone https://github.com/kageurufu/steamdeck_startup_animations "$HOME/homebrew/startup_animations"
|
2022-08-01 19:04:03 +02:00
|
|
|
cd "$HOME/homebrew/startup_animations"
|
|
|
|
else
|
2022-08-01 19:12:04 +02:00
|
|
|
echo ":: Updating $HOME/homebrew/startup_animations"
|
2022-08-01 19:04:03 +02:00
|
|
|
cd "$HOME/homebrew/startup_animations"
|
|
|
|
git pull
|
2022-08-01 19:02:25 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Install the service file
|
2022-08-01 19:12:04 +02:00
|
|
|
echo ":: Installing the startup service"
|
2022-08-01 19:02:25 +02:00
|
|
|
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
|
|
|
|
|