1fvwm-menu-xlock(1) Fvwm Utilities fvwm-menu-xlock(1)
2
3
4
6 fvwm-menu-xlock - builds xlock menu definition for fvwm
7
9 fvwm-menu-xlock [ --help|-h|-? ] [ --version|-V ] [ --name|-n name ] [
10 --title|-t title ] [ --item format ] [ --icon-title icon ] [
11 --icon-item icon ] [ --special-first|-s ] [ -- xlock params ]
12
14 A simple perl script which parses xlock's output to build an fvwm menu
15 definition of all xlock's modes.
16
18 --help
19 show the help and exit
20
21 --version
22 show the version and exit
23
24 --name name
25 define menu name in the following argument. Default is "XLockMenu"
26
27 --title title
28 define menu title in the following argument. Default is "XLock
29 Modes".
30
31 --item format
32 define menu item format in the following argument, default is
33 '%n\t(%d)'. TAB can be specified as '\t', but in .fvwm2rc you
34 should specify a double backslash or a real TAB.
35
36 Format specifiers:
37
38 %n - mode name
39 %d - mode description
40 %D - mode description without "Shows " prefix if any
41
42 These specifiers can receive an optional integer size, positive for
43 right adjusted string or negative for left adjusted, example: %8x;
44 and optional *num or *-num, which means to leave only the first or
45 last (if minus) num of chars, the num must be greater than 3, since
46 the striped part is replaced with "...", example: %*30x. Both can
47 be combined: %-10*-20x, this instructs to get only the 20 last
48 characters, but if the length is less then 10 - to fill with up to
49 10 spaces on the right.
50
51 --icon-title icon
52 --icon-item icon
53 define menu icon for title and regular item accordingly. Default is
54 no menu icons (equivalent to an empty icon argument).
55
56 --wm-icons
57 define icon names suitable for use with wm-icons package. Currently
58 this is equivalent to: --icon-title '' --icon-item menu/lock.xpm.
59
60 --special-first
61 instructs to include special modes (usually black, bomb and random)
62 first.
63
64 Option parameters can be specified either using '=' or in the next
65 argument. Short options are ok if not ambiguous: -h, -t; but be careful
66 with short options, what is now unambiguous, can became ambiguous in
67 the next versions.
68
69 Additional arguments (after --) will be passed to xlock.
70
71 Please see the xlock(1) man page for the xlock options.
72
74 Add these lines to your fvwm configuration file:
75
76 PipeRead 'fvwm-menu-xlock --name MenuSSaver --title "Screensaver" \
77 --icon-item mini-bball.xpm --special-first -- -nice 19 -nolock'
78 PipeRead 'fvwm-menu-xlock --name MenuSLock --title "Lock Screen" \
79 --icon-item mini-rball.xpm --special-first -- -nice 19'
80 AddToMenu "Utilities" "Screensaver%mini-monitor.xpm%" Popup MenuSSaver
81 AddToMenu "Utilities" "Screenlock%mini-lock.xpm%" Popup MenuSLock
82
84 Charles K. Hines <chuck_hines@vnet.ibm.com>, initial version.
85
86 Mikhael Goikhman <migo@homemail.com>, from 24 Feb 1999.
87
89 The script is distributed by the same terms as fvwm itself. See GNU
90 General Public License for details.
91
93 Depends on the output of xlock. Will produce an empty menu if the
94 structure of the output is changed.
95
96 Report bugs to fvwm-bug@fvwm.org.
97
98
99
1002.5.28 (from cvs) 2009-03-22 fvwm-menu-xlock(1)