From 2e68df328923c675ba4b78ab9e5982f417203910 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sun, 2 Feb 2020 17:51:13 +0100 Subject: [PATCH] prepare and append.csv --- bin/mb-jgtools | 18 ++++++++++-------- bin/places | 9 +++++---- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/bin/mb-jgtools b/bin/mb-jgtools index 8e1cc3b..61799f0 100755 --- a/bin/mb-jgtools +++ b/bin/mb-jgtools @@ -120,15 +120,15 @@ MENU_HEIGHT_MIN=$(xdpyinfo | awk '/^ +dimensions/ {print $2}' | cut -d 'x' -f2) mkconfigfile cat < ${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,$OSNAME $OSVERSION $OSCODE -@text,,70,30,200,20,4,left,top,#666666,#444444,Jądro: $KERNEL $HOSTTYPE -@text,,70,50,200,20,4,left,top,#666666,#444444,$USER@$HOSTNAME +@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,$OSNAME $OSVERSION $OSCODE +@text,,10,30,200,20,4,left,top,#666666,#444444,Jądro: $KERNEL $HOSTTYPE +@text,,10,50,200,20,4,left,top,#666666,#444444,$USER@$HOSTNAME #@rect,,40,70,262,20,0,left,top,#666666,#262626, -@text,,44,70,20,20,0,left,top,auto,#222222, -@search,,60,70,292,20,4,left,top,auto,#262626,""" pisz, aby wyszukać""" - +@text,,14,70,20,20,0,left,top,auto,#222222, +@search,,30,70,292,20,4,left,top,auto,#262626,""" pisz, aby wyszukać""" +. $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 < ${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 < ${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)) diff --git a/bin/places b/bin/places index 0e8a002..dae0a40 100755 --- a/bin/places +++ b/bin/places @@ -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(${path})" +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}"