From 16dfdf7485d14c60f7f3a7ddd699ec90564072fb Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sun, 23 Jul 2023 01:02:35 +0200 Subject: [PATCH] smb,sftp bookmarks --- bin/mb-jgtools | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bin/mb-jgtools b/bin/mb-jgtools index ede3b70..91e3d50 100755 --- a/bin/mb-jgtools +++ b/bin/mb-jgtools @@ -36,12 +36,27 @@ if [ $places_bookmarks == true ]; then case $LANG in pl*) GTK_BOOKMARKS="Zakładki";; es*) GTK_BOOKMARKS="Marcadores" ;; + de*) GTK_BOOKMARKS="Lesezeichen" ;; *) GTK_BOOKMARKS="Bookmarks" ;; esac while read -r line do + case $line in + file*) uri=$(echo $line | cut -b 8- | cut -d' ' -f1 | sed 's/%20/ /g') dirs+=(" ${line#* },^pipe(jgbrowser \"${uri}\")") + ;; + sftp*) + uri=$(echo $line | cut -d' ' -f1 | sed 's/%20/ /g') + label=$(echo $line | cut -d' ' -f2 | sed 's/%20/ /g') + dirs+=("󰡰 ${label}, pcmanfm -n ${uri}") + ;; + smb*) + uri=$(echo $line | cut -d' ' -f1 | sed 's/%20/ /g') + label=$(echo $line | cut -d' ' -f2 | sed 's/%20/ /g') + dirs+=("󰡰 ${label}, pcmanfm -n ${uri}") + ;; + esac done <"$BOOKMARKS" printf "%b\n" "^sep($GTK_BOOKMARKS)" printf '%s\n' "${dirs[@]}" @@ -811,6 +826,7 @@ jgmenu --config-file=${CONFIG_FILE} --csv-file=${MENU_ITEMS} 2>/dev/null } mblogout() { +jgmenu_icon_theme="Numix-Circle" if [[ -n "$1" ]] then POSITION_MODE=${1:-pointer}