From aa364882b89d75a626802657b0cfe8f8e5ce470a Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Fri, 17 Apr 2026 17:05:44 +0200 Subject: [PATCH] update --- usr/bin/jgtint2-pipe | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/usr/bin/jgtint2-pipe b/usr/bin/jgtint2-pipe index da8286b..bb423b2 100755 --- a/usr/bin/jgtint2-pipe +++ b/usr/bin/jgtint2-pipe @@ -24,6 +24,7 @@ case $LANG in TITLE="Konfiguracja Panelu" PANEL="Panel" _FLOATING_PANEL="Pływający panel" + _LOGO="Kolorowalne Logo" POSITION="Pozycja" SIZE="Rozmiar" WIDTH="Szerokość" @@ -109,6 +110,7 @@ case $LANG in TITLE="Panel Tint2" PANEL="Panel" _FLOATING_PANEL="Floating panel" + _LOGO="Colorable Logo" POSITION="Position" SIZE="Size" WIDTH="Width" @@ -195,6 +197,7 @@ case $LANG in TITLE="Configure Panel" PANEL="Panel" _FLOATING_PANEL="Floating panel" + _LOGO="Colorable Logo" POSITION="Position" SIZE="Size" WIDTH="Width" @@ -289,7 +292,11 @@ getvalues () { } qactions () { - [[ "$HOR" -gt 1 ]] && out+=("${cbon} $_FLOATING_PANEL,t2ctl postype edge ${TINT};$me") || out+=("${cboff} $_FLOATING_PANEL,t2ctl postype float ${TINT};$me") + if grep "icons/mabox-logo-" ${TINT} 2>/dev/null ;then + read LOGO <<< "$(grep icons/mabox-logo- ${TINT} | cut -d'/' -f3)" + [[ "${LOGO}" == "mabox-logo-square.svg" ]] && out+=("${cbon} $_LOGO,t2ctl logo default ${TINT};$me") || out+=("${cboff} $_LOGO,t2ctl logo color ${TINT};$me") + fi + [[ "$HOR" -gt 1 ]] && out+=("${cbon} $_FLOATING_PANEL,t2ctl postype edge ${TINT};$me") || out+=("${cboff} $_FLOATING_PANEL,t2ctl postype float ${TINT};$me") #out+=("$(printf "%-20s %20s" "$POSITION" "[ $VE $HO ]"),^checkout(ppos$i)") #out+=("$(printf "%-20s %20s" "$SIZE" "[ $W ]"),^checkout(pwidth$i)") #out+=("$(printf "%-20s %20s" "$WIDTH" "[ $H ]"),^checkout(pheight$i)") @@ -521,7 +528,7 @@ qactions () { out2+=("") out2+=("^tag(pheight$i)") out2+=("^sep($WIDTH)") - heights=(24 28 32 36 40 48) + heights=(24 28 32 36 40 44 48) for hi in "${heights[@]}" do [[ "$H" == "$hi" ]] && out2+=("${ron} $hi px,t2ctl height $hi ${TINT};$me") || out2+=("${roff} $hi px,t2ctl height $hi ${TINT};$me")