blob: 660272bfb0becc4146528c982d54d08bb9bcc02c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
if [ -z "$1" ]
then
bookmark_file=~/.cache/bookmarks
choice=$(gawk -F '§§§' '{print($2)}' $bookmark_file | dmenu -p 'Search for Bookmark' -l 20)
[ -z "$choice" ] && exit ||
link=$(echo $choice | xargs -I §€§ grep '§€§' $bookmark_file | gawk -F '§§§' '{print($1)}')
linkhandler $link
else
name=$(echo $1 | dmenu -p 'Description of the Bookmark:') &&
echo $1§§§$name >> ~/.cache/bookmarks
fi
|