|
@@ -4,6 +4,7 @@
|
4
|
4
|
|
5
|
5
|
. "$(ffoom path)" || exit 3
|
6
|
6
|
ffoo import pretty
|
|
7
|
+ffoo import inigrep
|
7
|
8
|
|
8
|
9
|
SATURNIN_XURIS_NOTIFICATIONS=true
|
9
|
10
|
SATURNIN_XURIS_LIMIT=100
|
|
@@ -27,19 +28,6 @@ enum_bins() {
|
27
|
28
|
echo wget
|
28
|
29
|
}
|
29
|
30
|
|
30
|
|
-decide_bin() {
|
31
|
|
- #
|
32
|
|
- # Decide what browser to use
|
33
|
|
- #
|
34
|
|
- local context="$(hostname -s)"
|
35
|
|
- debug -v context
|
36
|
|
- case "$context" in
|
37
|
|
- hugo/*) echo vimb ;;
|
38
|
|
- fullmoon/*) echo uzbl-browser ;;
|
39
|
|
- *) echo uzbl-browser ;;
|
40
|
|
- esac
|
41
|
|
-}
|
42
|
|
-
|
43
|
31
|
maybe_uniq() {
|
44
|
32
|
$SATURNIN_XURIS_UNIQ || { cat; return; }
|
45
|
33
|
sort | uniq
|
|
@@ -96,7 +84,7 @@ cat | maybe_uniq | grep . >"$SATURNIN_XURIS_URI_LIST"
|
96
|
84
|
# choice of URI has been made; we may try to use dmenu
|
97
|
85
|
bash -n <<<"$SATURNIN_XURIS_CHOICE"
|
98
|
86
|
SATURNIN_XURIS_BIN=$(eval "$SATURNIN_XURIS_CHOICE")
|
99
|
|
-SATURNIN_XURIS_BIN="${SATURNIN_XURIS_BIN:-$(decide_bin)}"
|
|
87
|
+SATURNIN_XURIS_BIN="${SATURNIN_XURIS_BIN:-$(inigrep -j -1 -p xuris.browser)}"
|
100
|
88
|
|
101
|
89
|
debug -v SATURNIN_XURIS_BIN
|
102
|
90
|
|