X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=conf-menus.tex;h=a87de0b389e88af9ff7c84d07cee4627e0ce70e6;hb=20080207;hp=f47a5a8077c0ce86397e913160807526f6549afb;hpb=16a5f824c31d29598763c5f49918ef67a47ad7e0;p=ion3-doc.git diff --git a/conf-menus.tex b/conf-menus.tex index f47a5a8..a87de0b 100644 --- a/conf-menus.tex +++ b/conf-menus.tex @@ -44,26 +44,26 @@ just like the menus defined as above. \begin{tabularx}{\linewidth}{lX} \tabhead{Menu name & Description} - \code{windowlist} & + \codestr{windowlist} & List of all client windows. Activating an entry jumps to that window. \\ - \code{workspacelist} & + \codestr{workspacelist} & List of all workspaces. Activating an entry jumps to that workspaces. \\ - \code{focuslist} & + \codestr{focuslist} & List of client windows with recent activity in them, followed by previously focused client windows. \\ - \code{focuslist_} & + \codestr{focuslist\_} & List of previously focused client windows. \\ - \code{stylemenu} & + \codestr{stylemenu} & List of available \file{look\_*.lua} style files. Activating an entry loads that style and ask to save the selection. \\ - \code{ctxmenu} & + \codestr{ctxmenu} & Context menu for given object. \\ \end{tabularx} \subsection{Defining context menus} -The ''ctxmenu'' is a special menu that is assembled from a defined context +The ``ctxmenu'' is a special menu that is assembled from a defined context menu for the object for which the menu was opened for, but also includes the context menus for the manager objects as submenus. @@ -81,9 +81,9 @@ defctxmenu("WFrame", { }) \end{verbatim} -Some of the same ''modes'' as were available for some bindings -may also be used: \code{WFrame.tiled}, \code{WFrame.floating}, -and \code{WFrame.transient}. +Some of the same ``modes'' as were available for some bindings +may also be used: \codestr{WFrame.tiled}, \codestr{WFrame.floating}, +and \codestr{WFrame.transient}. \subsection{Displaying menus} @@ -97,22 +97,16 @@ handlers (and elsewhere): \fnref{mod_menu.menu} & Keyboard (or mouse) operated menus that open in the bottom-left corner of a screen or frame. \\ - \fnref{mod_menu.bigmenu} & - Same as previous, but uses another graphical style. \\ \fnref{mod_menu.pmenu} & Mouse-operated drop-down menus. This function can only be called from a mouse press or drag handler. \\ \fnref{mod_menu.grabmenu} & A special version of \fnref{mod_menu.menu} that grabs the keyboard and is scrolled with a given key until all modifiers have been released, - after which the selected entry is activated. This function is meant to - be used for implementing, for example, Win***s-style \key{Alt-Tab} - handling.\footnote{See the \file{wcirculate.lua} script in the Ion - scripts repository \url{http://iki.fi/tuomov/repos/ion-scripts-3/}.} \\ + after which the selected entry is activated. \\ \end{tabularx} -The \fnrefx{mod_menu}{grabmenu} function takes the extra key parameter, but -aside from that each of these functions takes three arguments, which when +Each of these functions takes three arguments, which when called from a binding handler, should be the parameters to the handler, and the name of the menu. For example, the following snippet of of code binds the both ways to open a context menu for a frame: