First commit

main
Marlon Silva 2 years ago
parent 2dc105ed86
commit 75ad63673b
Signed by: msilva
GPG Key ID: D9F0FBD9CCF4D41C

@ -0,0 +1,9 @@
#/bin/sh
bookmark="$(xclip -o)"
file="$HOME/repositories/bookmarks/bookmarks.txt"
if grep -q "^$bookmark$" "$file";then
notify-send "Failed" "Already bookmarked!"
else
notify-send "Success" "$bookmark added to the file!"
echo "$bookmark" >> "$file"
fi

@ -0,0 +1,9 @@
#/bin/sh
feed="$(xclip -o)"
file="$HOME/repositories/bookmarks/feeds.txt"
if grep -q "^$feed$" "$file";then
notify-send "Failed" "Already in the feed!"
else
notify-send "Success" "$feed added to the file!"
echo "$feed" >> "$file"
fi

@ -0,0 +1,2 @@
#!/bin/bash
xdotool type $(grep -v '^#' $HOME/repositories/bookmarks/bookmarks.txt | dmenu -i -l 50 | cut -d' ' -f1)
Loading…
Cancel
Save