mb-places ssh bookmarks

This commit is contained in:
2026-02-07 01:46:35 +01:00
parent 68683c2b60
commit bf3507ba13

View File

@@ -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 <<EOF > ${PLACES}
out+=("^sep($LABEL <small>( + .)</small>)")
out+=("^sep($LABEL <span font_weight='normal'>[  + . ]</span>)")
#out+=("^sep($LABEL <small>[W-.]</small>)")
out+=(" $HOME_DIR (<b>~</b>),^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")