#!/bin/sh # Define the paths and repository bookmarks_file="$HOME/.local/share/bookmarks/bookmarks" repo_path="$HOME/.local/share/bookmarks" # Pull the latest changes cd "$repo_path" || exit git pull origin master # Check if the bookmarks file has changed if [ -n "$(git status --porcelain "$bookmarks_file")" ]; then # Add and commit the bookmarks file git add "$bookmarks_file" git commit -m "Update bookmarks file" # Push the changes and log output #git push origin master notify-send "Bookmarks updated" "Please push your changes." else notify-send "No changes" "No changes to the bookmarks file." fi