nerd fonts!
This commit is contained in:
parent
aae1292fe2
commit
b2734ac316
2 changed files with 4 additions and 4 deletions
|
@ -5,10 +5,10 @@
|
||||||
bookmark="$(xsel -ob)"
|
bookmark="$(xsel -ob)"
|
||||||
|
|
||||||
if grep -q "$bookmark" "$HOME/Documents/bookmarks" ; then
|
if grep -q "$bookmark" "$HOME/Documents/bookmarks" ; then
|
||||||
notify-send "Bookmarks" "Already bookmarked"
|
notify-send " Bookmarks" "Already bookmarked"
|
||||||
else
|
else
|
||||||
name="$(dmenu -p 'Bookmark name:' < /dev/null)"
|
name="$(dmenu -p 'Bookmark name:' < /dev/null)"
|
||||||
entry="$name-$bookmark"
|
entry="$name-$bookmark"
|
||||||
echo "$entry" >> "$HOME/.config/bookmarks"
|
echo "$entry" >> "$HOME/Documents/bookmarks"
|
||||||
notify-send "Bookmarks" "Added $entry"
|
notify-send " Bookmarks" "Added $entry"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
name=$(cut -d '-' -f 1 $HOME/Documents/bookmarks | grep -v '^#' | sed '/^\s*$/d' | dmenu -i -p "Site:")
|
name=$(cut -d '-' -f 1 $HOME/Documents/bookmarks | grep -v '^#' | sed '/^\s*$/d' | dmenu -i -p "Site:")
|
||||||
[ -z "$name" ] && exit
|
[ -z "$name" ] && exit
|
||||||
|
|
||||||
grep "$name" ~/.config/bookmarks | cut -d '-' -f 2- | xsel -ib && notify-send " $name" "Copied to clipboard"
|
grep "$name" ~/.config/bookmarks | cut -d '-' -f 2- | xsel -ib && notify-send " Bookmarks" "$name copied to clipboard"
|
||||||
|
|
Loading…
Reference in a new issue