update
parent
e4034179e0
commit
1bde1b7ba2
|
@ -27,12 +27,20 @@ esac
|
||||||
gtkbookmarks() {
|
gtkbookmarks() {
|
||||||
BOOKMARKS="$HOME/.gtk-bookmarks"
|
BOOKMARKS="$HOME/.gtk-bookmarks"
|
||||||
if [[ -s "$BOOKMARKS" ]]; then
|
if [[ -s "$BOOKMARKS" ]]; then
|
||||||
|
case $LANG in
|
||||||
|
pl*)
|
||||||
|
GTK_BOOKMARKS="Zakładki GTK"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
GTK_BOOKMARKS="GTK Bookmarks"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
while read -r line
|
while read -r line
|
||||||
do
|
do
|
||||||
uri=$(echo $line | cut -b 8- | cut -d' ' -f1 | sed 's/%20/ /g')
|
uri=$(echo $line | cut -b 8- | cut -d' ' -f1 | sed 's/%20/ /g')
|
||||||
dirs+=("${line#* },^pipe(jgbrowser \"${uri}\")")
|
dirs+=("${line#* },^pipe(jgbrowser \"${uri}\")")
|
||||||
done <"$BOOKMARKS"
|
done <"$BOOKMARKS"
|
||||||
printf "%b\n" "^sep(Zakładki GTK)"
|
printf "%b\n" "^sep($GTK_BOOKMARKS)"
|
||||||
printf '%s\n' "${dirs[@]}"
|
printf '%s\n' "${dirs[@]}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue