dotfiles/.local/bin/backupGamesaves

16 lines
328 B
Bash
Executable file

#!/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"