瀏覽代碼

Move browser list to xuris.ini

Alois Mahdal 9 年之前
父節點
當前提交
45894d56b7
共有 1 個檔案被更改,包括 1 行新增11 行删除
  1. 1
    11
      src/libexec/saturnin-xuris

+ 1
- 11
src/libexec/saturnin-xuris 查看文件

16
     mkusage "[-u|--uniq] [-a|--always-run] [-l|--limit N] [-c|--choose] [-C|--choice-cmd COMMAND]"
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
 maybe_uniq() {
19
 maybe_uniq() {
30
     $SATURNIN_XURIS_UNIQ || { cat; return; }
20
     $SATURNIN_XURIS_UNIQ || { cat; return; }
31
     sort | uniq
21
     sort | uniq
61
 while true; do case $1 in
51
 while true; do case $1 in
62
     -a|--always-run) SATURNIN_XURIS_ALWAYS_RUN=true; shift ;;
52
     -a|--always-run) SATURNIN_XURIS_ALWAYS_RUN=true; shift ;;
63
     -b|--bin)        SATURNIN_XURIS_BIN="$2"; shift; shift ;;
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
     -C|--choice-cmd) SATURNIN_XURIS_CHOICE="$2"; shift; shift ;;
55
     -C|--choice-cmd) SATURNIN_XURIS_CHOICE="$2"; shift; shift ;;
66
     -l|--limit)      SATURNIN_XURIS_LIMIT=$2; shift; shift ;;
56
     -l|--limit)      SATURNIN_XURIS_LIMIT=$2; shift; shift ;;
67
     -u|--uniq)       SATURNIN_XURIS_UNIQ=true;       shift ;;
57
     -u|--uniq)       SATURNIN_XURIS_UNIQ=true;       shift ;;