diff --git a/usr/bin/jgdesktops b/usr/bin/jgdesktops index bdc9ad4..c9b17be 100755 --- a/usr/bin/jgdesktops +++ b/usr/bin/jgdesktops @@ -95,7 +95,7 @@ out+=("$DESKMNGR,jgdeskmngr -s") ### RUN -if [[ $1 == "-s" ]]; then +if [[ "$1" == "-s" || "$1" == "ipc" ]]; then . /usr/share/mb-jgtools/pipemenu-standalone.cfg . $HOME/.config/mabox/mabox.conf if [[ $panels_heightpos == "top" ]]; then @@ -111,6 +111,9 @@ fi MENU_PADDING_TOP=${jgtools_padding:-0} MENU_HALIGN="center" +if [[ "$1" == "ipc" ]]; then +POSITION_MODE="ipc" +fi jgmenu_icon_size=0 [ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius diff --git a/usr/bin/jgtint2-pipe b/usr/bin/jgtint2-pipe index bfa6d8e..864b806 100755 --- a/usr/bin/jgtint2-pipe +++ b/usr/bin/jgtint2-pipe @@ -125,7 +125,7 @@ jgmenu_icon_size=0 menu_margin_x=${submenu_spacing:-0} [ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius [ -z $jgmenu_use_borders ] && menu_border=0 - +POSITION_MODE=${2:-center} mkconfigfile cat < ${MENU_ITEMS} diff --git a/usr/bin/jgtint2launcher b/usr/bin/jgtint2launcher index 7755dae..2599a29 100755 --- a/usr/bin/jgtint2launcher +++ b/usr/bin/jgtint2launcher @@ -73,6 +73,7 @@ jgmenu_icon_size=0 JGWIDTH=300 MENU_HEIGHT_MAX=480 +POSITION_MODE=${2:-center} [ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius [ -z $jgmenu_use_borders ] && menu_border=0