reorganize/refactor example scripts/config / bookmark file etc so that its easier...
[uzbl-mobile] / examples / scripts / load_url_from_bookmarks.sh
1 #!/bin/bash
2
3 # you probably want your bookmarks file in your $XDG_DATA_HOME ( eg $HOME/.local/share/uzbl/bookmarks)
4 if [ -f /usr/share/uzbl/examples/bookmarks ]
5 then
6         file=/usr/share/uzbl/examples/bookmarks
7 else
8         file=./examples/bookmarks #useful when developing
9 fi
10
11 goto=`awk '{print $1}' $history_file | dmenu` #NOTE: it's the job of the script that inserts bookmarks to make sure there are no dupes.
12 [ -n "$goto" ] && echo "uri $goto" > $4