smb,sftp bookmarks
This commit is contained in:
parent
0b11e07586
commit
16dfdf7485
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user