#!/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