lots of stuff

This commit is contained in:
2025-04-21 19:44:26 -07:00
parent 4d44700fb8
commit 857cb3060a
13 changed files with 105 additions and 246 deletions
+12 -2
View File
@@ -1,5 +1,15 @@
#!/bin/sh
# Try to source keychain's environment file
if [ -f "$HOME/.keychain/$(hostname)-sh" ]; then
. "$HOME/.keychain/$(hostname)-sh"
fi
# Fallback to gnome-keyring if keychain not used
if [ -z "$SSH_AUTH_SOCK" ] && [ -S "/run/user/$(id -u)/keyring/ssh" ]; then
export SSH_AUTH_SOCK="/run/user/$(id -u)/keyring/ssh"
fi
# Define the paths and repository
bookmarks_file="$HOME/.local/share/bookmarks/bookmarks"
repo_path="$HOME/.local/share/bookmarks"
@@ -15,9 +25,9 @@ if [ -n "$(git status --porcelain "$bookmarks_file")" ]; then
git commit -m "Update bookmarks file"
# Push the changes and log output
#git push origin master
GIT_SSH_COMMAND="ssh -i ~/.ssh/ry_ecdsa" git push origin master 2>&1 | tee -a /tmp/bookmark_git_push.log
notify-send "Bookmarks updated" "Please push your changes."
notify-send "Bookmarks updated" "Changes pushed."
else
notify-send "No changes" "No changes to the bookmarks file."
fi