JGMENU(1)

πŸ“¦
version 4.6.0 Β· 2 versions
, in alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

jgmenu β€” A simple X11 menu πŸ’–

Bestie, this is the whole vibe: a lil graphical menu for Linux/BSD that reads your menu data as CSV and pops it onto an X11 window. That's it. That's the girl. πŸ‘‘


🌸 SYNOPSIS 🌸

jgmenu [--no-spawn] [--checkout=<tag>] [--config-file=<file>]
       [--icon-size=<size>] [--at-pointer] [--hide-on-startup]
       [--simple] [--vsimple] [--csv-file=<file>]
       [--csv-cmd=<command>] [--die-when-loaded]
       [--center] [--persistent]

okay so here's the starter pack, the "just tell me what to type" moment 🫢

  • jgmenu_run β€” Launch menu
  • jgmenu_run init β€” Create config file ~/.config/jgmenu/jgmenurc
  • jgmenu_run init -i β€” Interactive setup
  • man jgmenututorial β€” Step-by-step tutorial

πŸ¦‹ DESCRIPTION πŸ¦‹

jgmenu is a simple menu for Linux/BSD. It reads CSV menu data from a file and generates a graphical menu on an X11 window. No cap, that's literally the entire personality.

πŸ’« Fields πŸ’«

Each line of CSV menu data is parsed into the following fields using comma as a field separator:

  1. description
  2. command
  3. icon
  4. working directory
  5. metadata

For example:

printf "Terminal,xterm\\nWeb Browser,firefox" | jgmenu --vsimple

πŸŽ€ Special Characters at beginning of line πŸŽ€

  • # β€” Ignore line
  • . β€” A line beginning with a dot followed by a space, will source the file specified by the string following the dot
  • @ β€” Treat as widget

πŸ“ Special Characters in fields πŸ“

  • , β€” As commas are used as field separators, individual fields can only contain commas if they are triple quoted. For example:
foo,β€œβ€œβ€œ^pipe(find .  -printf `%f,display %p,%p\n')β€β€œβ€
  • < > & β€” The description field is parsed as pango markup, so <, >, and & need to be escaped as &lt;, &gt;, and &amp; respectively.
  • " β€” Unlike most CSV implementations, a single instance of a double quote (") is not considered a special character. The reason for this is to let users write commands with double quotes without having to escape them.
  • """ β€” Use three quotes """ to begin and to end a fully quoted value. The primary use case for this is when a comma is needed within a value.

🧚 Markup 🧚

The syntax ^foo(bar) is used to carry out action foo with argument bar. We refer to bar as the inner value.

The following markup is supported in the description field

  • sep() β€” Define a separator. If an inner value is provided, the separator will appear as a title. If no inner value is provided, the separator will simply be a horizontal line

The following markup is supported in the command field

  • ^tag() β€” Define the beginning of a new menu structure node.

The lines following ^tag(whatever) will not show in the top level menu, but can be opened by using ^checkout() or ^root().

item0.0
item0.1
submenu1,^checkout(1)
submenu2,^root(2)

^tag(1)
item1.0
item1.1

^tag(2)
item2.0
item2.1
  • ^checkout() β€” Open the tag specified by the inner value as a submenu in a new window
  • ^root() β€” Open the tag specified by the inner value in the root window, replacing the current menu
  • ^sub() β€” Draw a submenu arrow. This can be useful for creating submenus with stay_alive=0. For example:
item0.0
item0.1
submenu1,^sub(echo "item1.0" | jgmenu --simple)
  • ^back() β€” Check-out parent menu
  • ^term() β€” Run program in terminal
  • ^pipe() β€” Execute sub-process and checkout a menu based on its stdout.
  • ^filter() β€” Invoke search
  • ^quit() β€” Quit

πŸ’… Icons πŸ’…

Icons will be displayed if the third field is populated, for example:

Terminal,xterm,utilities-terminal
Firefox,firefox,firefox

🌈 OPTIONS 🌈

  • --no-spawn β€” Redirect command to stdout rather than execute it.
  • --checkout=<tag> β€” Checkout submenu on startup.
  • --config-file=<file> β€” Read config file.
  • --icon-size=<size> β€” Specify icon size (22 by default). If set to 0, icons will not be loaded.
  • --at-pointer β€” Launch menu at mouse pointer.
  • --hide-on-startup β€” Start menu is hidden state.
  • --simple β€” Ignore tint2 settings; Run in short-lived mode (i.e. exit after mouse click or enter/escape); read menu items from stdin.
  • --vsimple β€” Same as --simple, but also disables icons and ignores jgmenurc.
  • --csv-file=<file> β€” Specify menu file (in jgmenu flavoured CSV format). If file cannot be opened, input is reverted to stdin.
  • --csv-cmd=<command> β€” Specify command to produce menu data, for example jgmenu_run pmenu
  • --die-when-loaded β€” Open menu and then exit(0). Useful for debugging and testing.
  • --center β€” Center align menu horizontally and vertically.
  • --persistent β€” Same as the persistent config option. See config option section below for details.

πŸ’– USER INTERFACE πŸ’–

  • Up, Down β€” Select previous/next item
  • Left. Right β€” Move to parent/sub menu
  • PgUp, PgDn β€” Scroll up/down
  • Home, End β€” Select first/last item
  • Enter β€” Select an item or open a submenu
  • F5 β€” Restart
  • F8 β€” Print node tree to stderr
  • F9 β€” exit(1)
  • F10 β€” exit(0)
  • Backspace β€” Return to parent menu

Type any string to invoke a search. Words separated by space will be searched for using OR logic (i.e. the match of either word is sufficient to display an item). πŸ”βœ¨


⭐ WIDGETS ⭐

Lines beginning with @ in jgmenu flavoured CSV files are parsed in accordance with the following syntax:

@type,action,x,y,w,h,r,halign,valign,fgcol,bgcol,content
  • type β€” The widget type, which can be one of the following:
    • rect β€” Rectangle with a 1px thick border drawn using fgcol
    • search β€” Search box showing the current filter (what the user has typed) or the specified text if no filter has been invoked.
    • icon β€” Icon
  • action β€” The action to take when selected. This can either be a shell command or a menu action such ^root().
  • x, y β€” Horizontal and vertical margin of widget
  • w, h β€” Width and height of widget
  • r β€” Corner radius
  • fgcol, bgcol β€” Foreground and background colours using syntax rrggbb #aa fgcol accepts auto to use the jgmenurc’s color_norm_fg
  • content β€” icon_path for icon widgets text for all other widget types
  • halign, valign β€” Horizontal and vertical alignment of widget. This has not yet been implemented, but defaults to top and left

🫢 CONFIGURATION FILE 🫢

If no file is specified using the –config-file= option, the XDG Base Directory Specification is adhered to. I.e:

  • Global config in ${XDG_CONFIG_DIRS:-/etc/xdg}
  • User config override in ${XDG_CONFIG_HOME:-$HOME/.config}

For most users ~/.config/jgmenu/jgmenurc is appropriate.

Global config variables are set in the following order (i.e. bottom of list has higher precedence):

  • built-in defaults (config.c)
  • tint2rc config file (can be specified by TINT2_CONFIG environment variable)
  • jgmenurc config file (can be specified by –config-file=)
  • command line arguments

πŸ¦„ Syntax πŸ¦„

Lines beginning with # are ignored.

All other lines are recognised as setting variables in the format

key = value

White spaces are mostly ignored.

🌸 Values 🌸

Unless otherwise specified, values as treated as simple strings.

Here follow some specific types:

  • boolean β€” When a variable takes a boolean value, only 0 and 1 are accepted. 0 means false; 1 means true.
  • integer β€” When a variable takes an integer value, only numerical values are accepted. The only valid characters are digits (0-9) and minus-sign. All integer variables relating to geometry and position are interpreted as pixel values unless otherwise specified.
  • color β€” When a variable takes a color value, only the syntax #rrggbb aaa is recognised, where rr, gg and bb represent hexadecimal values (00-ff) for the colours red, green and blue respectively; and aaa stands for the alpha channel value expressed as a percentage (0-100) (i.e. 100 means no transparency and 0 means fully transparent.) For example #ff0000 100 represents red with no transparency, whereas #000088 50 means dark blue with 50% transparency.
  • pathname β€” When a variable takes a pathname value, it is evaluated as a string. If the first character is tilde (~), it will be replaced by the the environment variable $HOME just as a shell would expand it.

πŸ‘‘ Variables πŸ‘‘

  • verbosity = integer (default 0) β€” General verbosity: (0) warnings only; (1) basic info; (2) more info; (3) max info

Additional specific topics: (4) IPC

Note: Some IPC messages need environment variable JGMENU_VERBOSITY=4 too
  • stay_alive = boolean (default 1) β€” If set to 1, the menu will β€œhide” rather than β€œexit” when the following events occur: clicking on menu item; clicking outside the menu; pressing escape. When in the hidden mode, a USR1 signal will β€œun-hide” the menu.
  • persistent = boolean (default 0) β€” If set to 1, the menu will not exit nor hide when the following events occur: clicking on menu item; clicking outside the menu; pressing escape. Use in conjunction with the ^quit() markup.
  • hide_on_startup = boolean (default 0) β€” If set to 1, jgmenu start in β€œhidden” mode. This is useful for starting jgmenu during the boot process and then sending a killall -SIGUSR1 jgmenu to show the menu.
  • csv_cmd = string (default apps) β€” Defines the command to produce the jgmenu flavoured CSV for jgmenu. Accpetable keyword include apps, pmenu, lx, and ob. If a value is given other than these keywords, it will be executed in a shell (so be careful!). If left blank, jgmenu will read from stdin. Examples:
csv_cmd = lx
csv_cmd = jgmenu_run lx --no-dirs
csv_cmd = cat ~/mymenu.csv
  • tint2_look = boolean (default 0) β€” Read tint2rc and parse config options for colours, dimensions and alignment.
  • position_mode = (fixed | ipc | pointer | center) (default fixed) β€” Define menu positioning mode.
    • fixed β€” Align to margin_{x,y} and respect _NET_WORKAREA.
    • ipc β€” Use IPC to read environment variables set by panel. See Inter-Process Communication for further info.
  • pointer β€” launch at the pointer, whilst respecting both _NET_WORKAREA and edge_snap_x. Bestie behaviour, honestly 🫢
  • center β€” launch at the center of the screen and straight-up ignore _NET_WORKAREA. This one takes precedence over menu_{v,h}align. Periodt. πŸ‘‘

  • edge_snap_x = integer (default 30) β€” how close (in pixels) you can get to the left hand edge before the menu just snaps to it. Heads up though: this only applies in at_pointer mode. πŸ’…
  • terminal_exec = string (default x-terminal-emulator) β€” the terminal to use for commands with ^term() markup.
  • terminal_args = string (default -e) β€” okay so these two variables team up to build the string that launches programs needing a terminal. With the default values, that string becomes:
x-terminal-emulator -e 'some_command with arguments'

And terminal_args must finish with -e or an equivalent, where -e refers to the meaning of -e in xterm -e. No cap. πŸ”₯

  • monitor = integer (default 0) β€” pick a particular monitor as an index starting from 1. If it's 0, the menu launches on whichever monitor the mouse is on. Main character mouse energy 🐭
  • hover_delay = integer (default 100) β€” the time (in milliseconds) from hovering over an item until a submenu opens. Impatient? Lower it. 😌
  • hide_back_items = boolean (default 1) β€” if enabled, all ^back() items get suppressed. As a general rule: set it to 1 for a multi-window menu, and 0 when you're in single-window mode.
  • columns = integer (default 1) β€” number of columns in which to show menu items.
  • tabs = integer (default 120) β€” the position, in pixels, of the first tab.
  • menu_margin_x = integer (default 0) β€” distance between the menu (that's the X11 window, bestie) and the edge of the screen. See the note on _NET_WORKAREA under the menu_{v,h}align variables. πŸ“
  • menu_margin_y = integer (default 0) β€” the vertical equivalent of menu_margin_x.
  • menu_width = integer (default 200) β€” the minimum menu width. The actual width will adjust to fit the longest item in the current (sub)menu. But if a filter is applied (e.g. by the user typing) the menu width will not adjust. She's committed to the bit. πŸ’…
  • menu_height_min = integer (default 0) β€” set the minimum height of the root menu. If menu_height_min and menu_height_max are set to the same value, the menu height will be fixed at that value. If set to zero, they'll be ignored.
  • menu_height_max = integer (default 0) β€” "Minimum height of the root menu. See menu_height_min". Yes, it literally says minimum here πŸ™ˆ the docs said what they said, we don't make the rules.
  • menu_height_mode = (static | dynamic) (default static) β€” mode of menu height.
    • static β€” the height of the initial root menu will be used for any subsequent ^root() action.
    • dynamic β€” the root menu height gets re-calculated every time a new tag is opened using ^root().
  • menu_padding_top = integer (default 5) β€” distance between top border and item/widget.
  • menu_padding_right = integer (default 5) β€” distance between right border and item/widget.
  • menu_padding_bottom = integer (default 5) β€” distance between bottom border and item/widget.
  • menu_padding_left = integer (default 5) β€” distance between left border and item/widget.
  • menu_radius = integer (default 1) β€” radius of the menu's rounded corners. Rounded corners are so cute, obsessed πŸŽ€
  • menu_border = integer (default 0) β€” thickness of the menu border.
  • menu_halign = (left | right | center) (default left) β€” horizontal alignment of the menu. If it's not set, jgmenu will try to guess the alignment by reading _NET_WORKAREA, which is a freedesktop EWMH root window property. And here's the tea: not all Window Managers and Panels respect _NET_WORKAREA. The following do: openbox, xfwm4, tint2 and polybar. The following do NOT: awesome, i3, bspwm and plank. Noted πŸ“
  • menu_valign = (top | bottom | center) (default bottom) β€” vertical alignment of the menu. See menu_halign.
  • menu_gradient_pos = (none | top | right | bottom | left | top_left | top_right | bottom_left | bottom_right ) (default none) β€” start position of the menu window gradient. The end position is at the opposite side or corner. The colours color_menu_bg and color_menu_bg_to specify the start (from) and the finish (to). It's giving sunset πŸŒ…
  • sub_spacing = integer (default 1) β€” horizontal space between windows. A negative value results in each submenu window overlapping its parent window. Chaotic, love that for you πŸ’€
  • sub_padding_top = integer (default auto) β€” same as menu_padding_top but it applies to submenu windows only. It understands the keyword auto, which means the smallest of the four menu_padding_* variables will be used.
  • sub_padding_right = integer (default auto) β€” see sub_padding_top.
  • sub_padding_bottom = integer (default auto) β€” see sub_padding_top.
  • sub_padding_left = integer (default auto) β€” see sub_padding_top.
  • sub_hover_action = integer (default 1) β€” open a submenu when hovering over an item. Note that this only works in multi-window mode.
  • item_margin_x = integer (default 3) β€” horizontal distance between items and the edge of the menu.
  • item_margin_y = integer (default 3) β€” vertical distance between items and the edge of the menu.
  • item_height = integer (default 25) β€” height of menu items.
  • item_padding_x = integer (default 4) β€” horizontal distance between the item edge and its content (e.g. text or icon).
  • item_radius = integer (default 1) β€” radius of rounded corners of items.
  • item_border = integer (default 0) β€” thickness of item border.
  • item_halign = (left | right) (default left) β€” horizontal alignment of menu items. If you set it to right, you should change the arrow_string option too. Just saying πŸ‘€
  • sep_height = integer (default 5) β€” height of a separator without text (as defined by ^sep()). Separators with text use item_height.
  • sep_halign = (left | center | right) (default left) β€” horizontal alignment of separator text.
  • sep_markup = string (unset by default) β€” if specified, <span $sep_markup>foo</span> will be passed to pango for ^sep(foo).

See the following link for pango attributes: https://docs.gtk.org/Pango/pango_markup.html

Keywords include (but are not limited to):

  • font
  • size (x-small, small, medium, large, x-large) - style (normal, oblique, italic)
  • weight (ultralight, light, normal, bold, ultrabold, heavy
  • foreground (using format #rrggbb or a colour name)
  • underline (none, single, double)

Example:

sep_markup = font="Sans Italic 12" foreground="blue"
  • font = string (unset by default) β€” font description for menu items. font accepts a string such as Cantarell 10 or UbuntuCondensed 11. The font description without a specified size unit is interpreted as points. If px is added, it will be read as pixels. Using "points" enables consistency with other applications. Slay ✨
  • font_fallback = string (default xtg) β€” same as icon_theme_fallback, except that the xsettings variable Gtk/FontName is read.
  • icon_size = integer (default 22) β€” size of icons in pixels. If set to 0, icons will be disabled. 😭
  • icon_text_spacing = integer (default 10) β€” distance between icon and text within a menu item.
  • icon_norm_alpha = integer (default 100) β€” opacity of menu item icons, expressed as a percentage (0-100).
  • icon_sel_alpha = integer (default 100) β€” opacity of the currently selected menu item's icon, expressed as a percentage (0-100).
  • icon_theme = string (unset by default) β€” name of icon theme. E.g. Adwaita, breeze, Paper, Papirus and Numix. See ls /usr/share/icons/ (or similar) for the available icon themes on your system.
  • icon_theme_fallback = string (default xtg) β€” fallback sources of the icon theme, in order of precedence, where the left-most letter designates the source with the highest precedence. The following characters are acceptable: x=xsettings Net/IconThemeName; t=tint2; g=gtk3.0. icon_theme takes priority if set. And in order to increase consistency with tint2, xsettings variables will only be read if the tint2rc variable launcher_icon_theme_override is 0.
  • arrow_string = string (default β–Έ) β€” the string used to indicate that an item will open a submenu. See jgmenuunicode(7) for examples.
  • arrow_width = integer (default 15) β€” width allowed for arrow_string. Set to 0 to hide the arrow.
  • search_empty_string = string (default <empty>) β€” the string to show when no entries match a search. It's giving "she's not here" πŸ’€
  • color_menu_bg = color (default #000000 100) β€” background colour of the menu window. If gradients are enabled, this will be the 'from' color.
  • color_menu_bg_to = color (default #000000 100) β€” background 'to' colour of the menu window, for use with gradients.
  • color_menu_border = color (default #eeeeee 8) β€” border colour of the menu window.
  • color_norm_bg = color (default #000000 0) β€” background colour of menu items, except the one currently selected.
  • color_norm_fg = color (default #eeeeee 100) β€” font (foreground) colour of menu items, except the one currently selected.
  • color_sel_bg = color (default #ffffff 20) β€” background color of the currently selected menu item.
  • color_sel_fg = color (default #eeeeee 100) β€” font (foreground) color of the currently selected menu item.
  • color_sel_border = color (default #eeeeee 8) β€” border color of the currently selected menu item.
  • color_sep_fg = color (default #ffffff 20) β€” font (foreground) colour of separators without text.
  • color_title_fg = color (default #eeeeee 50) β€” font (foreground) colour of separators with text. The font colour can be overridden by sep_markup.
  • color_title_bg = color (default #000000 0) β€” background colour of separators with text.
  • color_title_border = color (default #000000 0) β€” border colour of separators with text.
  • color_scroll_ind = color (default #eeeeee 40) β€” colour of the scroll indicator lines (the little ones that show whether there are menu items above or below the ones you can actually see). 🌈

🌈 CSV generator variables 🌈

The following variables begin with csv_, which denotes that they set environment variables which are used by the CSV generators. Teamwork, honestly 🫢

  • csv_name_format = string (default %n (%g)) β€” defines the format of the name field for CSV generators. Supported by apps and lx. It understands the following two fields:
    • %n β€” Application name
  • %g β€” the application's generic name. And if there's no generic name, or it's literally identical to the name? Then %n gets used instead, with zero formatting. no drama. πŸ’…

  • csv_single_window = boolean (default 0) β€” flip this on and csv-generators will spit out ^root() instead of ^checkout(). Translation: you get a single window menu where the submenus show up in the same window instead of spawning new ones. Supported by apps and pmenu. one window, one vibe πŸͺŸ
  • csv_no_dirs = boolean (default 0) β€” set it and csv-generators will output applications with no directory structure at all. just flat. Supported by apps, pmenu and lx. no folders, we die like icons πŸ“
  • csv_i18n = string (no default) β€” tells it to look for a translation file in the file or directory you name. See jgmenu-i18n(1) for the full tea. Supported by apps and ob. 🌈
  • csv_no_duplicates = boolean (default 0) β€” keeps applications from showing up in more than one directory. one app, one home, periodt. Supported by apps. πŸ’–

πŸ’¬ INTER-PROCESS COMMUNICATION (IPC) πŸ’¬

IPC is how you get jgmenu to line up with a panel launcher in real-time β€” like, live, as it happens. Right now this is supported by tint2 and xfce-panel. Here's how the whole thing goes down:

jgmenu_run reads the environment variables listed below and passes them through a unix socket to the long-running instance of jgmenu. so they're literally gossiping over a socket, love that for them 🫢

If position_mode=ipc, jgmenu aligns to those variables every single time it's launched.

These four environment variables are the ones that define the extremities of the panel: TINT2_BUTTON_PANEL_X1, TINT2_BUTTON_PANEL_X2, TINT2_BUTTON_PANEL_Y1, TINT2_BUTTON_PANEL_Y2.

              (X1,Y1)
              ╔══════════════════════╗
              β•‘ panel                β•‘
              β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
                               (X2,Y2)

The next batch of environment variables define where the launcher sits. And heads up β€” these get interpreted differently depending on panel alignment, so read carefully bestie:

In the case of a horizontal panel:

  • TINT2_BUTTON_ALIGNED_X1 and TINT2_BUTTON_ALIGNED_X2 define the launcher button's horizontal extremities to align to.
  • TINT2_BUTTON_ALIGNED_Y1 and TINT2_BUTTON_ALIGNED_Y2 define the edge of the panel to align to. These shall be the same.

In the case or a vertical panel, the same rules apply with X and Y reversed. πŸ”„

And if none of the above variables are set? Then menu_margin_x and menu_margin_y get used instead. fallback queens πŸ‘‘


🎨 DIAGRAMS 🎨

General Notes

margin β€” refers to space outside an object.

padding β€” refers to space inside an object (between border and content).

Vertical Menu

              ╔════════════════════════╗
              β•‘            1           β•‘
              β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β•’
              β•‘            2           β•‘
              β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β•’
              β•‘          item          β•‘
              β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β•’
              β•‘            2           β•‘
              β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β•’
              β•‘          item          β•‘
              β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β•’
              β•‘            2           β•‘
              β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β•’
              β•‘            3           β•‘
              β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
  1. menu_padding_top
  2. item_margin_y
  3. menu_padding_bottom

Horizontal Menu

              ╔═╀═╀════════════════╀═╀═╗
              β•‘ β”‚ β”‚                β”‚ β”‚ β•‘
              β•‘ β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β•‘
              β•‘ β”‚ β”‚icon   text    >β”‚ β”‚ β•‘
              β•‘ β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β•‘
              β•‘2β”‚1β”‚                β”‚1β”‚3β•‘
              β•‘ β”‚ β”œβ”€β”€β”€β”€β”¬β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€ β”‚ β•‘
              β•‘ β”‚ β”‚ 4  β”‚5β”‚       β”‚6β”‚ β”‚ β•‘
              β•‘ β”‚ β”œβ”€β”€β”€β”€β”΄β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€ β”‚ β•‘
              β•‘ β”‚ β”‚                β”‚ β”‚ β•‘
              β•‘ β”‚ β”‚                β”‚ β”‚ β•‘
              β•šβ•β•§β•β•§β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•§β•β•§β•β•
  1. item_margin_x
  2. padding_left
  3. padding_right
  4. icon_size
  5. icon_to_text_spacing
  6. arrow_width

External to menu

              screen
              ╔════════════════════════╗
              β•‘    2                   β•‘
              β•‘ β”Œβ”€β”€β”€β”€β”€β”€β”               β•‘
              β•‘ β”‚ root β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”      β•‘
              β•‘1β”‚ menu β”‚ β”‚ sub  β”‚      β•‘
              β•‘ β”‚      β”‚3β”‚ menu β”‚      β•‘
              β•‘ β””β”€β”€β”€β”€β”€β”€β”˜ β”‚      β”‚      β•‘
              β•‘          β””β”€β”€β”€β”€β”€β”€β”˜      β•‘
              β•‘                        β•‘
              β•‘                        β•‘
              β•‘                        β•‘
              β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
  1. menu_margin_x
  2. menu_margin_y
  3. sub_spacing

πŸͺ HOOKS πŸͺ

A hook in jgmenu is a rule which optionally triggers a command and then performs a restart if a file or directory has changed since the last time the instance of jgmenu was mapped (= made visible β€” normally by running jgmenu_run). so it's like, "hey bestie, something moved, time for a glow-up" ✨

Hooks are specified in the file $HOME/.config/jgmenu/hooks are take the format

<file>,<command>

For example, to synchronise with the GTK theme, use this hook:

~/.config/gtk-3.0/settings.ini,jgmenu_run gtktheme

Leave the <command> empty to just restart. (yes, a lil restart-and-refresh moment, no command needed 🧚)

A number of restart-hooks are built-in by default, for example ~/.config/jgmenu/{jgmenurc,append.csv,prepend.csv} and /usr/share/applications.

To list all the built-in hooks, use the keyword print in the hook file (on a line on its own). In order to remove all the built-in hooks, use the keyword clear. so print = show me everything, clear = burn it all down πŸ”₯


πŸš€ STARTUP SCRIPT πŸš€

Unless the --vsimple argument is used, the file ~/.config/jgmenu/startup is executed on initial startup. that's your lil main-character entrance πŸ’…


πŸ‘€ SEE ALSO πŸ‘€

The jgmenu source code and documentation can be downloaded from https://github.com/johanmalm/jgmenu/ β€” go get it, it's giving open source excellence 🫢


πŸ‘‘ AUTHORS πŸ‘‘

Johan Malm. (the icon, the legend, the whole entire vibe ⭐)


and that's a wrap on JGMENU(1) bestie πŸ’– this page is from the jgmenu manual set, dated 2 January, 2021 β€” go forth and menu, you absolute legend πŸŒΈπŸ¦‹πŸŽ€