From 9bc270ac974fdd125e12cad31cebbb034aa0bff7 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Mon, 1 Feb 2021 10:58:12 +0100 Subject: [PATCH] fixes for standalone pipemenus --- usr/bin/jgtint2launcher | 4 +++- usr/bin/pipemenu-standalone.cfg | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/usr/bin/jgtint2launcher b/usr/bin/jgtint2launcher index 560c421..0bfa62d 100755 --- a/usr/bin/jgtint2launcher +++ b/usr/bin/jgtint2launcher @@ -44,7 +44,8 @@ for item in "$LAUNCHERDIR"/*.desktop; do if [[ -f $item ]]; then ((a++)) filename=${item##*/} -out+=("$DEL ${filename%.*},rm $item;killall -SIGUSR1 tint2;jgtint2launcher") +filename=${filename^} +out+=("$DEL ${filename%.*},rm $item;killall -SIGUSR1 tint2;jgtint2launcher") fi done if [[ $a -gt 1 ]]; then @@ -57,6 +58,7 @@ out+=(" $OPENDIR (/usr/share/applications),${JGMENU_RESOURCE_OPENER} $ out+=("^sep()") for item in "$APPSDIR"/*.desktop; do filename=${item##*/} +filename=${filename^} out+=("$ADD ${filename%.*},cp \"$item\" $LAUNCHERDIR;killall -SIGUSR1 tint2;jgtint2launcher") done ### RUN diff --git a/usr/bin/pipemenu-standalone.cfg b/usr/bin/pipemenu-standalone.cfg index 96ac678..acd8694 100644 --- a/usr/bin/pipemenu-standalone.cfg +++ b/usr/bin/pipemenu-standalone.cfg @@ -47,9 +47,9 @@ menu_width = $JGWIDTH menu_height_min = ${MENU_HEIGHT_MIN:-0} menu_height_max = ${MENU_HEIGHT_MAX:-0} menu_padding_top = ${MENU_PADDING_TOP:-70} -menu_padding_right = ${MENU_PADDING_RIGHT:-2} -menu_padding_bottom = ${MENU_PADDING_BOTTOM:-2} -menu_padding_left = ${MENU_PADDING_LEFT:-2} +menu_padding_right = ${jgtools_padding:-0} +menu_padding_bottom = ${jgtools_padding:-0} +menu_padding_left = ${jgtools_padding:-0} menu_radius = ${MENU_RADIUS:-0} menu_valign = ${MENU_VALIGN:-top} menu_halign = ${MENU_HALIGN:-left}