♻️ refactor(systemd): backupGamesaves is now an external script
This commit is contained in:
parent
70ed8a86ec
commit
7582456e39
2 changed files with 17 additions and 1 deletions
|
@ -4,7 +4,7 @@ After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/ludusavi backup --force --full-limit 3 && notify-send "Gamesaves Backup Complete" -i ~/.local/share/icons/Catppuccin-SE/64x64@2x/apps/org.gnome.games.svg --app-name=Ludusavi
|
ExecStart=/home/matt/.local/bin/backupGamesaves
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
|
16
.local/bin/backupGamesaves
Executable file
16
.local/bin/backupGamesaves
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
notify() {
|
||||||
|
notify-send "$1" -i ~/.local/share/icons/Catppuccin-SE/64x64@2x/apps/org.gnome.games.svg --app-name=Ludusavi
|
||||||
|
}
|
||||||
|
|
||||||
|
if ! command -v ludusavi &>/dev/null; then
|
||||||
|
notify "Error: ludusavi is not installed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
notify "Started Backup..."
|
||||||
|
|
||||||
|
ludusavi backup --force --full-limit 3
|
||||||
|
|
||||||
|
notify "Backup Complete"
|
Loading…
Add table
Reference in a new issue