#!/bin/bash out+=("^sep(Mabox Colorizer)") out+=("OBTHEME,^pipe(colorizer-ob)") out+=("MENUPANELS,^pipe(colorizer-menus)") #out+=("TINT2,^pipe(colorizer-tint2)") out+=("CONKY,^pipe(colorizer-conky)") out+=("Systray HW monitor,^pipe(colorizer-phwmon)") out+=("Terminal color scheme,^term(theme.sh -i2;/bin/bash)") #out+=("GTKTHEME,^pipe(colorizer-gtktheme)") out+=("^sep()") out+=("WALLPAPER,^pipe(jgwallpaperchanger)") out+=("MBX Colors,mbxcolors") out+=("^sep()") out+=("PREFERENCES") out+=("ABOUT and Help,yhtml ${HOME}/.config/colorizer/help/colorizer.html 'Colorizer - OBtheme'") ### RUN if [[ "$1" == "-s" ]]; then . /usr/share/mb-jgtools/pipemenu-standalone.cfg . $HOME/.config/mabox/mabox.conf #out+=("^sep()") #out+=(" ⮜ $LEFTPANEL,mb-jgtools places") if [[ $panels_heightpos == "top" ]]; then MENU_VALIGN="top" MENU_MARGIN_Y=${panels_topmargin:-0} elif [[ $panels_heightpos == "bottom" ]]; then MENU_VALIGN="bottom" MENU_MARGIN_Y=${panels_topmargin:-0} else MENU_VALIGN="center" fi MENU_PADDING_TOP=${jgtools_padding:-0} MENU_HALIGN="left" jgmenu_icon_size=0 menu_margin_x=${submenu_spacing:-0} [ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius [ -z $jgmenu_use_borders ] && menu_border=0 JGWIDTH=$((jgtools_padding + 278 + jgtools_padding)) MENU_PADDING_TOP=$((jgtools_padding + 128)) #TEMP POSITION: MENU_VALIGN="top" MENU_MARGIN_Y="100" mkconfigfile #THUMB="$(DISPLAY=:0 scrot -t 220x100 -o $HOME/.config/mabox/colorizer.png -e 'echo $m')" cat < ${MENU_ITEMS} @icon,,$((jgtools_padding + 4)),$((jgtools_padding + 4)),270,120,4,left,top,,,$HOME/.config/mabox/colorizer.png $(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[@]}"