master
Daniel Napora 2020-02-23 19:39:08 +01:00
parent e4034179e0
commit 1bde1b7ba2
1 changed files with 9 additions and 1 deletions

View File

@ -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
} }