Merge 72537055943cbece5626f09055bc2219b67a314a into bca6b403eb61df8f36e543a95ea48a07e546a9d3

This commit is contained in:
warthog18 2023-10-27 18:54:25 +00:00 committed by GitHub
commit 776de50d5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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