|
@@ -16,16 +16,6 @@ usage() {
|
16
|
16
|
mkusage "[-u|--uniq] [-a|--always-run] [-l|--limit N] [-c|--choose] [-C|--choice-cmd COMMAND]"
|
17
|
17
|
}
|
18
|
18
|
|
19
|
|
-enum_bins() {
|
20
|
|
- echo uzbl-browser
|
21
|
|
- echo vimb
|
22
|
|
- echo firefox
|
23
|
|
- echo opera-rh
|
24
|
|
- echo opera-beta
|
25
|
|
- echo opera
|
26
|
|
- echo wget
|
27
|
|
-}
|
28
|
|
-
|
29
|
19
|
maybe_uniq() {
|
30
|
20
|
$SATURNIN_XURIS_UNIQ || { cat; return; }
|
31
|
21
|
sort | uniq
|
|
@@ -61,7 +51,7 @@ open_from() {
|
61
|
51
|
while true; do case $1 in
|
62
|
52
|
-a|--always-run) SATURNIN_XURIS_ALWAYS_RUN=true; shift ;;
|
63
|
53
|
-b|--bin) SATURNIN_XURIS_BIN="$2"; shift; shift ;;
|
64
|
|
- -c|--choose) SATURNIN_XURIS_CHOICE="enum_bins | saturnin dmenu"; shift ;;
|
|
54
|
+ -c|--choose) SATURNIN_XURIS_CHOICE="inigrep -j -p xuris.browsers | saturnin dmenu"; shift ;;
|
65
|
55
|
-C|--choice-cmd) SATURNIN_XURIS_CHOICE="$2"; shift; shift ;;
|
66
|
56
|
-l|--limit) SATURNIN_XURIS_LIMIT=$2; shift; shift ;;
|
67
|
57
|
-u|--uniq) SATURNIN_XURIS_UNIQ=true; shift ;;
|