mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Compare commits
3 Commits
783c3a20fd
...
2ba2c21df0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ba2c21df0 | ||
|
|
7253705594 | ||
|
|
5a3a9936b6 |
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