quote
This commit is contained in:
parent
b2734ac316
commit
5e62be50b9
2 changed files with 2 additions and 2 deletions
|
@ -10,5 +10,5 @@ else
|
||||||
name="$(dmenu -p 'Bookmark name:' < /dev/null)"
|
name="$(dmenu -p 'Bookmark name:' < /dev/null)"
|
||||||
entry="$name-$bookmark"
|
entry="$name-$bookmark"
|
||||||
echo "$entry" >> "$HOME/Documents/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 " Bookmarks" "$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