]>
Commit | Line | Data |
---|---|---|
aa71a044 | 1 | diff --git a/examples/data/uzbl/scripts/load_url_from_bookmarks.sh b/examples/data/uzbl/scripts/load_url_from_bookmarks.sh |
2 | index f57d7b3..f77dfe4 100755 | |
3 | --- a/examples/data/uzbl/scripts/load_url_from_bookmarks.sh | |
4 | +++ b/examples/data/uzbl/scripts/load_url_from_bookmarks.sh | |
5 | @@ -5,16 +5,10 @@ | |
6 | file=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/bookmarks | |
7 | [ -r "$file" ] || exit | |
8 | COLORS=" -nb #303030 -nf khaki -sb #CCFFAA -sf #303030" | |
9 | -if dmenu --help 2>&1 | grep -q '\[-rs\] \[-ni\] \[-nl\] \[-xs\]' | |
10 | -then | |
11 | - DMENU="dmenu -i -xs -rs -l 10" # vertical patch | |
12 | - # show tags as well | |
13 | - goto=`$DMENU $COLORS < $file | awk '{print $1}'` | |
14 | -else | |
15 | - DMENU="dmenu -i" | |
16 | - # because they are all after each other, just show the url, not their tags. | |
17 | - goto=`awk '{print $1}' $file | $DMENU $COLORS` | |
18 | -fi | |
19 | + | |
20 | +DMENU="dmenu -i -l 10" # vertical patch | |
21 | +# show tags as well | |
22 | +goto=`$DMENU $COLORS < $file | awk '{print $1}'` | |
23 | ||
24 | #[ -n "$goto" ] && echo "uri $goto" > $4 | |
25 | [ -n "$goto" ] && uzblctrl -s $5 -c "uri $goto" | |
26 | diff --git a/examples/data/uzbl/scripts/load_url_from_history.sh b/examples/data/uzbl/scripts/load_url_from_history.sh | |
27 | index 1eaf0f2..ff5e790 100755 | |
28 | --- a/examples/data/uzbl/scripts/load_url_from_history.sh | |
29 | +++ b/examples/data/uzbl/scripts/load_url_from_history.sh | |
30 | @@ -6,19 +6,10 @@ history_file=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/history | |
31 | # choose from all entries, sorted and uniqued | |
32 | # goto=`awk '{print $3}' $history_file | sort -u | dmenu -i` | |
33 | COLORS=" -nb #303030 -nf khaki -sb #CCFFAA -sf #303030" | |
34 | -if dmenu --help 2>&1 | grep -q '\[-rs\] \[-ni\] \[-nl\] \[-xs\]'; | |
35 | -then | |
36 | - DMENU="dmenu -i -xs -rs -l 10" # vertical patch | |
37 | - # choose an item in reverse order, showing also the date and page titles | |
38 | - # pick the last field from the first 3 fields. this way you can pick a url (prefixed with date & time) or type just a new url. | |
39 | - goto=`tac $history_file | $DMENU $COLORS | cut -d ' ' -f -3 | awk '{print $NF}'` | |
40 | -else | |
41 | - DMENU="dmenu -i" | |
42 | - # choose from all entries (no date or title), the first one being current url, and after that all others, sorted and uniqued, in ascending order | |
43 | - current=`tail -n 1 $history_file | awk '{print $3}'`; | |
44 | - goto=`(echo $current; awk '{print $3}' $history_file | grep -v "^$current\$" \ | |
45 | - | sort -u) | $DMENU $COLORS` | |
46 | -fi | |
47 | +DMENU="dmenu -i -l 10" # vertical patch | |
48 | +# choose an item in reverse order, showing also the date and page titles | |
49 | +# pick the last field from the first 3 fields. this way you can pick a url (prefixed with date & time) or type just a new url. | |
50 | +goto=`tac $history_file | $DMENU $COLORS | cut -d ' ' -f -3 | awk '{print $NF}'` | |
51 | ||
52 | [ -n "$goto" ] && echo "uri $goto" > $4 | |
53 | #[ -n "$goto" ] && uzblctrl -s $5 -c "uri $goto" |