diff options
author | 2009-04-27 21:25:35 +0200 | |
---|---|---|
committer | 2009-04-27 21:25:35 +0200 | |
commit | e04b4d1628000f185e4499c0bdd9d5a5a610fd15 (patch) | |
tree | da52fc8217226182bfd62bc51bf91840fea7ae35 /examples/scripts/load_url_from_bookmarks.sh | |
parent | da781760634d94c61dc268e3866f896cf9a50b7e (diff) |
reorganize/refactor example scripts/config / bookmark file etc so that its easier for new users + separate config for development
Diffstat (limited to 'examples/scripts/load_url_from_bookmarks.sh')
-rwxr-xr-x | examples/scripts/load_url_from_bookmarks.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/scripts/load_url_from_bookmarks.sh b/examples/scripts/load_url_from_bookmarks.sh new file mode 100755 index 0000000..fd9179e --- /dev/null +++ b/examples/scripts/load_url_from_bookmarks.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# you probably want your bookmarks file in your $XDG_DATA_HOME ( eg $HOME/.local/share/uzbl/bookmarks) +if [ -f /usr/share/uzbl/examples/bookmarks ] +then + file=/usr/share/uzbl/examples/bookmarks +else + file=./examples/bookmarks #useful when developing +fi + +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. +[ -n "$goto" ] && echo "uri $goto" > $4 |