conky tweaks

This commit is contained in:
2026-04-01 19:40:10 +02:00
parent bcb4e858f6
commit b18a2874f2
4 changed files with 11 additions and 12 deletions

View File

@@ -60,7 +60,7 @@ border_width () {
imargin=8
else
omargin=$((${1} / 2 ))
imargin=$((16 - $omargin))
imargin=$((10 - $omargin))
fi
#notify-send.sh "Margins" "outer = ${omargin}, inner = ${imargin}"
sd "border_outer_margin.*$" "border_outer_margin = ${omargin}," ${2}
@@ -73,7 +73,7 @@ border_width_all () {
imargin=8
else
omargin=$((${1} / 2 ))
imargin=$((16 - $omargin))
imargin=$((10 - $omargin))
fi
sd "border_outer_margin.*$" "border_outer_margin = ${omargin}," ${CONKYDIR}/*mbcolor.conkyrc
sd "border_inner_margin.*$" "border_inner_margin = ${imargin}," ${CONKYDIR}/*mbcolor.conkyrc
@@ -1045,7 +1045,7 @@ if [[ "$FONT" != "" ]];then
out2+=("<big>󰧴</big> $INCREASE <b>$((FONTSIZE+1)) px</b>,conkyctl basefont_inc ${1};$me")
out2+=("<big>󰧳</big> $DECREASE <b>$((FONTSIZE-1)) px</b>,conkyctl basefont_dec ${1};$me")
out2+=("^sep()")
sizes=(14 13 12 11 10 9 8 7 6)
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")
@@ -1080,7 +1080,7 @@ if [[ "$FONT" != "" ]];then
[[ "$BORD" == false ]] && out2+=("<big>綠</big> $NO,conkyctl draw_borders true ${1};$me") || out2+=("<big>祿</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}")
for i in 2 4 6 8 10 12;do
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}")
done
out2+=("^sep($STIPPLED_BORDERS ?)")