prepare and append.csv

master
Daniel Napora 2020-02-02 17:51:13 +01:00
parent 4f6edc2236
commit 2e68df3289
2 changed files with 15 additions and 12 deletions

View File

@ -120,15 +120,15 @@ MENU_HEIGHT_MIN=$(xdpyinfo | awk '/^ +dimensions/ {print $2}' | cut -d 'x' -f2)
mkconfigfile
cat <<EOF > ${MENU_ITEMS}
@icon,,10,20,48,48,4,left,top,,,/usr/share/icons/hicolor/48x48/apps/mbcc.png
@text,,70,10,200,20,4,left,top,#EEEEEE,#111111,<big>$OSNAME $OSVERSION</big> <sup> $OSCODE</sup>
@text,,70,30,200,20,4,left,top,#666666,#444444,<small>Jądro:</small> $KERNEL $HOSTTYPE
@text,,70,50,200,20,4,left,top,#666666,#444444,<small>$USER@$HOSTNAME</small>
@icon,,270,10,48,48,4,left,top,,,/usr/share/icons/hicolor/48x48/apps/distributor-logo-mabox.png
@text,,10,10,200,20,4,left,top,#EEEEEE,#111111,<big>$OSNAME $OSVERSION</big> <sup> $OSCODE</sup>
@text,,10,30,200,20,4,left,top,#666666,#444444,<small>Jądro:</small> $KERNEL $HOSTTYPE
@text,,10,50,200,20,4,left,top,#666666,#444444,<small>$USER@$HOSTNAME</small>
#@rect,,40,70,262,20,0,left,top,#666666,#262626,
@text,,44,70,20,20,0,left,top,auto,#222222,<big></big>
@search,,60,70,292,20,4,left,top,auto,#262626,""" <i>pisz, aby wyszukać</i>"""
@text,,14,70,20,20,0,left,top,auto,#222222,<big></big>
@search,,30,70,292,20,4,left,top,auto,#262626,""" <i>pisz, aby wyszukać</i>"""
. $HOME/.config/mabox/right-prepend.csv
^sep(Zarządzanie oprogramowaniem)
 Aktualizacja systemu (Pamac),pamac-manager --updates
 Aktualizacja systemu (cli),^term(sudo pacman -Syyu)
@ -157,6 +157,8 @@ cat <<EOF > ${MENU_ITEMS}
 Wyłącz,systemctl poweroff
 Zablokuj ekran, betterlockscreen -l
. $HOME/.config/mabox/right-append.csv
^tag(system)
^sep(System i sprzęt)
@ -248,7 +250,7 @@ cat <<EOF > ${MENU_ITEMS}
^sep(Szybka nawigacja)
 Katalog główny,^pipe(jgmenu_run ob --cmd='obbrowser /')
 Katalog domowy,^pipe(jgmenu_run ob --cmd='mabox-places-pipemenu')
 Katalog domowy,^pipe(places)
 $(basename $(xdg-user-dir DESKTOP)),^pipe(places $(xdg-user-dir DESKTOP))
 $(basename $(xdg-user-dir DOWNLOAD)),^pipe(places $(xdg-user-dir DOWNLOAD))

View File

@ -24,12 +24,13 @@ ${shortname},^pipe(places '${path}/${shortname}')"
${shortname},${JGMENU_RESOURCE_OPENER} ${path}/${shortname}"
fi
done
printf "%b\n" "^sep(${path})"
printf "%b\n" "Browse here...,${JGMENU_RESOURCE_OPENER} ${path}"
printf "%b\n" "^sep(<small><i>${path}</i></small>)"
printf "%b\n" "  Otwórz w menadżerze plików,${JGMENU_RESOURCE_OPENER} ${path}"
printf "%b\n" "  Otwórz w termianlu,terminator --working-directory=${path}"
printf "%b\n" "^sep()"
printf "%b\n" "^sep(Katalogi)"
#printf "%b\n" "^sep(Katalogi)"
printf "%b\n" "${directories_menu}"
printf "%b\n" "^sep(Katalogi)"
#printf "%b\n" "^sep(Pliki)"
printf "%b\n" "${files_menu}"
if test -z "${directories_menu}" && test -z "${files_menu}"