mabox-colorizer/bin/colorizer-conky

428 lines
16 KiB
Plaintext
Raw Normal View History

2022-05-15 03:25:01 +02:00
#!/bin/bash
#
# colorizer - set of tools for Mabox (auto)theming
# Copyright (C) 2022-2023 Daniel Napora <napcok@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
2022-05-15 03:25:01 +02:00
me="colorizer-conky -s"
CONKYDIR="$HOME/.config/conky"
BASECONKY="$CONKYDIR/sysinfo_mbcolor.conkyrc"
2022-12-03 16:23:34 +01:00
COLORIZERDIR="$HOME/.config/colorizer"
CONKYTHEMEDIR="$COLORIZERDIR/conky/themes"
if [ ! -d "$CONKYTHEMEDIR" ];then
mkdir -p "$CONKYTHEMEDIR"
rsync -a /usr/share/mabox-colorizer/themes/conky/* ${CONKYTHEMEDIR}/
fi
2022-05-26 22:39:07 +02:00
LNG=${LANG:0:2}
2022-05-15 11:47:35 +02:00
if [ ! -f "${BASECONKY}" ]; then
2022-05-26 22:39:07 +02:00
if [ -d "/usr/share/mabox/lang/$LNG/.config/conky" ]; then
rsync -a /usr/share/mabox/lang/$LNG/.config/conky/* ${CONKYDIR}/
else
rsync -a /usr/share/mabox/lang/en/.config/conky/* ${CONKYDIR}/
fi
2022-05-15 03:25:01 +02:00
fi
2022-05-19 14:50:08 +02:00
CNF_DIR="$HOME/.config/colorizer/conky"
CNF_FILE="$CNF_DIR/conky.cfg"
[ ! -d "$CNF_DIR" ] && mkdir -p "$CNF_DIR"
if [ ! -f $CNF_FILE ]; then
cat <<EOF > ${CNF_FILE}
update_notifications=true
EOF
fi
2022-05-15 03:25:01 +02:00
case "$LANG" in
pl*)
2023-01-05 19:28:22 +01:00
COLORIZECONKY="Conky Manager"
2022-12-21 10:43:12 +01:00
NO_CONKY_RUNNING="Brak uruchomionych Conky"
RUN_CONKY_SESSION="Uruchom zapisaną sesję"
2022-12-08 17:48:55 +01:00
MOVEABLEALL="Ustaw wszystkie (<i>przeciągaj</i>)..."
2023-01-07 23:10:48 +01:00
NOT_FULLY_SUPPORTED="Częściowo wspierane..."
UNSUPPORTED="Conky - częściowo wspierane"
UNSUPPORTED_START="kliknij aby uruchomić"
GENERATEFROMWP="Generuj z kolorów tapety"
LIGHTBG="Jasne tło"
DARKBG="Ciemne tło"
2022-12-21 10:43:12 +01:00
GLOBALSETTINGS="Ustawienia globalne <small>(dla wszystkich)</small>"
2022-12-03 16:23:34 +01:00
REGENERATE="Motywy kolorów"
OPENTHEMEDIR="Otwórz katalog motywów"
APPLY_THEME="Zastosuj motyw"
2022-08-27 16:36:46 +02:00
DEFCOLOR="Domyślny kolor <small>(tekst i ramka)</small>"
COLOR_0="Kolor 0 <small>(tekst2)</small>"
COLOR_1="Kolor 1 <small>(większy tekst)</small>"
COLOR_2="Kolor 2 <small>(pasek/graf)</small>"
2022-08-20 20:51:56 +02:00
BACKGROUND="Kolor tła"
TRANSPARENT="Przezroczyste?"
YES="Tak"
NO="Nie"
FONTS="Czcionka"
SELECTFONT="Wybierz czcionkę..."
INCREASE="Powiększ"
DECREASE="Pomniejsz"
OLINE="Obrys"
SHADOW="Cień"
DRAW="Rysuj"
BORDERS="Obramowanie"
2022-08-27 16:36:46 +02:00
STIPPLED_BORDERS="Nakrapiane"
SOLID_LINE="linia ciągła"
2022-12-21 10:43:12 +01:00
RUNNING_CONKIES="Uruchomione Conky"
STOP_ALL="Zatrzymaj wszystkie"
2022-08-20 20:51:56 +02:00
MORECONKIES="Więcej Conky..."
CLICKTOSTART="Kliknij aby uruchomić"
STARTALL="Uruchom wszystkie"
RESET="Resetuj"
RESETALL="Resetuj wszystkie"
2022-10-17 14:48:35 +02:00
RESETCOLORS="Przywróć domyślne kolory"
2022-08-20 20:51:56 +02:00
AREYOUSURE="Czy aby napewno?"
;;
*)
2023-01-05 19:28:22 +01:00
COLORIZECONKY="Conky Manager"
2022-12-21 10:43:12 +01:00
NO_CONKY_RUNNING="No Conky running"
RUN_CONKY_SESSION="Run Conky session"
2022-12-03 16:23:34 +01:00
MOVEABLEALL="Make moveable all..."
2023-01-07 23:10:48 +01:00
NOT_FULLY_SUPPORTED="Partially supported"
UNSUPPORTED="partially supported Conkies"
UNSUPPORTED_START="click to start"
GENERATEFROMWP="Generate from wallpaper colors"
LIGHTBG="Light Background"
DARKBG="Dark Background"
2022-12-21 10:43:12 +01:00
GLOBALSETTINGS="Global settings <small>(apply to all)</small>"
2022-12-03 16:23:34 +01:00
REGENERATE="Color schemes"
OPENTHEMEDIR="Open schemes dir"
APPLY_THEME="Apply colorscheme"
2022-08-27 16:36:46 +02:00
DEFCOLOR="Default color <small>(text and border)</small>"
COLOR_0="Color 0 <small>(text2)</small>"
COLOR_1="Color 1 <small>(bigger text)</small>"
COLOR_2="Color 2 <small>(bars/graphs)</small>"
2022-08-20 20:51:56 +02:00
BACKGROUND="Background color"
TRANSPARENT="Transparent?"
YES="Yes"
NO="No"
FONTS="Font"
SELECTFONT="Select Font..."
INCREASE="Increase"
DECREASE="Decrease"
OLINE="Outline"
SHADOW="Shadow"
2022-08-27 16:36:46 +02:00
DRAW="Draw"
2022-08-20 20:51:56 +02:00
BORDERS="Borders"
2022-08-27 16:36:46 +02:00
STIPPLED_BORDERS="Stippled borders"
SOLID_LINE="solid line"
2022-12-21 10:43:12 +01:00
RUNNING_CONKIES="Running Conkys"
STOP_ALL="Stop All"
2022-08-20 20:51:56 +02:00
MORECONKIES="More Conkies Available"
2023-01-07 23:10:48 +01:00
CLICKTOSTART="...click to start"
2022-08-20 20:51:56 +02:00
STARTALL="Start all"
RESET="Reset"
RESETALL="Reset all to defaults"
2022-10-17 14:48:35 +02:00
RESETCOLORS="Restore default colors"
2022-08-20 20:51:56 +02:00
AREYOUSURE="Are you sure?"
;;
esac
2022-05-15 03:25:01 +02:00
getvalues () {
read WINTRANS <<< "$(grep own_window_transparent ${BASECONKY} | cut -d'=' -f2 | cut -d"," -f1)"
read FONTDEF <<< "$(grep "font .*=.*,$" ${BASECONKY} | cut -d'=' -f2,3 |cut -d"'" -f2)"
FONT=${FONTDEF%:*}
FONTSIZE=${FONTDEF#*=}
read WINCLR <<< "$(grep own_window_colour ${BASECONKY} | cut -d'=' -f2 | cut -d"'" -f2)"
[[ $WINCLR =~ ^#.* ]] && : || WINCLR="#${WINCLR}"
read CLR <<< "$(grep default_color ${BASECONKY} | cut -d'=' -f2 | cut -d"'" -f2)"
[[ $CLR =~ ^#.* ]] && : || CLR="#${CLR}"
read CLR0 <<< "$(grep color0 ${BASECONKY} | cut -d'=' -f2 | cut -d"'" -f2)"
[[ $CLR0 =~ ^#.* ]] && : || CLR0="#${CLR0}"
read CLR1 <<< "$(grep color1 ${BASECONKY} | cut -d'=' -f2 | cut -d"'" -f2)"
[[ $CLR1 =~ ^#.* ]] && : || CLR1="#${CLR1}"
read CLR2 <<< "$(grep color2 ${BASECONKY} | cut -d'=' -f2 | cut -d"'" -f2)"
[[ $CLR2 =~ ^#.* ]] && : || CLR2="#${CLR2}"
read OUTLINE <<< "$(grep draw_outline ${BASECONKY} | cut -d'=' -f2 | cut -d"," -f1)"
read SHADES <<< "$(grep draw_shades ${BASECONKY} | cut -d'=' -f2 | cut -d"," -f1)"
SHADOWS="no"
[[ "$OUTLINE" == "true" ]] && SHADOWS="outline"
[[ "$SHADES" == "true" ]] && SHADOWS="shadow"
2022-05-15 03:25:01 +02:00
read BORD <<< "$(grep draw_borders ${BASECONKY} | cut -d'=' -f2 | cut -d"," -f1)"
read STIP <<< "$(grep stippled_borders ${BASECONKY} | cut -d'=' -f2 | cut -d"," -f1)"
}
if pgrep -af "conky.*mbcolor" >/dev/null; then
getvalues
[[ "$WINTRANS" == false ]] && BG="bgcolor='$WINCLR'" || BG=""
2022-08-20 20:51:56 +02:00
out+=("^sep($COLORIZECONKY)")
2022-12-19 22:22:23 +01:00
out+=(" $MOVEABLEALL,conkyctl makemoveableall")
2022-12-21 10:43:12 +01:00
#while read -r pid b c confpath
#do
# filename=${confpath##*/}
# name=${filename%%_mb*}
# out+=("${name^},^pipe(conkyctl single ${confpath})")
#done < <(pgrep -af "conky.*mbcolor")
# array with running conkies - only filenames with full path
2023-01-05 19:28:22 +01:00
readarray -t running < <(pgrep -af "conky -c " | cut -d' ' -f4)
2022-12-21 10:43:12 +01:00
2023-01-07 23:10:48 +01:00
#array with all conkies found
#for i in "$CONKYDIR"/*.con* "$CONKYDIR"/**/*.con*; do
for i in "$CONKYDIR"/*.conkyrc "$CONKYDIR"/*.conf "$CONKYDIR"/**/*.conkyrc "$CONKYDIR"/**/*.conf; do
2023-01-05 19:42:32 +01:00
if [[ "$i" == *mbcolor* ]];then
supported+=("$i")
else
if [[ "$i" != *"/*"* ]];then
unsupported+=("$i")
fi
fi
2022-12-21 10:43:12 +01:00
done
#array with not started conkies
2023-01-05 19:28:22 +01:00
notstarted=($(echo ${running[@]} ${supported[@]} ${unsupported[@]} ${unsupported[@]}| tr ' ' '\n' | sort | uniq -u))
notstarted_unsupported=($(echo ${running[@]} ${supported[@]} ${supported[@]} ${unsupported[@]} | tr ' ' '\n' | sort | uniq -u))
2023-01-07 23:10:48 +01:00
RCONKIES="${#running[@]}"
NSCONKIES="${#notstarted[@]}"
ALLSUPP=$(($RCONKIES+$NSCONKIES))
#notify-send.sh "$ALLSUPP" "$RCONKIES $NSCONKIES"
2022-12-21 10:43:12 +01:00
if [[ ${#running[@]} > 0 ]];then
out+=("^sep($RUNNING_CONKIES)")
for c in ${running[@]};do
filename=${c##*/}
name=${filename%%_mb*}
2023-01-07 23:10:48 +01:00
name2=${name%%.con*}
title=${name2//_/ }
2022-12-21 10:43:12 +01:00
out+=("${title^},^pipe(conkyctl single ${c})")
done
out+=("^sep()")
out+=("$STOP_ALL (${#running[@]}),conky_toggle;sleep .5;$me")
2023-01-05 19:28:22 +01:00
fi
if [[ ${#notstarted[@]} > 0 ]];then
2023-01-07 23:10:48 +01:00
out+=("^sep($MORECONKIES)")
if [[ "$ALLSUPP" < 15 ]];then
2022-12-21 10:43:12 +01:00
out+=("^sep(<small><i>$CLICKTOSTART</i></small>)")
for c in ${notstarted[@]};do
2023-01-07 23:10:48 +01:00
filename=${c##*/}
name=${filename%%_mb*}
title=${name//_/ }
out+=("${title^},conkyctl startone ${c};$me")
2023-01-05 19:28:22 +01:00
done
2022-12-21 10:43:12 +01:00
if [[ ${#notstarted[@]} > 1 ]];then
out+=("^sep()")
out+=("$STARTALL (${#notstarted[@]}),conkyctl startall;$me")
2023-01-05 19:28:22 +01:00
fi
2023-05-09 14:14:23 +02:00
else # too many conkies not started -> show them in submenu
2023-01-07 23:10:48 +01:00
out+=("$CLICKTOSTART (${#notstarted[@]}),^checkout(nstarted)")
out2+=("^tag(nstarted)")
for c in ${notstarted[@]};do
filename=${c##*/}
name=${filename%%_mb*}
title=${name//_/ }
out2+=("${title^},conkyctl startone ${c};$me")
done
if [[ ${#notstarted[@]} > 1 ]];then
out2+=("^sep()")
out2+=("$STARTALL (${#notstarted[@]}),conkyctl startall;$me")
fi
fi
2023-01-05 19:28:22 +01:00
fi
if [[ ${#notstarted_unsupported[@]} > 0 ]];then
out+=("^sep()")
2023-01-07 23:10:48 +01:00
out+=("$NOT_FULLY_SUPPORTED (${#notstarted_unsupported[@]}),^checkout(unsup)")
2023-01-05 19:28:22 +01:00
out2+=("^tag(unsup)")
2023-01-07 23:10:48 +01:00
out2+=("^sep($UNSUPPORTED)")
out2+=("^sep($UNSUPPORTED_START)")
2023-01-05 19:28:22 +01:00
for c in ${notstarted_unsupported[@]};do
filename=${c##*/}
2023-01-07 23:10:48 +01:00
name=${filename%%.con*}
2023-01-05 19:28:22 +01:00
title=${name//_/ }
out2+=("${title^},conkyctl startone ${c};$me")
done
2022-12-21 10:43:12 +01:00
fi
2023-01-05 19:28:22 +01:00
2022-12-21 10:43:12 +01:00
#GLOBAL START
out+=("^sep($GLOBALSETTINGS)")
2023-05-09 14:14:23 +02:00
if [ "$WINTRANS" == false ];then
out+=("<small><span bgcolor='$WINCLR'> </span><span weight='bold' ${BG} fgcolor='$WINCLR'> AbCd </span></small> $BACKGROUND,^pipe(mbclr '$WINCLR' conkyctl win_bgcolor_all '${BACKGROUND}' '$me')")
else
out+=("<small><span bgcolor='$WINCLR'> transparent </span></small> $BACKGROUND,^pipe(mbclr '$WINCLR' conkyctl win_bgcolor_all '${BACKGROUND}' '$me')")
fi
out+=("$TRANSPARENT [ <b>$WINTRANS</b> ],^checkout(trans)")
out+=("^sep()")
out+=("<small><span bgcolor='$CLR'> </span><span weight='bold' ${BG} fgcolor='$CLR'> AbCd </span></small> $DEFCOLOR,^pipe(mbclr '$CLR' conkyctl default_color_all '${DEFCOLOR}' '$me')")
out+=("<small><span bgcolor='$CLR0'> </span><span weight='bold' ${BG} fgcolor='$CLR0'> AbCd </span></small> $COLOR_0,^pipe(mbclr '$CLR0' conkyctl color0_all '${COLOR_0}' '$me')")
out+=("<small><span bgcolor='$CLR1'> </span><span weight='bold' ${BG} fgcolor='$CLR1'> AbCd </span></small> $COLOR_1,^pipe(mbclr '$CLR1' conkyctl color1_all '${COLOR_1}' '$me')")
out+=("<small><span bgcolor='$CLR2'> </span><span weight='bold' ${BG} fgcolor='$CLR2'> AbCd </span></small> $COLOR_2,^pipe(mbclr '$CLR2' conkyctl color2_all '${COLOR_2}' '$me')")
#out+=("^sep()")
out2+=("^tag(trans)")
out2+=("^sep($TRANSPARENT)")
out2+=("$YES,conkyctl transparent_all true;$me")
out2+=("$NO,conkyctl transparent_all false;$me")
out+=("^sep()")
2022-12-03 16:23:34 +01:00
out+=("<span bgcolor='#282828'> <span fgcolor='#ebdbb2'></span> <span fgcolor='#98971a'></span> <span fgcolor='#d79921'></span> <span fgcolor='#cc241d'></span> </span> $REGENERATE,^checkout(regenconky)")
out2+=("^tag(regenconky)")
out2+=("^sep($REGENERATE)")
out2+=("^sep($GENERATEFROMWP)")
out2+=("$LIGHTBG,w2theme conky light;$me")
out2+=("$DARKBG,w2theme conky dark;$me")
out2+=("^sep($APPLY_THEME)")
for i in "${COLORIZERDIR}"/conky/themes/*.colors
do
source "${i}"
themefilename=${i##*/}
themename=${themefilename%%.col*}
out2+=("<span bgcolor='$own_window_colour'> <span fgcolor='$default_color'></span> <span fgcolor='$color0'></span> <span fgcolor='$color1'></span> <span fgcolor='$color2'></span> </span> $themename,conkyctl settheme_all $themefilename;$me")
done
out2+=("^sep()")
out2+=(" $OPENTHEMEDIR,xdg-open ${COLORIZERDIR}/conky/themes/")
2022-05-15 03:25:01 +02:00
out+=("^sep()")
2023-05-09 14:14:23 +02:00
2022-08-20 20:51:56 +02:00
out+=("$FONTS [ <b>$FONT $FONTSIZE</b> ],^checkout(font)")
2022-05-15 03:25:01 +02:00
out2+=("^tag(font)")
2022-08-20 20:51:56 +02:00
out2+=("^sep($FONTS)")
out2+=("$SELECTFONT,mb-setfont conky_all;$me")
2022-05-19 14:50:08 +02:00
out2+=("^sep()")
2022-08-20 20:51:56 +02:00
out2+=("<tt>++</tt> $INCREASE,conkyctl basefont_inc_all;$me")
out2+=("<tt>--</tt> $DECREASE,conkyctl basefont_dec_all;$me")
out+=("$OLINE/$SHADOW [ <b>$SHADOWS</b> ],^checkout(outline)")
out2+=("^tag(outline)")
2022-08-20 20:51:56 +02:00
out2+=("^sep($DRAW $OLINE/$SHADOW?)")
out2+=("$NO,conkyctl shades_all no;$me")
2022-05-15 03:25:01 +02:00
out2+=("^sep()")
2022-08-20 20:51:56 +02:00
out2+=("$DRAW $SHADOW,conkyctl shades_all shadow;$me")
out2+=("$DRAW $OLINE,conkyctl shades_all outline;$me")
2022-05-15 03:25:01 +02:00
out+=("^sep()")
2022-08-20 20:51:56 +02:00
out+=("$BORDERS [ <b>$BORD $STIP</b> ],^checkout(border)")
2022-05-15 03:25:01 +02:00
out2+=("^tag(border)")
2022-08-20 20:51:56 +02:00
out2+=("^sep($DRAW $BORDERS?)")
out2+=("$YES,conkyctl draw_borders_all true;$me")
out2+=("$NO,conkyctl draw_borders_all false;$me")
2022-08-27 16:36:46 +02:00
out2+=("^sep($STIPPLED_BORDERS?)")
out2+=("0 ($SOLID_LINE),conkyctl stippled_borders_all 0;$me")
out2+=("^sep()")
2022-05-15 03:25:01 +02:00
out2+=("1,conkyctl stippled_borders_all 1;$me")
out2+=("2,conkyctl stippled_borders_all 2;$me")
out2+=("3,conkyctl stippled_borders_all 3;$me")
out2+=("4,conkyctl stippled_borders_all 4;$me")
2022-08-20 20:51:56 +02:00
out+=("^sep($RESET)")
2023-06-01 11:13:09 +02:00
out+=("󰁯 $RESETCOLORS,^checkout(resetcolors)")
2022-10-17 14:48:35 +02:00
out2+=("^tag(resetcolors)")
out2+=("^sep($AREYOUSURE)")
2022-10-27 01:10:17 +02:00
out2+=("$YES,conkyctl resetcolorsall;$me")
2022-12-21 10:43:12 +01:00
#out+=(" $RESETALL,^checkout(resetall)") NOT SAFE!!!
#out2+=("^tag(resetall)")
#out2+=("^sep($AREYOUSURE)")
#out2+=("$YES,rm $BASECONKY;$me")
2022-05-15 03:25:01 +02:00
else
2022-12-21 10:43:12 +01:00
out+=("^sep($NO_CONKY_RUNNING)")
SESSIONFILE=$HOME/.config/conky/conky-sessionfile
if [ -f "$SESSIONFILE" ];then
read N REST <<< $(wc -l "${SESSIONFILE}")
if [[ "$N" -gt "0" ]];then
out+=("$RUN_CONKY_SESSION ($N Conky),conky_toggle;$me")
fi
fi
2022-08-20 20:51:56 +02:00
out+=("^sep(<small><i>$CLICKTOSTART</i></small>)")
2022-05-15 03:25:01 +02:00
for confpath in "$CONKYDIR"/*_mb*;
do
filename=${confpath##*/}
name=${filename%%_mb*}
title=${name//_/ }
out+=("${title^},conkyctl startone ${confpath};$me")
done
out+=("^sep()")
2022-08-20 20:51:56 +02:00
out+=("$STARTALL,conkyctl startall;$me")
2022-05-15 03:25:01 +02:00
fi
### RUN
if [[ "$1" == "-s" ]]; then
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
. $HOME/.config/mabox/mabox.conf
2022-08-16 16:50:11 +02:00
source $HOME/.config/colorizer/colorizer.conf
2022-05-15 03:25:01 +02:00
out+=("^sep()")
2022-08-20 20:51:56 +02:00
out+=(" ⮜⮜⮜ Colorizer,colorizer -s")
2022-05-15 03:25:01 +02:00
2022-08-16 16:50:11 +02:00
if [[ "$colorizer_size" == "full" ]];then
eval $(xdotool getdisplaygeometry --shell)
MENU_HEIGHT_MIN="$HEIGHT"
MENU_HEIGHT_MAX=$MENU_HEIGHT_MIN
2022-12-03 18:44:36 +01:00
jgtools_radius=0
2022-08-16 16:50:11 +02:00
menu_margin_x="0"
else
MENU_VALIGN="center"
menu_margin_x=${submenu_spacing:-0}
2022-05-15 03:25:01 +02:00
fi
2022-08-16 16:50:11 +02:00
2022-05-15 03:25:01 +02:00
MENU_HALIGN="left"
jgmenu_icon_size=0
2022-08-16 16:50:11 +02:00
2022-05-15 03:25:01 +02:00
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
[ -z $jgmenu_use_borders ] && menu_border=0
JGWIDTH=$((jgtools_padding + 278 + jgtools_padding))
MENU_PADDING_TOP=$((jgtools_padding + 158))
#WALLPAPER
read WALLPATH<<< $(grep file "$HOME"/.config/nitrogen/bg-saved.cfg | cut -d'=' -f2)
THUMBDIR="$HOME/.cache/colorizer/thumbs"
2022-05-15 03:25:01 +02:00
mkdir -p ${THUMBDIR}
NAME=${WALLPATH////_}
if [[ "${NAME}" =~ ^_home_.* ]]; then
n=${#HOME}
((n++))
NAME=${NAME:${n}}
fi
THUMB="${THUMBDIR}/${NAME}.png"
2022-05-15 03:25:01 +02:00
if [[ ! -f "$THUMB" ]]
then
convert ${WALLPATH} -resize 270x150^ -gravity center -extent 270x150 ${THUMB}
2022-05-15 03:25:01 +02:00
fi
mkconfigfile
cat <<EOF > ${MENU_ITEMS}
@icon,,$((jgtools_padding + 4)),$((jgtools_padding + 4)),270,150,4,left,top,,,${THUMB}
2022-12-08 17:48:55 +01:00
@rect,,$((jgtools_padding + 4)),$((jgtools_padding + 120)),270,34,0,left,top,#222222 20,#222222 70,
2022-05-15 14:16:06 +02:00
#@icon,,$((jgtools_padding + 4)),$((jgtools_padding + 4)),270,150,4,left,top,,,/usr/share/mabox-colorizer/img/colorizer-conky.png
2022-12-08 17:48:55 +01:00
@text,,$((jgtools_padding + 158)),$((jgtools_padding + 124)),120,30,0,left,top,#FFFFFF ,${WINCLR},<span size='10400' font_family='Ubuntu'><b>Colorizer</b> Conky</span>
2022-05-15 03:25:01 +02:00
@rect,,$((jgtools_padding + 244)),$((jgtools_padding + 6)),29,60,0,left,top,#FFFFFF 30,${WINCLR} 60,
2022-05-24 19:32:53 +02:00
@rect,,$((jgtools_padding + 5)),$((jgtools_padding + 92)),29,60,0,left,top,#FFFFFF 30,${WINCLR} 60,
@rect,,$((jgtools_padding + 36)),$((jgtools_padding + 112)),29,40,0,left,top,#FFFFFF 30,${WINCLR} 60,
2022-05-15 03:25:01 +02:00
$(printf '%s\n' "${out[@]}")
$(printf '%s\n' "${out2[@]}")
EOF
jgmenu --config-file=${CONFIG_FILE} --csv-file=${MENU_ITEMS} 2>/dev/null
exit 0
fi
printf '%s\n' "${out[@]}"
printf '%s\n' "${out2[@]}"