jgtools.inc
This commit is contained in:
91
mb-jgtools/jgtools.inc
Normal file
91
mb-jgtools/jgtools.inc
Normal file
@@ -0,0 +1,91 @@
|
||||
. $HOME/.config/mabox/mabox.conf
|
||||
jgmenu_theme=${jgmenu_theme:-obtheme}
|
||||
item_height_factor=${item_height_factor:-200}
|
||||
menu_font_size=${menu_font_size:-9}
|
||||
menu_font_family=${menu_font_family:-Noto Sans Medium}
|
||||
jgmenu_font="${menu_font_family} ${menu_font_size}"
|
||||
#menu title/sep font
|
||||
menu_sep_font_size=${menu_sep_font_size:-9}
|
||||
menu_sep_font_family=${menu_sep_font_family:-Noto Sans Bold}
|
||||
menu_sep_font="${menu_sep_font_family} ${menu_sep_font_size}"
|
||||
|
||||
icons=${icons:-0}
|
||||
iconmargin=${iconmargin:-0}
|
||||
|
||||
ron=
|
||||
roff=
|
||||
cbon=
|
||||
cboff=
|
||||
|
||||
mkconfigfile() {
|
||||
cat <<EOF > ${CONFIG_FILE}
|
||||
position_mode = ${POSITION_MODE:-fixed}
|
||||
csv_cmd = apps
|
||||
stay_alive = 0
|
||||
hide_back_items = ${HIDE_BACK_ITEMS:-0}
|
||||
terminal_exec = terminator
|
||||
terminal_args = -e
|
||||
tabs = ${TABS:-140}
|
||||
menu_border = ${jgtools_border:-0}
|
||||
|
||||
# MENU MARGIN
|
||||
menu_margin_x = ${menu_margin_x:-0}
|
||||
menu_margin_y = ${MENU_MARGIN_Y:-0}
|
||||
sub_spacing = ${submenu_spacing:-0}
|
||||
|
||||
menu_width = $JGWIDTH
|
||||
menu_height_min = ${MENU_HEIGHT_MIN:-0}
|
||||
menu_height_max = ${MENU_HEIGHT_MAX:-0}
|
||||
menu_padding_top = ${MENU_PADDING_TOP:-70}
|
||||
menu_padding_right = ${jgtools_padding:-0}
|
||||
menu_padding_bottom = ${jgtools_padding:-0}
|
||||
menu_padding_left = ${jgtools_padding:-0}
|
||||
menu_radius = ${MENU_RADIUS:-0}
|
||||
menu_valign = ${MENU_VALIGN:-top}
|
||||
menu_halign = ${MENU_HALIGN:-left}
|
||||
|
||||
item_height = $((menu_font_size*item_height_factor/100))
|
||||
item_halign = ${ITEM_HALIGN:-left}
|
||||
item_padding_x = 4
|
||||
|
||||
item_margin_x = ${item_margin_x:-0}
|
||||
item_margin_y = ${item_margin_y:-1}
|
||||
item_radius = ${item_radius:-2}
|
||||
item_border = ${item_border:-0}
|
||||
arrow_string = ${arrow_string:-}
|
||||
|
||||
columns = ${COLUMNS:-1}
|
||||
menu_gradient_pos = ${menu_gradient_pos:-none}
|
||||
color_menu_bg = ${color_menu_bg:-#222222 80}
|
||||
color_menu_bg_to = ${color_menu_bg_to:- #000000 100}
|
||||
color_menu_border = ${color_menu_border:-#2f9b85 100}
|
||||
color_norm_bg = ${color_norm_bg:-#000000 0}
|
||||
color_norm_fg = ${color_norm_fg:-#CCCCCC 100}
|
||||
color_sel_bg = ${color_sel_bg:-#169f6f 60}
|
||||
color_sel_fg = ${color_sel_fg:-#f8f8f8 100}
|
||||
color_sel_border = ${color_sel_border:-#504e65 100}
|
||||
color_sep_fg = ${color_sep_fg:-#4D4D4D 100}
|
||||
color_sep_bg = ${color_sep_bg:-#262626 100}
|
||||
color_title_fg = ${color_title_fg:-#4D4D4D 100}
|
||||
color_title_border = ${color_title_border:-#169f6f 100}
|
||||
color_title_bg = ${color_title_bg:-#262626 100}
|
||||
color_scroll_ind = ${COLOR_SCROLL_IND:-#504e65 100}
|
||||
|
||||
sep_markup = font='${menu_sep_font:-${jgmenu_font}}'
|
||||
sep_halign = ${sep_halign:-center}
|
||||
sep_height = ${sep_height:-5}
|
||||
font = ${jgmenu_font:-Noto Sans Medium 9}
|
||||
#icon_size = $((icons*menu_font_size*item_height_factor/100-iconmargin))
|
||||
#icon_size = $((icons*menu_font_size*2))
|
||||
icon_size = $((icons*menu_font_size*item_height_factor/100))
|
||||
icon_norm_alpha = 70
|
||||
icon_sel_alpha = 100
|
||||
icon_text_spacing = ${iconmargin:-8}
|
||||
icon_theme = ${jgmenu_icon_theme:-Numix-Square}
|
||||
EOF
|
||||
|
||||
}
|
||||
|
||||
CONFIG_FILE=$(mktemp)
|
||||
MENU_ITEMS=$(mktemp)
|
||||
trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT
|
||||
Reference in New Issue
Block a user