From bf3507ba13cbb21be5f7909a33394357d0ee21bf Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sat, 7 Feb 2026 01:46:35 +0100 Subject: [PATCH] mb-places ssh bookmarks --- usr/bin/mb-places | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/usr/bin/mb-places b/usr/bin/mb-places index 94901d2..8a07928 100755 --- a/usr/bin/mb-places +++ b/usr/bin/mb-places @@ -26,9 +26,9 @@ gtkbookmarks() { label=$(echo $line | cut -d' ' -f2-4 | sed 's/%20/ /g') out+=(" ${label},^pipe(jgbrowser \"${uri}\" -b)") ;; - sftp*) + sftp*|ssh*) uri=$(echo $line | cut -d' ' -f1 | sed 's/%20/ /g') - label=$(echo $line | cut -d' ' -f2 | sed 's/%20/ /g') + label=$(echo $line | cut -d' ' -f2-4 | sed 's/%20/ /g') out+=("󰡰 ${label}, pcmanfm -n ${uri}") ;; ftp*) @@ -38,7 +38,7 @@ gtkbookmarks() { ;; smb*) uri=$(echo $line | cut -d' ' -f1 | sed 's/%20/ /g') - label=$(echo $line | cut -d' ' -f2 | sed 's/%20/ /g') + label=$(echo $line | cut -d' ' -f2-4 | sed 's/%20/ /g') out+=("󰡰 ${label}, pcmanfm -n ${uri}") ;; esac @@ -88,7 +88,8 @@ esac #if [ ! -f ${PLACES} ]; then #cat < ${PLACES} -out+=("^sep($LABEL ( + .))") +out+=("^sep($LABEL [  + . ])") +#out+=("^sep($LABEL [W-.])") out+=(" $HOME_DIR (~),^pipe(jgbrowser),folder-home") out+=(" $(basename $(xdg-user-dir DOWNLOAD)),^pipe(jgbrowser $(xdg-user-dir DOWNLOAD)),folder-download") out+=(" $(basename $(xdg-user-dir DOCUMENTS)),^pipe(jgbrowser $(xdg-user-dir DOCUMENTS)),folder-documents")