most of pipemenus obey vertical alignment now
parent
82941cdf3d
commit
e195cd5c02
|
@ -134,9 +134,18 @@ out+=("^sep($SESSIONS_LBL)")
|
||||||
if [ $1 == "-s" ]; then
|
if [ $1 == "-s" ]; then
|
||||||
. /usr/bin/pipemenu-standalone.cfg
|
. /usr/bin/pipemenu-standalone.cfg
|
||||||
. $HOME/.config/mabox/mabox.conf
|
. $HOME/.config/mabox/mabox.conf
|
||||||
|
|
||||||
|
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_PADDING_TOP=${jgtools_padding:-0}
|
||||||
MENU_HALIGN="left"
|
MENU_HALIGN="left"
|
||||||
MENU_VALIGN="center"
|
|
||||||
MENU_MARGIN_Y=40
|
MENU_MARGIN_Y=40
|
||||||
jgmenu_icon_size=0
|
jgmenu_icon_size=0
|
||||||
menu_margin_x=${submenu_spacing:-0}
|
menu_margin_x=${submenu_spacing:-0}
|
||||||
|
|
|
@ -105,10 +105,17 @@ out2+=("$(printf "<tt>%3s</tt>,%s" "false" "mb-setvar notifications=false $CONFI
|
||||||
if [[ "$1" == "-s" ]]; then
|
if [[ "$1" == "-s" ]]; then
|
||||||
. /usr/bin/pipemenu-standalone.cfg
|
. /usr/bin/pipemenu-standalone.cfg
|
||||||
. $HOME/.config/mabox/mabox.conf
|
. $HOME/.config/mabox/mabox.conf
|
||||||
|
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_PADDING_TOP=${jgtools_padding:-0}
|
||||||
MENU_HALIGN="left"
|
MENU_HALIGN="left"
|
||||||
MENU_VALIGN="center"
|
|
||||||
jgmenu_icon_size=0
|
jgmenu_icon_size=0
|
||||||
JGWIDTH=40
|
JGWIDTH=40
|
||||||
menu_margin_x=${submenu_spacing:-0}
|
menu_margin_x=${submenu_spacing:-0}
|
||||||
|
|
|
@ -47,12 +47,9 @@ case $LANG in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
SESSIONDIR="$HOME/.config/deskmngr/"
|
SESSIONDIR="$HOME/.config/deskmngr/"
|
||||||
mkdir -p $SESSIONDIR
|
mkdir -p $SESSIONDIR
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
out+=("^sep($DESKMNGR)")
|
out+=("^sep($DESKMNGR)")
|
||||||
out+=("$ABOUT,\"\"\"notify-send.sh -u critical -i mbcc '$title' '$help'\"\"\"")
|
out+=("$ABOUT,\"\"\"notify-send.sh -u critical -i mbcc '$title' '$help'\"\"\"")
|
||||||
out+=("^sep(<i><small>$SAVED_SESS</small></i>)")
|
out+=("^sep(<i><small>$SAVED_SESS</small></i>)")
|
||||||
|
@ -82,12 +79,19 @@ out+=(" $NEW,deskmngr -s")
|
||||||
if [ $1 == "-s" ]; then
|
if [ $1 == "-s" ]; then
|
||||||
. /usr/bin/pipemenu-standalone.cfg
|
. /usr/bin/pipemenu-standalone.cfg
|
||||||
. $HOME/.config/mabox/mabox.conf
|
. $HOME/.config/mabox/mabox.conf
|
||||||
|
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_PADDING_TOP=${jgtools_padding:-0}
|
||||||
MENU_HALIGN="center"
|
MENU_HALIGN="left"
|
||||||
MENU_VALIGN="center"
|
|
||||||
jgmenu_icon_size=0
|
jgmenu_icon_size=0
|
||||||
|
menu_margin_x=${submenu_spacing:-0}
|
||||||
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
|
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
|
||||||
[ -z $jgmenu_use_borders ] && menu_border=0
|
[ -z $jgmenu_use_borders ] && menu_border=0
|
||||||
|
|
||||||
|
|
|
@ -98,11 +98,19 @@ out+=("$DESKMNGR,jgdeskmngr -s")
|
||||||
if [[ $1 == "-s" ]]; then
|
if [[ $1 == "-s" ]]; then
|
||||||
. /usr/bin/pipemenu-standalone.cfg
|
. /usr/bin/pipemenu-standalone.cfg
|
||||||
. $HOME/.config/mabox/mabox.conf
|
. $HOME/.config/mabox/mabox.conf
|
||||||
|
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_PADDING_TOP=${jgtools_padding:-0}
|
||||||
MENU_HALIGN="center"
|
MENU_HALIGN="center"
|
||||||
MENU_VALIGN="center"
|
|
||||||
jgmenu_icon_size=0
|
jgmenu_icon_size=0
|
||||||
|
|
||||||
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
|
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
|
||||||
|
|
|
@ -399,10 +399,18 @@ fi
|
||||||
if [[ $1 == "-s" ]]; then
|
if [[ $1 == "-s" ]]; then
|
||||||
. /usr/bin/pipemenu-standalone.cfg
|
. /usr/bin/pipemenu-standalone.cfg
|
||||||
|
|
||||||
|
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}
|
MENU_PADDING_TOP=${jgtools_padding}
|
||||||
MENU_HALIGN="left"
|
MENU_HALIGN="left"
|
||||||
MENU_VALIGN="center"
|
|
||||||
jgmenu_icon_size=0
|
jgmenu_icon_size=0
|
||||||
JGWIDTH=40
|
JGWIDTH=40
|
||||||
menu_margin_x=${submenu_spacing:-0}
|
menu_margin_x=${submenu_spacing:-0}
|
||||||
|
|
|
@ -63,9 +63,18 @@ __standalone() {
|
||||||
__mklist
|
__mklist
|
||||||
. /usr/bin/pipemenu-standalone.cfg
|
. /usr/bin/pipemenu-standalone.cfg
|
||||||
. $HOME/.config/mabox/mabox.conf
|
. $HOME/.config/mabox/mabox.conf
|
||||||
|
|
||||||
|
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_PADDING_TOP=${jgtools_padding:-0}
|
||||||
MENU_HALIGN="left"
|
MENU_HALIGN="left"
|
||||||
MENU_VALIGN="center"
|
|
||||||
MENU_MARGIN_Y=40
|
MENU_MARGIN_Y=40
|
||||||
jgmenu_icon_size=0
|
jgmenu_icon_size=0
|
||||||
menu_margin_x=${submenu_spacing:-0}
|
menu_margin_x=${submenu_spacing:-0}
|
||||||
|
|
|
@ -107,9 +107,18 @@ fi
|
||||||
if [ $1 == "-s" ]; then
|
if [ $1 == "-s" ]; then
|
||||||
. /usr/bin/pipemenu-standalone.cfg
|
. /usr/bin/pipemenu-standalone.cfg
|
||||||
. $HOME/.config/mabox/mabox.conf
|
. $HOME/.config/mabox/mabox.conf
|
||||||
|
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_PADDING_TOP=${jgtools_padding:-0}
|
||||||
MENU_HALIGN="left"
|
MENU_HALIGN="left"
|
||||||
MENU_VALIGN="center"
|
|
||||||
MENU_MARGIN_Y=40
|
MENU_MARGIN_Y=40
|
||||||
jgmenu_icon_size=0
|
jgmenu_icon_size=0
|
||||||
menu_margin_x=${submenu_spacing:-0}
|
menu_margin_x=${submenu_spacing:-0}
|
||||||
|
|
|
@ -120,9 +120,17 @@ if [[ "$1" == "-s" ]]; then
|
||||||
. /usr/bin/pipemenu-standalone.cfg
|
. /usr/bin/pipemenu-standalone.cfg
|
||||||
. $HOME/.config/mabox/mabox.conf
|
. $HOME/.config/mabox/mabox.conf
|
||||||
|
|
||||||
|
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_PADDING_TOP=${jgtools_padding:-0}
|
||||||
MENU_HALIGN="left"
|
MENU_HALIGN="left"
|
||||||
MENU_VALIGN="center"
|
|
||||||
jgmenu_icon_size=0
|
jgmenu_icon_size=0
|
||||||
JGWIDTH=40
|
JGWIDTH=40
|
||||||
menu_margin_x=${submenu_spacing:-0}
|
menu_margin_x=${submenu_spacing:-0}
|
||||||
|
|
Loading…
Reference in New Issue