glyphicons

This commit is contained in:
2026-04-12 16:20:51 +02:00
parent 169f1713c5
commit eb758ac162
5 changed files with 111 additions and 113 deletions

View File

@@ -582,6 +582,7 @@ languages () {
}
single () {
. /usr/share/mb-jgtools/glyphicons.inc
unset NOT_SUPPORTED OLD_SYNTAX
SYSSCHEMES="/usr/share/mabox-colorizer/colorschemes/conky.csv"
@@ -687,7 +688,7 @@ if [[ "$OLD_SYNTAX" = "true" ]];then
#out+=("^sep($POSITION)")
out2+=("^tag(position)")
out2+=("^sep($POSITION)")
out2+=("<big></big> $MARKNEWPOS,conkyctl setpos ${1};$me")
out2+=("<big>󰆞</big> $MARKNEWPOS,conkyctl setpos ${1};$me")
#out2+=("^sep()")
out2+=("^sep($ALIGNMENT)")
out2+=("<big></big> $TOPLEFT,conkyctl pos top_left ${1};$me")
@@ -770,7 +771,7 @@ if [[ "$OLD_SYNTAX" = "true" ]];then
if [ "${#favfonts[@]}" -gt 0 ];then
out2+=("^sep($FONTFAMILY_LBL)")
for fon in "${favfonts[@]}";do
[[ "$fon" == "$font_name" ]] && out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar 'font_name=\"${fon}\"' $Q_CFG;conkyctl restartone ${1}")
[[ "$fon" == "$font_name" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar 'font_name=\"${fon}\"' $Q_CFG;conkyctl restartone ${1}")
done
fi
fi
@@ -845,7 +846,7 @@ if [[ "${WINCLASS}" != *"nobg"* ]];then
out+=("<small><span bgcolor='$WINCLR'> transparent </span></small> $BACKGROUND,^pipe(mbclr '$WINCLR' conkyctl win_bgcolor '${BACKGROUND}' '$me' ${1})")
fi
fi
[[ "$WINTRANS" == false ]] && out+=("<big>󰄱</big> $TRANSPARENT,conkyctl transparent true ${1}") || out+=("<big>󰄲</big> $TRANSPARENT,conkyctl transparent false ${1}")
[[ "$WINTRANS" == false ]] && out+=("<big>${cboff}</big> $TRANSPARENT,conkyctl transparent true ${1}") || out+=("<big>${cbon}</big> $TRANSPARENT,conkyctl transparent false ${1}")
out+=("^sep()")
if [[ "$1" != *"logo_mbcolor"* ]]; then
@@ -899,15 +900,15 @@ read SIZE <<< "$(grep minimum_height ${1} | cut -d'=' -f2 | cut -d"," -f1)"
. ~/.config/mabox/mabox.conf
#notify-send.sh "Colors" "${logo_in_color} ${logo_in_opacity}\n${logo_out_color} ${logo_out_opacity}"
out+=("^sep($_VARIANT_AND_SIZE)")
[[ "${TYP}" == *"3d"* ]] && out+=("<big></big> <b>$_3D</b>,mabox-logo type 3d") || out+=("<big></big> $_3D,mabox-logo type 3d")
[[ "${TYP}" == *"square"* ]] && out+=("<big></big> <b>$_SQUARE</b>,mabox-logo type square") || out+=("<big></big> $_SQUARE,mabox-logo type square")
[[ "${TYP}" == *"circle"* ]] && out+=("<big></big> <b>$_CIRCLE</b>,mabox-logo type circle") || out+=("<big></big> $_CIRCLE,mabox-logo type circle")
[[ "${TYP}" == *"3d"* ]] && out+=("<big>${ron}</big> <b>$_3D</b>,mabox-logo type 3d") || out+=("<big>${roff}</big> $_3D,mabox-logo type 3d")
[[ "${TYP}" == *"square"* ]] && out+=("<big>${ron}</big> <b>$_SQUARE</b>,mabox-logo type square") || out+=("<big>${roff}</big> $_SQUARE,mabox-logo type square")
[[ "${TYP}" == *"circle"* ]] && out+=("<big>${ron}</big> <b>$_CIRCLE</b>,mabox-logo type circle") || out+=("<big>${roff}</big> $_CIRCLE,mabox-logo type circle")
out+=("^sep()")
out+=("$_LOGOSIZE [ <b>${SIZE}</b>x<b>${SIZE}</b> ],^checkout(logosize)")
out2+=("^tag(logosize)")
out2+=("^sep($_LOGOSIZE (px))")
for s in 32 48 64 96 128 256 512;do
[[ "${SIZE}" == "${s}" ]] && out2+=("<big></big> <b>${s}</b>,mabox-logo size ${s}") || out2+=("<big></big> ${s},mabox-logo size ${s}")
[[ "${SIZE}" == "${s}" ]] && out2+=("<big>${ron}</big> <b>${s}</b>,mabox-logo size ${s}") || out2+=("<big>${roff}</big> ${s},mabox-logo size ${s}")
done
out+=("^sep($_COLORS)")
out+=("<span bgcolor='#32B557'> </span><span bgcolor='${logo_in_color}'> </span> $_INNER_COLOR,^pipe(mbclr '${logo_in_color}' mabox-logo ic '$_INNER_COLOR')")
@@ -926,13 +927,13 @@ read SIZE <<< "$(grep minimum_height ${1} | cut -d'=' -f2 | cut -d"," -f1)"
out2+=("^tag(iopa)")
out2+=("^sep($_INNER_OPACITY)")
for o in 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0;do
[[ "${logo_in_opacity}" == "$o" ]] && out2+=("<big></big> <b>${o}</b>,mabox-logo io ${o}") || out2+=("<big></big> ${o},mabox-logo io ${o}")
[[ "${logo_in_opacity}" == "$o" ]] && out2+=("<big>${ron}</big> <b>${o}</b>,mabox-logo io ${o}") || out2+=("<big>${roff}</big> ${o},mabox-logo io ${o}")
done
out+=("<span bgcolor='${logo_out_color}'> </span> $_OUTER_OPACITY [ <b>${logo_out_opacity}</b> ],^checkout(oopa)")
out2+=("^tag(oopa)")
out2+=("^sep($_OUTER_OPACITY)")
for o in 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0;do
[[ "${logo_out_opacity}" == "$o" ]] && out2+=("<big></big> <b>${o}</b>,mabox-logo oo ${o}") || out2+=("<big></big> ${o},mabox-logo oo ${o}")
[[ "${logo_out_opacity}" == "$o" ]] && out2+=("<big>${ron}</big> <b>${o}</b>,mabox-logo oo ${o}") || out2+=("<big>${roff}</big> ${o},mabox-logo oo ${o}")
done
fi # END LOGO SVG
@@ -972,19 +973,19 @@ read DCOLOR <<< "$(grep color9 ${1} | cut -d'=' -f2 | cut -d"'" -f2)"
read TCOLOR <<< "$(grep color8 ${1} | cut -d'=' -f2 | cut -d"'" -f2)"
#out+=("\"\"\"<big>󱑀</big> _TIMEFORMAT [ <b>${TIMEFORMAT}</b> ]\"\"\"")
[[ "${TIMEFORMAT}" == "%H:%M" ]] && out+=("<big></big> <b>$(date +%H:%M)</b> <small>( %H:%M )</small>") || out+=("<big></big> <b>$(date +%H:%M)</b> <small>( %H:%M )</small>,conkyctl bc_tformat \"%H:%M\"")
[[ "${TIMEFORMAT}" == "%H:%M:%S" ]] && out+=("<big></big> <b>$(date +%H:%M:%S)</b> <small>( %H:%M:%S )</small>") || out+=("<big></big> <b>$(date +%H:%M:%S)</b> <small>( %H:%M:%S )</small>,conkyctl bc_tformat \"%H:%M:%S\"")
[[ "${TIMEFORMAT}" == "%I:%M %p" ]] && out+=("<big></big> <b>$(date +"%I:%M %p")</b> <small>( %I:%M %p )</small>") || out+=("<big></big> <b>$(date +"%I:%M %p")</b> <small>( %I:%M %p )</small>,conkyctl bc_tformat \"%I:%M %p\"")
[[ "${TIMEFORMAT}" == "%-I:%M %p" ]] && out+=("<big></big> <b>$(date +"%-I:%M %p")</b> <small>( %-I:%M %p )</small>") || out+=("<big></big> <b>$(date +"%-I:%M %p")</b> <small>( %-I:%M %p )</small>,conkyctl bc_tformat \"%-I:%M %p\"")
[[ "${TIMEFORMAT}" == "%H:%M (%a)" ]] && out+=("<big></big> <b>$(date +"%H:%M (%a)")</b> <small>( %H:%M (%a) )</small>") || out+=("<big></big> <b>$(date +"%H:%M (%a)")</b> <small>( %H:%M (%a) )</small>,conkyctl bc_tformat \"%H:%M (%a)\"")
[[ "${TIMEFORMAT}" == "%H:%M" ]] && out+=("<big>${ron}</big> <b>$(date +%H:%M)</b> <small>( %H:%M )</small>") || out+=("<big>${roff}</big> <b>$(date +%H:%M)</b> <small>( %H:%M )</small>,conkyctl bc_tformat \"%H:%M\"")
[[ "${TIMEFORMAT}" == "%H:%M:%S" ]] && out+=("<big>${ron}</big> <b>$(date +%H:%M:%S)</b> <small>( %H:%M:%S )</small>") || out+=("<big>${roff}</big> <b>$(date +%H:%M:%S)</b> <small>( %H:%M:%S )</small>,conkyctl bc_tformat \"%H:%M:%S\"")
[[ "${TIMEFORMAT}" == "%I:%M %p" ]] && out+=("<big>${ron}</big> <b>$(date +"%I:%M %p")</b> <small>( %I:%M %p )</small>") || out+=("<big>${roff}</big> <b>$(date +"%I:%M %p")</b> <small>( %I:%M %p )</small>,conkyctl bc_tformat \"%I:%M %p\"")
[[ "${TIMEFORMAT}" == "%-I:%M %p" ]] && out+=("<big>${ron}</big> <b>$(date +"%-I:%M %p")</b> <small>( %-I:%M %p )</small>") || out+=("<big>${roff}</big> <b>$(date +"%-I:%M %p")</b> <small>( %-I:%M %p )</small>,conkyctl bc_tformat \"%-I:%M %p\"")
[[ "${TIMEFORMAT}" == "%H:%M (%a)" ]] && out+=("<big>${ron}</big> <b>$(date +"%H:%M (%a)")</b> <small>( %H:%M (%a) )</small>") || out+=("<big>${roff}</big> <b>$(date +"%H:%M (%a)")</b> <small>( %H:%M (%a) )</small>,conkyctl bc_tformat \"%H:%M (%a)\"")
out+=("^sep()")
[[ -f "${CONKYDIR}/menuscripts/.seconds" ]] && out+=("<big>󰄲</big> $_SHOW_SECONDS,rm ${CONKYDIR}/menuscripts/.seconds") || out+=("<big>󰄱</big> $_SHOW_SECONDS,touch ${CONKYDIR}/menuscripts/.seconds")
[[ -f "${CONKYDIR}/menuscripts/.seconds" ]] && out+=("<big>${cbon}</big> $_SHOW_SECONDS,rm ${CONKYDIR}/menuscripts/.seconds") || out+=("<big>${cboff}</big> $_SHOW_SECONDS,touch ${CONKYDIR}/menuscripts/.seconds")
out+=("^sep()")
out+=("<big></big> <span font='${FONTTIME}'>${FONTTIME} ${FSTIME}</span>,^checkout(ftime)")
out2+=("^tag(ftime)")
out2+=("^sep($_FONT_TIME)")
for si in 128 96 64 48 32;do
[[ "${FSTIME}" == "$si" ]] && out2+=("<big></big> <b>${si} px</b>") || out2+=("<big></big> ${si} px,conkyctl bc_fstime ${si}")
[[ "${FSTIME}" == "$si" ]] && out2+=("<big>${ron}</big> <b>${si} px</b>") || out2+=("<big>${roff}</big> ${si} px,conkyctl bc_fstime ${si}")
done
out2+=("^sep()")
@@ -996,35 +997,35 @@ else
fi
if [ "${#favfonts[@]}" -gt 0 ];then
for fon in "${favfonts[@]}";do
[[ "$fon" == "${FONTTIME}" ]] && out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,conkyctl bc_ftime \"${fon}\"")
[[ "$fon" == "${FONTTIME}" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,conkyctl bc_ftime \"${fon}\"")
done
fi
out+=("^sep()")
out+=("<span bgcolor='$TCOLOR'> </span> $_TIMECOLOR,^pipe(mbclr '$TCOLOR' conkyctl color8 '$_TIMECOLOR' '$me' ${1})")
out+=("^sep($_DATE)")
[[ -f "${CONKYDIR}/menuscripts/.date" ]] && out+=("<big>󰄲</big> $_SHOW_DATE,rm ${CONKYDIR}/menuscripts/.date") || out+=("<big>󰄱</big> $_SHOW_DATE,touch ${CONKYDIR}/menuscripts/.date")
[[ -f "${CONKYDIR}/menuscripts/.date" ]] && out+=("<big>${cbon}</big> $_SHOW_DATE,rm ${CONKYDIR}/menuscripts/.date") || out+=("<big>${cboff}</big> $_SHOW_DATE,touch ${CONKYDIR}/menuscripts/.date")
if [[ -f "${CONKYDIR}/menuscripts/.date" ]];then
out+=("^sep()")
#out+=("\"\"\"_DATEFORMAT [ <b>${DATEFORMAT}</b> ]\"\"\"")
[[ "${DATEFORMAT}" == "%A, %B %e" ]] && out+=("\"\"\"<big></big> <b>$(date "+%A, %B %e")</b> <small>( %A, %B %e )</small>\"\"\"") || out+=("\"\"\"<big></big> <b>$(date "+%A, %B %e")</b> <small>( %A, %B %e )</small>\"\"\",\"\"\"conkyctl bc_dformat '%A, %B %e'\"\"\"")
[[ "${DATEFORMAT}" == "%A %e %B" ]] && out+=("<big></big> <b>$(date "+%A %e %B")</b> <small>( %A %e %B )</small>") || out+=("<big></big> <b>$(date "+%A %e %B")</b> <small>( %A %e %B )</small>,conkyctl bc_dformat '%A %e %B'")
[[ "${DATEFORMAT}" == "%a %e %b" ]] && out+=("<big></big> <b>$(date "+%a %e %b")</b> <small>( %a %e %b )</small>") || out+=("<big></big> <b>$(date "+%a %e %b")</b> <small>( %a %e %b )</small>,conkyctl bc_dformat '%a %e %b'")
[[ "${DATEFORMAT}" == "%F" ]] && out+=("\"\"\"<big></big> <b>$(date "+%F")</b> <small>( %F )</small>\"\"\"") || out+=("<big></big> <b>$(date "+%F")</b> <small>( %F )</small>,conkyctl bc_dformat \"%F\"")
[[ "${DATEFORMAT}" == "%x" ]] && out+=("\"\"\"<big></big> <b>$(date "+%x")</b> <small>( %x )</small>\"\"\"") || out+=("<big></big> <b>$(date "+%x")</b> <small>( %x )</small>,conkyctl bc_dformat \"%x\"")
[[ "${DATEFORMAT}" == "%m-%d-%Y" ]] && out+=("\"\"\"<big></big> <b>$(date "+%m-%d-%Y")</b> <small>( %m-%d-%Y )</small>\"\"\"") || out+=("<big></big> <b>$(date "+%m-%d-%Y")</b> <small>( %m-%d-%Y )</small>,conkyctl bc_dformat \"%m-%d-%Y\"")
[[ "${DATEFORMAT}" == "%A, %B %e" ]] && out+=("\"\"\"<big>${ron}</big> <b>$(date "+%A, %B %e")</b> <small>( %A, %B %e )</small>\"\"\"") || out+=("\"\"\"<big>${roff}</big> <b>$(date "+%A, %B %e")</b> <small>( %A, %B %e )</small>\"\"\",\"\"\"conkyctl bc_dformat '%A, %B %e'\"\"\"")
[[ "${DATEFORMAT}" == "%A %e %B" ]] && out+=("<big>${ron}</big> <b>$(date "+%A %e %B")</b> <small>( %A %e %B )</small>") || out+=("<big>${roff}</big> <b>$(date "+%A %e %B")</b> <small>( %A %e %B )</small>,conkyctl bc_dformat '%A %e %B'")
[[ "${DATEFORMAT}" == "%a %e %b" ]] && out+=("<big>${ron}</big> <b>$(date "+%a %e %b")</b> <small>( %a %e %b )</small>") || out+=("<big>${roff}</big> <b>$(date "+%a %e %b")</b> <small>( %a %e %b )</small>,conkyctl bc_dformat '%a %e %b'")
[[ "${DATEFORMAT}" == "%F" ]] && out+=("\"\"\"<big>${ron}</big> <b>$(date "+%F")</b> <small>( %F )</small>\"\"\"") || out+=("<big>${roff}</big> <b>$(date "+%F")</b> <small>( %F )</small>,conkyctl bc_dformat \"%F\"")
[[ "${DATEFORMAT}" == "%x" ]] && out+=("\"\"\"<big>${ron}</big> <b>$(date "+%x")</b> <small>( %x )</small>\"\"\"") || out+=("<big>${roff}</big> <b>$(date "+%x")</b> <small>( %x )</small>,conkyctl bc_dformat \"%x\"")
[[ "${DATEFORMAT}" == "%m-%d-%Y" ]] && out+=("\"\"\"<big>${ron}</big> <b>$(date "+%m-%d-%Y")</b> <small>( %m-%d-%Y )</small>\"\"\"") || out+=("<big>${roff}</big> <b>$(date "+%m-%d-%Y")</b> <small>( %m-%d-%Y )</small>,conkyctl bc_dformat \"%m-%d-%Y\"")
out+=("^sep()")
out+=("<big></big> <span font_family='${FONTDATE}'>${FONTDATE} ${FSDATE}</span>,^checkout(fdate)")
out2+=("^tag(fdate)")
out2+=("^sep($_FONT_DATE)")
for si in 32 24 20 16 12 10;do
[[ "${FSDATE}" == "$si" ]] && out2+=("<big></big> <b>${si} px</b>") || out2+=("<big></big> ${si} px,conkyctl bc_fsdate ${si}")
[[ "${FSDATE}" == "$si" ]] && out2+=("<big>${ron}</big> <b>${si} px</b>") || out2+=("<big>${roff}</big> ${si} px,conkyctl bc_fsdate ${si}")
done
out2+=("^sep()")
if [ "${#favfonts[@]}" -gt 0 ];then
for fon in "${favfonts[@]}";do
[[ "$fon" == "${FONTDATE}" ]] && out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,conkyctl bc_fdate \"${fon}\"")
[[ "$fon" == "${FONTDATE}" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,conkyctl bc_fdate \"${fon}\"")
done
fi
out+=("^sep()")
@@ -1048,7 +1049,7 @@ if [[ "$FONT" != "" ]];then
sizes=(12 11 10 9 8 )
for i in "${sizes[@]}"
do
[[ "$FONTSIZE" == "$i" ]] && out2+=("<big></big> <b>$i px</b>,conkyctl basefont_size ${1} $i;$me") || out2+=("<big></big> $i px,conkyctl basefont_size ${1} $i;$me")
[[ "$FONTSIZE" == "$i" ]] && out2+=("<big>${ron}</big> <b>$i px</b>,conkyctl basefont_size ${1} $i;$me") || out2+=("<big>${roff}</big> $i px,conkyctl basefont_size ${1} $i;$me")
done
if [ -f "$HOME/.config/mabox/fonts.list" ];then
@@ -1061,33 +1062,33 @@ if [[ "$FONT" != "" ]];then
if [ "${#favfonts[@]}" -gt 0 ];then
out2+=("^sep($FONTFAMILY_LBL)")
for fon in "${favfonts[@]}";do
[[ "$FONT" == "$fon" ]] && out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big></big> <span font_family=\"${fon}\">${fon}</span>,conkyctl basefont_family ${1} \"${fon}\";$me")
[[ "$FONT" == "$fon" ]] && out2+=("<big>${ron}</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>${roff}</big> <span font_family=\"${fon}\">${fon}</span>,conkyctl basefont_family ${1} \"${fon}\";$me")
done
fi
out2+=("^sep()")
out2+=("<small> $_EDIT_FAVFONTS</small>,geany ~/.config/mabox/fonts.list")
fi
[[ "$SHADOWS" == "shadow" ]] && out+=("<big>󰄲</big> $SHADOW,conkyctl shades no ${1};$me") || out+=("<big>󰄱</big> $SHADOW,conkyctl shades shadow ${1};$me")
[[ "$SHADOWS" == "outline" ]] && out+=("<big>󰄲</big> $OLINE,conkyctl shades no ${1};$me") || out+=("<big>󰄱</big> $OLINE,conkyctl shades outline ${1};$me")
[[ "$SHADOWS" == "shadow" ]] && out+=("<big>${cbon}</big> $SHADOW,conkyctl shades no ${1};$me") || out+=("<big>${cboff}</big> $SHADOW,conkyctl shades shadow ${1};$me")
[[ "$SHADOWS" == "outline" ]] && out+=("<big>${cbon}</big> $OLINE,conkyctl shades no ${1};$me") || out+=("<big>${cboff}</big> $OLINE,conkyctl shades outline ${1};$me")
#out+=("^sep()")
fi
[[ "$BORD" == false ]] && out+=("<big>󰄱</big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(bordersingle)") || out+=("<big>󰄲</big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(bordersingle)")
[[ "$BORD" == false ]] && out+=("<big>${cboff}</big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(bordersingle)") || out+=("<big>${cbon}</big> $BORDERS [ <b>$BWIDTH px</b> ],^checkout(bordersingle)")
out2+=("^tag(bordersingle)")
out2+=("^sep($DRAW $BORDERS?)")
[[ "$BORD" == false ]] && out2+=("<big></big> $YES,conkyctl draw_borders true ${1};$me") || out2+=("<big></big> $YES,conkyctl draw_borders false ${1};$me")
[[ "$BORD" == false ]] && out2+=("<big></big> $NO,conkyctl draw_borders true ${1};$me") || out2+=("<big></big> $NO,conkyctl draw_borders false ${1};$me")
[[ "$BORD" == false ]] && out2+=("<big>${roff}</big> $YES,conkyctl draw_borders true ${1};$me") || out2+=("<big>${ron}</big> $YES,conkyctl draw_borders false ${1};$me")
[[ "$BORD" == false ]] && out2+=("<big>${ron}</big> $NO,conkyctl draw_borders true ${1};$me") || out2+=("<big>${roff}</big> $NO,conkyctl draw_borders false ${1};$me")
out2+=("^sep($_BORDER_WIDTH)")
[[ "${BWIDTH}" == "1" ]] && out2+=("<big></big> <b>1 px</b> ${_OLD_STYLE}") || out2+=("<big></big> 1 px ${_OLD_STYLE},conkyctl border_width 1 ${1}")
[[ "${BWIDTH}" == "1" ]] && out2+=("<big>${ron}</big> <b>1 px</b> ${_OLD_STYLE}") || out2+=("<big>${roff}</big> 1 px ${_OLD_STYLE},conkyctl border_width 1 ${1}")
for i in 2 4 6 8 10;do
[[ "${BWIDTH}" == "${i}" ]] && out2+=("<big></big> <b>${i} px</b>") || out2+=("<big></big> ${i} px,conkyctl border_width ${i} ${1}")
[[ "${BWIDTH}" == "${i}" ]] && out2+=("<big>${ron}</big> <b>${i} px</b>") || out2+=("<big>${roff}</big> ${i} px,conkyctl border_width ${i} ${1}")
done
out2+=("^sep($STIPPLED_BORDERS ?)")
[[ "${STIP}" == "0" ]] && out2+=("<big></big> <b>0 ($SOLID_LINE)</b>") || out2+=("<big></big> 0 ($SOLID_LINE),conkyctl stippled_borders 0 ${1};$me")
[[ "${STIP}" == "0" ]] && out2+=("<big>${ron}</big> <b>0 ($SOLID_LINE)</b>") || out2+=("<big>${roff}</big> 0 ($SOLID_LINE),conkyctl stippled_borders 0 ${1};$me")
out2+=("^sep()")
for st in 1 2 3 4;do
[[ "${STIP}" == "${st}" ]] && out2+=("<big></big> <b>${st} px</b>") || out2+=("<big></big> ${st} px,conkyctl stippled_borders ${st} ${1};$me")
[[ "${STIP}" == "${st}" ]] && out2+=("<big>${ron}</big> <b>${st} px</b>") || out2+=("<big>${roff}</big> ${st} px,conkyctl stippled_borders ${st} ${1};$me")
done
fi
fi #OLD SYNTAX CHECK
@@ -1095,7 +1096,7 @@ fi #OLD SYNTAX CHECK
if [[ "${conky_basicmode}" != "on" ]];then
out+=("^sep($_ACTIONS)")
out+=(" $EDIT ${title^},xdg-open ${1}")
out+=(" $RELOAD ${title^},conkyctl restartone ${1}")
out+=("󰑤 $RELOAD ${title^},conkyctl restartone ${1}")
fi
}
@@ -1108,8 +1109,8 @@ pipemenu () {
}
contextmenu () {
source "$HOME/.config/mabox/mabox.conf"
. /usr/share/mb-jgtools/jgtools.inc
if [[ "$conky_rightclick" == "off" ]];then
exit 0
fi
@@ -1167,8 +1168,7 @@ contextmenu () {
#notify-send.sh -t 0 "Window" "z xdotool: ${WINDOW} \n X $X \n Y $Y \n hexid: $hexid \n $CONKYCFG \n ${WINCLR}\n ${name}\n $HOME/.config/mabox/${name}.csv"
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
. $HOME/.config/mabox/mabox.conf
CONFIG_FILE=$(mktemp)
MENU_ITEMS=$(mktemp)
trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT