made script a bit more browser agnostic
This commit is contained in:
parent
19ab17f223
commit
f09dc0b0b0
|
@ -3,7 +3,7 @@
|
||||||
raws="$(grep -v "Recent\(ly\)\? \(Bookmarked\|Tags\)" bookmarks.html | grep -o "<A.*</A>$" | grep -n ".*")"
|
raws="$(grep -v "Recent\(ly\)\? \(Bookmarked\|Tags\)" bookmarks.html | grep -o "<A.*</A>$" | grep -n ".*")"
|
||||||
|
|
||||||
titles="$(grep -on "\">.*</A>$" <<< "${raws}" | sed 's/"\?>//;s/<\/A>$//')"
|
titles="$(grep -on "\">.*</A>$" <<< "${raws}" | sed 's/"\?>//;s/<\/A>$//')"
|
||||||
|
|
||||||
selection=$(dmenu -c -l 10 -bw 3 <<< "${titles}" | grep -o "^[0-9]*:")
|
selection=$(dmenu -c -l 10 -bw 3 <<< "${titles}" | grep -o "^[0-9]*:")
|
||||||
|
url="$(grep "^${selection}" <<< "${raws}" | grep -o "HREF=\".*\" ADD_DATE" | sed 's/^HREF="//;s/" ADD_DATE$//')"
|
||||||
|
|
||||||
palemoon "$(grep "^${selection}" <<< "${raws}" | grep -o "HREF=\".*\" ADD_DATE" | sed 's/^HREF="//;s/" ADD_DATE$//')"
|
palemoon "${url}" || firefox "${url}" || chromium "${url}"
|
||||||
|
|
Loading…
Reference in New Issue