blob: a41eb8eaede21294a3425971753a901f31121763 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
bookmark=$(wl-paste -p)
filename="$HOME/.local/share/larbs/bookmarks"
if [[ "$bookmark" =~ ^https?:// ]]; then
if grep -q "^$bookmark$" "$filename"; then
notify-send "Bookmark Status" "Already Bookmarked"
else
notify-send "Bookmark Status" "Bookmark Added"
echo "$bookmark" >> "$filename"
fi
else
exit 1
fi
|