mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2025-10-07 07:22:36 +02:00
Merge 72537055943cbece5626f09055bc2219b67a314a into f853f1884a8f0c244765192dc6f5a910a7e2b8e5
This commit is contained in:
commit
4dcede0e31
11
.local/bin/bookmarkthis
Normal file
11
.local/bin/bookmarkthis
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user