fvwm-menu-xlock(1)
π fvwm-menu-xlock β the manual page, but make it cute π
okay so bestie, welcome to fvwm-menu-xlock(1), living in the Fvwm Utilities corner of the manual-verse πΈ. It's a tiny lil perl script with main character energy, and it wants to help you build menus. Let's go π«Ά
β¨ NAME β¨
fvwm-menu-xlock β builds xlock menu definition for fvwm π
π SYNOPSIS π
fvwm-menu-xlock [ --help|-h|-? ] [ --version|-V ] [ --name|-n name ] [
--title|-t title ] [ --item format ] [ --icon-title icon ] [ --icon-item
icon ] [ --special-first|-s ] [ -- xlock params ]
π¦ DESCRIPTION π¦
So. It's a simple perl script (yes, perl, she's vintage, she's iconic π) and what she does is parse xlock's output so she can build you an fvwm menu definition containing all of xlock's modes. Every single one. She's thorough like that. π
π OPTIONS π
--helpβ shows the help and then dips out. bye π--versionβ shows the version and exits, no small talk.--namename β sets the menu name, using the next argument. Default is"XLockMenu".--titletitle β sets the menu title, using the next argument. Default is"XLock Modes".--itemformat β sets the menu item format, using the next argument. Default is'%n\t(%d)'. A TAB can be specified as'\t', but heads up: in.fvwm2rcyou should specify a double backslash or just an actual real TAB.
Format specifiers, bestie, listen close:
%n - mode name
%d - mode description
%D - mode description without "Shows " prefix if any
These specifiers can also take an optional integer size β positive for a right adjusted string, negative for left adjusted β like %8x for example. And there's an optional *num or *-num, which means leave only the first or last (if minus) num of chars. And the num must be greater than 3, since the striped-out part gets replaced with "..." β example: %*30x. You can combine both too: %-10*-20x, which tells it to grab only the 20 last characters, but if the length is less than 10 β fill with up to 10 spaces on the right. yes she can do both. multitasking queen. π
--icon-titleicon--icon-itemicon
β these two define the menu icon for the title and for regular items, accordingly. Default is no menu icons (which is equivalent to an empty icon argument).
--wm-iconsβ defines icon names suitable for use with the wm-icons package. Currently this is equivalent to:--icon-title '' --icon-item menu/lock.xpm.--special-firstβ instructs it to include special modes first (usuallyblack,bombandrandom). they get to cut the line. π
okay so about how you pass these parameters:
Option parameters can be specified either using '=' or in the next argument. Short options are ok if they're not ambiguous: -h, -t; but bestie, be careful with short options β what is now unambiguous can became ambiguous in the next versions. β οΈ (that's a real warning, not me being dramatic for once π)
Additional arguments (after --) will be passed to xlock. π«Ά
And please, please, go see the xlock(1) man page for the xlock options. i'm not gonna sit here and explain another man's flags, that's his job. π
π USAGE π
Add these lines to your fvwm configuration file, and watch your setup eat:
PipeRead 'fvwm-menu-xlock --name MenuSSaver --title "Screensaver" \
--icon-item mini-bball.xpm --special-first -- -nice 19 -nolock'
PipeRead 'fvwm-menu-xlock --name MenuSLock --title "Lock Screen" \
--icon-item mini-rball.xpm --special-first -- -nice 19'
AddToMenu "Utilities" "Screensaver%mini-monitor.xpm%" Popup MenuSSaver
AddToMenu "Utilities" "Screenlock%mini-lock.xpm%" Popup MenuSLock
π AUTHORS π
- Charles K. Hines
<chuck_hines@vnet.ibm.com>β initial version. the OG. π - Mikhael Goikhman
<migo@homemail.com>β from 24 Feb 1999.
πΈ COPYING πΈ
The script is distributed by the same terms as fvwm itself. See the GNU General Public License for details. π
π BUGS π
Depends on the output of xlock. Will produce an empty menu if the structure of the output is changed. like, she's reading xlock's vibe and if xlock changes its vibe, she's got nothing. no cap. π
Report bugs to fvwm-bug@fvwm.org. they wanna hear it, fr fr. π
and that's the whole page, bestie!! this was version 2.5.28 (from cvs), dated 2009-03-22, and it's a fvwm-menu-xlock manual page β iconic, timeless, still serving. periodt. π
β¨π
π¦ where this page comes from
- alpine 3.24: fvwm-doc 2.7.0-r3 Β· GPL-2.0-or-later
- fedora 43: fvwm 2.7.0-15.fc43 Β· GPL-2.0-or-later
- fedora 44: fvwm 2.7.0-16.fc44 Β· GPL-2.0-or-later
- nixos 26.05: fvwm 2.7.0
- nixpkgs unstable: fvwm 2.7.0
- opensuse-leap 16.0: fvwm2 2.7.0-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: fvwm2 2.7.0-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: fvwm2 2.7.0-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: fvwm2 2.7.0-bp160.1.11 Β· GPL-2.0-or-later
- ubuntu jammy: fvwm 1:2.6.8-1build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms