Merge 72537055943cbece5626f09055bc2219b67a314a into 475e4abb4084008198f1d9a23de6450e02b074a9

This commit is contained in:
warthog18 2024-06-07 14:26:27 +03:00 committed by GitHub
commit 2ba2c21df0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

11
.local/bin/bookmarkthis Normal file
View File

@ -0,0 +1,11 @@
#!/bin/sh
bookmark="$(xclip -o)"
file="$HOME/.local/share/larbs/snippets"
if grep "^$bookmark$" "$file"; then
notify-send "Oops." "Already bookmarked!"
else
notify-send "Bookmark added!" "$bookmark is now saved to the file."
echo "$bookmark" >> "$file"
fi