diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2009-06-28 16:12:02 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2009-06-28 16:12:02 (GMT) |
commit | 659af0eb7548abac0f89b7de4b674678987e8bf1 (patch) | |
tree | 873f8b4642037f9875a1c3767ec7f38aef0fe6f9 | |
parent | 8addc54e7e5374d402e78fffc03d93657a20ef73 (diff) | |
download | fluxbox-659af0eb7548abac0f89b7de4b674678987e8bf1.zip fluxbox-659af0eb7548abac0f89b7de4b674678987e8bf1.tar.bz2 |
allow 'Ctrl' and 'Alt' as modifiers in keys file
-rw-r--r-- | doc/asciidoc/fluxbox-keys.txt | 2 | ||||
-rw-r--r-- | doc/fluxbox-keys.5.in | 249 | ||||
-rw-r--r-- | src/FbTk/KeyUtil.cc | 2 |
3 files changed, 31 insertions, 222 deletions
diff --git a/doc/asciidoc/fluxbox-keys.txt b/doc/asciidoc/fluxbox-keys.txt index 1a1548d..ae9abb0 100644 --- a/doc/asciidoc/fluxbox-keys.txt +++ b/doc/asciidoc/fluxbox-keys.txt | |||
@@ -171,7 +171,7 @@ at the specified 'corner'. | |||
171 | + | 171 | + |
172 | By default 'corner' is *BottomRight*, but may be overridden with one of:;; | 172 | By default 'corner' is *BottomRight*, but may be overridden with one of:;; |
173 | *NearestCorner NearestEdge Center TopLeft Top TopRight Left Right BottomLeft | 173 | *NearestCorner NearestEdge Center TopLeft Top TopRight Left Right BottomLeft |
174 | BottomRight* | 174 | Bottom BottomRight* |
175 | 175 | ||
176 | *StartTabbing*:: | 176 | *StartTabbing*:: |
177 | Start dragging to add this window to another's tabgroup. | 177 | Start dragging to add this window to another's tabgroup. |
diff --git a/doc/fluxbox-keys.5.in b/doc/fluxbox-keys.5.in index cfef46e..f1ee22f 100644 --- a/doc/fluxbox-keys.5.in +++ b/doc/fluxbox-keys.5.in | |||
@@ -1,161 +1,13 @@ | |||
1 | '\" t | ||
1 | .\" Title: fluxbox-keys | 2 | .\" Title: fluxbox-keys |
2 | .\" Author: [see the "AUTHORS" section] | 3 | .\" Author: [see the "AUTHORS" section] |
3 | .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/> | 4 | .\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/> |
4 | .\" Date: 05/27/2009 | 5 | .\" Date: 06/28/2009 |
5 | .\" Manual: Fluxbox Manual | 6 | .\" Manual: Fluxbox Manual |
6 | .\" Source: fluxbox-keys.txt 1.1.2 | 7 | .\" Source: fluxbox-keys.txt |
7 | .\" Language: English | 8 | .\" Language: English |
8 | .\" | 9 | .\" |
9 | .TH "FLUXBOX\-KEYS" "5" "05/27/2009" "fluxbox\-keys\&.txt 1\&.1\&.2" "Fluxbox Manual" | 10 | .TH "FLUXBOX\-KEYS" "5" "06/28/2009" "fluxbox\-keys\&.txt" "Fluxbox Manual" |
10 | .\" ----------------------------------------------------------------- | ||
11 | .\" * (re)Define some macros | ||
12 | .\" ----------------------------------------------------------------- | ||
13 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
14 | .\" toupper - uppercase a string (locale-aware) | ||
15 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
16 | .de toupper | ||
17 | .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | ||
18 | \\$* | ||
19 | .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz | ||
20 | .. | ||
21 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
22 | .\" SH-xref - format a cross-reference to an SH section | ||
23 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
24 | .de SH-xref | ||
25 | .ie n \{\ | ||
26 | .\} | ||
27 | .toupper \\$* | ||
28 | .el \{\ | ||
29 | \\$* | ||
30 | .\} | ||
31 | .. | ||
32 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
33 | .\" SH - level-one heading that works better for non-TTY output | ||
34 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
35 | .de1 SH | ||
36 | .\" put an extra blank line of space above the head in non-TTY output | ||
37 | .if t \{\ | ||
38 | .sp 1 | ||
39 | .\} | ||
40 | .sp \\n[PD]u | ||
41 | .nr an-level 1 | ||
42 | .set-an-margin | ||
43 | .nr an-prevailing-indent \\n[IN] | ||
44 | .fi | ||
45 | .in \\n[an-margin]u | ||
46 | .ti 0 | ||
47 | .HTML-TAG ".NH \\n[an-level]" | ||
48 | .it 1 an-trap | ||
49 | .nr an-no-space-flag 1 | ||
50 | .nr an-break-flag 1 | ||
51 | \." make the size of the head bigger | ||
52 | .ps +3 | ||
53 | .ft B | ||
54 | .ne (2v + 1u) | ||
55 | .ie n \{\ | ||
56 | .\" if n (TTY output), use uppercase | ||
57 | .toupper \\$* | ||
58 | .\} | ||
59 | .el \{\ | ||
60 | .nr an-break-flag 0 | ||
61 | .\" if not n (not TTY), use normal case (not uppercase) | ||
62 | \\$1 | ||
63 | .in \\n[an-margin]u | ||
64 | .ti 0 | ||
65 | .\" if not n (not TTY), put a border/line under subheading | ||
66 | .sp -.6 | ||
67 | \l'\n(.lu' | ||
68 | .\} | ||
69 | .. | ||
70 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
71 | .\" SS - level-two heading that works better for non-TTY output | ||
72 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
73 | .de1 SS | ||
74 | .sp \\n[PD]u | ||
75 | .nr an-level 1 | ||
76 | .set-an-margin | ||
77 | .nr an-prevailing-indent \\n[IN] | ||
78 | .fi | ||
79 | .in \\n[IN]u | ||
80 | .ti \\n[SN]u | ||
81 | .it 1 an-trap | ||
82 | .nr an-no-space-flag 1 | ||
83 | .nr an-break-flag 1 | ||
84 | .ps \\n[PS-SS]u | ||
85 | \." make the size of the head bigger | ||
86 | .ps +2 | ||
87 | .ft B | ||
88 | .ne (2v + 1u) | ||
89 | .if \\n[.$] \&\\$* | ||
90 | .. | ||
91 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
92 | .\" BB/BE - put background/screen (filled box) around block of text | ||
93 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
94 | .de BB | ||
95 | .if t \{\ | ||
96 | .sp -.5 | ||
97 | .br | ||
98 | .in +2n | ||
99 | .ll -2n | ||
100 | .gcolor red | ||
101 | .di BX | ||
102 | .\} | ||
103 | .. | ||
104 | .de EB | ||
105 | .if t \{\ | ||
106 | .if "\\$2"adjust-for-leading-newline" \{\ | ||
107 | .sp -1 | ||
108 | .\} | ||
109 | .br | ||
110 | .di | ||
111 | .in | ||
112 | .ll | ||
113 | .gcolor | ||
114 | .nr BW \\n(.lu-\\n(.i | ||
115 | .nr BH \\n(dn+.5v | ||
116 | .ne \\n(BHu+.5v | ||
117 | .ie "\\$2"adjust-for-leading-newline" \{\ | ||
118 | \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] | ||
119 | .\} | ||
120 | .el \{\ | ||
121 | \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[] | ||
122 | .\} | ||
123 | .in 0 | ||
124 | .sp -.5v | ||
125 | .nf | ||
126 | .BX | ||
127 | .in | ||
128 | .sp .5v | ||
129 | .fi | ||
130 | .\} | ||
131 | .. | ||
132 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
133 | .\" BM/EM - put colored marker in margin next to block of text | ||
134 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
135 | .de BM | ||
136 | .if t \{\ | ||
137 | .br | ||
138 | .ll -2n | ||
139 | .gcolor red | ||
140 | .di BX | ||
141 | .\} | ||
142 | .. | ||
143 | .de EM | ||
144 | .if t \{\ | ||
145 | .br | ||
146 | .di | ||
147 | .ll | ||
148 | .gcolor | ||
149 | .nr BH \\n(dn | ||
150 | .ne \\n(BHu | ||
151 | \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[] | ||
152 | .in 0 | ||
153 | .nf | ||
154 | .BX | ||
155 | .in | ||
156 | .fi | ||
157 | .\} | ||
158 | .. | ||
159 | .\" ----------------------------------------------------------------- | 11 | .\" ----------------------------------------------------------------- |
160 | .\" * set default formatting | 12 | .\" * set default formatting |
161 | .\" ----------------------------------------------------------------- | 13 | .\" ----------------------------------------------------------------- |
@@ -166,9 +18,9 @@ | |||
166 | .\" ----------------------------------------------------------------- | 18 | .\" ----------------------------------------------------------------- |
167 | .\" * MAIN CONTENT STARTS HERE * | 19 | .\" * MAIN CONTENT STARTS HERE * |
168 | .\" ----------------------------------------------------------------- | 20 | .\" ----------------------------------------------------------------- |
169 | .SH "Name" | 21 | .SH "NAME" |
170 | fluxbox-keys \- keyboard shortcuts configuration for fluxbox(1) | 22 | fluxbox-keys \- keyboard shortcuts configuration for fluxbox(1) |
171 | .SH "Synopsis" | 23 | .SH "SYNOPSIS" |
172 | .sp | 24 | .sp |
173 | ~/\&.fluxbox/keys | 25 | ~/\&.fluxbox/keys |
174 | .SH "SYNTAX" | 26 | .SH "SYNTAX" |
@@ -182,7 +34,7 @@ All other characters shown are required verbatim\&. Whitespace is required where | |||
182 | .sp | 34 | .sp |
183 | The keys file defines the keyboard shortcuts for \fIfluxbox(1)\fR\&. | 35 | The keys file defines the keyboard shortcuts for \fIfluxbox(1)\fR\&. |
184 | .sp | 36 | .sp |
185 | You can customize fluxbox\'s key handling through the ~/\&.fluxbox/keys file\&. The file consists of lines of the basic format: | 37 | You can customize fluxbox\(cqs key handling through the ~/\&.fluxbox/keys file\&. The file consists of lines of the basic format: |
186 | .sp | 38 | .sp |
187 | \fB[\fR\fB\fImodifiers\fR\fR\fB] \fR\fB\fIkey\fR\fR\fB :\fR\fB\fIcommand\fR\fR\fB [\fR\fB\fIarguments\fR\fR\fB \fR\fB\fI\&...\fR\fR\fB]\fR | 39 | \fB[\fR\fB\fImodifiers\fR\fR\fB] \fR\fB\fIkey\fR\fR\fB :\fR\fB\fIcommand\fR\fR\fB [\fR\fB\fIarguments\fR\fR\fB \fR\fB\fI\&...\fR\fR\fB]\fR |
188 | .sp | 40 | .sp |
@@ -195,13 +47,13 @@ Lines beginning with a \fI#\fR or \fI!\fR are considered comments and are unread | |||
195 | You will need to \(lqreload\(rq fluxbox after editing the keys file so it picks up your change\&. | 47 | You will need to \(lqreload\(rq fluxbox after editing the keys file so it picks up your change\&. |
196 | .SH "MODIFIERS" | 48 | .SH "MODIFIERS" |
197 | .sp | 49 | .sp |
198 | You can get a list of possible modifiers by calling `xmodmap \-pm\'\&. This also shows you to which keys the modifiers are mapped, but the following modifiers are most commonly used: | 50 | You can get a list of possible modifiers by calling \(oqxmodmap \-pm\(cq\&. This also shows you to which keys the modifiers are mapped, but the following modifiers are most commonly used: |
199 | .sp | 51 | .sp |
200 | \fBShift Control Mod1 Mod4\fR | 52 | \fBShift Control Mod1 Mod4\fR |
201 | .sp | 53 | .sp |
202 | where \fBMod1\fR is the Alt key on the PC keyboard and \fBMod4\fR is usually a key branded with a familiar company logo\&. | 54 | where \fBMod1\fR is the Alt key on the PC keyboard and \fBMod4\fR is usually a key branded with a familiar company logo\&. |
203 | .PP | 55 | .PP |
204 | There are also some special modifiers that refer to mouse button presses: | 56 | There are also some special modifiers that refer to mouse button presses |
205 | .RS 4 | 57 | .RS 4 |
206 | .PP | 58 | .PP |
207 | \fBOnDesktop\fR | 59 | \fBOnDesktop\fR |
@@ -221,7 +73,7 @@ The mouse cursor is over a window\&. | |||
221 | .PP | 73 | .PP |
222 | \fBOnTitlebar\fR | 74 | \fBOnTitlebar\fR |
223 | .RS 4 | 75 | .RS 4 |
224 | The mouse cursor is over a window\'s titlebar\&. | 76 | The mouse cursor is over a window\(cqs titlebar\&. |
225 | .RE | 77 | .RE |
226 | .PP | 78 | .PP |
227 | \fBDouble\fR | 79 | \fBDouble\fR |
@@ -236,11 +88,11 @@ To combine two or more modifiers, just list them (space\-delimited) in any order | |||
236 | .sp | 88 | .sp |
237 | You may specify a key by its key name (for example, \fBa\fR or \fBspace\fR) or by its numeric keycode (for example, \fB38\fR or \fB0xf3\fR)\&. | 89 | You may specify a key by its key name (for example, \fBa\fR or \fBspace\fR) or by its numeric keycode (for example, \fB38\fR or \fB0xf3\fR)\&. |
238 | .sp | 90 | .sp |
239 | If you don\'t know the name of a key, you can run \fBxev(1)\fR in a terminal, push the key, and see the name in the output\&. If you have some "special" keys that do not produce a key name in the output of \fBxev(1)\fR, you can just use the keycode (NOT the keysym!) in your keys file\&. | 91 | If you don\(cqt know the name of a key, you can run \fBxev(1)\fR in a terminal, push the key, and see the name in the output\&. If you have some "special" keys that do not produce a key name in the output of \fBxev(1)\fR, you can just use the keycode (NOT the keysym!) in your keys file\&. |
240 | .sp | 92 | .sp |
241 | Commands can also be bound to mouse button presses, for which the proper "key" name is \fBMouse\fR\fIn\fR where \fIn\fR is the number of the mouse button\&. For example, \fBMouse1\fR is the primary button, and \fBMouse4\fR / \fBMouse5\fR are the scroll wheel events, in normal configurations\&. \fBxev(1)\fR can also be used to tell the button number\&. | 93 | Commands can also be bound to mouse button presses, for which the proper "key" name is \fBMouse\fR\fIn\fR where \fIn\fR is the number of the mouse button\&. For example, \fBMouse1\fR is the primary button, and \fBMouse4\fR / \fBMouse5\fR are the scroll wheel events, in normal configurations\&. \fBxev(1)\fR can also be used to tell the button number\&. |
242 | .PP | 94 | .PP |
243 | There are some special "keys" that let you bind events to non\-keyboard events: | 95 | There are some special "keys" that let you bind events to non\-keyboard events |
244 | .RS 4 | 96 | .RS 4 |
245 | .PP | 97 | .PP |
246 | \fBChangeWorkspace\fR | 98 | \fBChangeWorkspace\fR |
@@ -254,7 +106,6 @@ below for one idea\&. | |||
254 | .sp | 106 | .sp |
255 | .\} | 107 | .\} |
256 | .RS 4 | 108 | .RS 4 |
257 | .BM yellow | ||
258 | .it 1 an-trap | 109 | .it 1 an-trap |
259 | .nr an-no-space-flag 1 | 110 | .nr an-no-space-flag 1 |
260 | .nr an-break-flag 1 | 111 | .nr an-break-flag 1 |
@@ -266,7 +117,6 @@ below for one idea\&. | |||
266 | .sp | 117 | .sp |
267 | Use caution with this event! For example, do NOT bind this to any action that changes your current workspace\&. If you break your fluxbox with this feature, you get to keep the pieces\&. | 118 | Use caution with this event! For example, do NOT bind this to any action that changes your current workspace\&. If you break your fluxbox with this feature, you get to keep the pieces\&. |
268 | .sp .5v | 119 | .sp .5v |
269 | .EM yellow | ||
270 | .RE | 120 | .RE |
271 | .SH "CHAINING" | 121 | .SH "CHAINING" |
272 | .sp | 122 | .sp |
@@ -281,15 +131,9 @@ To abort a chained command part\-way through typing it, press the <ESC> key\&. | |||
281 | .if n \{\ | 131 | .if n \{\ |
282 | .RS 4 | 132 | .RS 4 |
283 | .\} | 133 | .\} |
284 | .fam C | ||
285 | .ps -1 | ||
286 | .nf | 134 | .nf |
287 | .BB lightgray | ||
288 | Control c Control x :Quit | 135 | Control c Control x :Quit |
289 | .EB lightgray | ||
290 | .fi | 136 | .fi |
291 | .fam | ||
292 | .ps +1 | ||
293 | .if n \{\ | 137 | .if n \{\ |
294 | .RE | 138 | .RE |
295 | .\} | 139 | .\} |
@@ -304,17 +148,17 @@ Where \fIkeymode\fR is any alpha\-numeric string name\&. | |||
304 | When this keymode is activated (see the \fBKeyMode\fR command below), all bindings prefaced by that keymode name become active (and all other keybindings will be deactivated) until the keymode changes again\&. | 148 | When this keymode is activated (see the \fBKeyMode\fR command below), all bindings prefaced by that keymode name become active (and all other keybindings will be deactivated) until the keymode changes again\&. |
305 | .SH "COMMANDS" | 149 | .SH "COMMANDS" |
306 | .PP | 150 | .PP |
307 | Some commands have multiple names which are shown below as: | 151 | Some commands have multiple names which are shown below as |
308 | .RS 4 | 152 | .RS 4 |
309 | CMD1 | CMD2 | 153 | CMD1 | CMD2 |
310 | .RE | 154 | .RE |
311 | .PP | 155 | .PP |
312 | Related commands have been grouped below as: | 156 | Related commands have been grouped below as |
313 | .RS 4 | 157 | .RS 4 |
314 | CMD1 / CMD2 | 158 | CMD1 / CMD2 |
315 | .RE | 159 | .RE |
316 | .PP | 160 | .PP |
317 | The commands are broken up into sections as follows: | 161 | The commands are broken up into sections as follows |
318 | .RS 4 | 162 | .RS 4 |
319 | .sp | 163 | .sp |
320 | .RS 4 | 164 | .RS 4 |
@@ -400,13 +244,13 @@ Start dragging to resize the window as if you had grabbed the window at the spec | |||
400 | By default \fIcorner\fR is \fBBottomRight\fR, but may be overridden with one of: | 244 | By default \fIcorner\fR is \fBBottomRight\fR, but may be overridden with one of: |
401 | .RS 4 | 245 | .RS 4 |
402 | 246 | ||
403 | \fBNearestCorner NearestEdge Center TopLeft Top TopRight Left Right BottomLeft BottomRight\fR | 247 | \fBNearestCorner NearestEdge Center TopLeft Top TopRight Left Right BottomLeft Bottom BottomRight\fR |
404 | .RE | 248 | .RE |
405 | .RE | 249 | .RE |
406 | .PP | 250 | .PP |
407 | \fBStartTabbing\fR | 251 | \fBStartTabbing\fR |
408 | .RS 4 | 252 | .RS 4 |
409 | Start dragging to add this window to another\'s tabgroup\&. | 253 | Start dragging to add this window to another\(cqs tabgroup\&. |
410 | .RE | 254 | .RE |
411 | .SS "Window Commands" | 255 | .SS "Window Commands" |
412 | .sp | 256 | .sp |
@@ -463,7 +307,7 @@ Close the current window, equivalent to the window button\&. | |||
463 | .PP | 307 | .PP |
464 | \fBKill\fR | \fBKillWindow\fR | 308 | \fBKill\fR | \fBKillWindow\fR |
465 | .RS 4 | 309 | .RS 4 |
466 | Close a window that\'s not responding to | 310 | Close a window that\(cqs not responding to |
467 | \fBClose\fR, like using | 311 | \fBClose\fR, like using |
468 | \fBxkill(1)\fR\&. | 312 | \fBxkill(1)\fR\&. |
469 | .RE | 313 | .RE |
@@ -497,8 +341,7 @@ window is visible on all workspaces\&. | |||
497 | .RS 4 | 341 | .RS 4 |
498 | Sets which window decorations will be shown\&. | 342 | Sets which window decorations will be shown\&. |
499 | \fIdecor\fR | 343 | \fIdecor\fR |
500 | has the same format as the `\fI parameter in the apps file\&. See `man fluxbox\fR | 344 | has the same format as the \(oq[Deco]\(cq parameter in the apps file\&. See \(oqman fluxbox\(cq section APPLICATIONS for more info\&. |
501 | section APPLICATIONS for more info\&. | ||
502 | .RE | 345 | .RE |
503 | .PP | 346 | .PP |
504 | \fBToggleDecor\fR | 347 | \fBToggleDecor\fR |
@@ -557,7 +400,7 @@ If either | |||
557 | or | 400 | or |
558 | \fIy\fR | 401 | \fIy\fR |
559 | is set to | 402 | is set to |
560 | \fB*\fR, that coordinate will be ignored, and the movement will only take place in one dimension\&. | 403 | \fB\e\fR*, that coordinate will be ignored, and the movement will only take place in one dimension\&. |
561 | .PP | 404 | .PP |
562 | The default \fIanchor\fR is the upper left corner, but this may be overridden with one of: | 405 | The default \fIanchor\fR is the upper left corner, but this may be overridden with one of: |
563 | .RS 4 | 406 | .RS 4 |
@@ -782,7 +625,7 @@ Deiconify to the current workspace\&. | |||
782 | .PP | 625 | .PP |
783 | \fBOriginQuiet\fR | 626 | \fBOriginQuiet\fR |
784 | .RS 4 | 627 | .RS 4 |
785 | Deiconify to the window\'s original workspace, but does so in the background, without moving you there\&. | 628 | Deiconify to the window\(cqs original workspace, but does so in the background, without moving you there\&. |
786 | .RE | 629 | .RE |
787 | .RE | 630 | .RE |
788 | .RE | 631 | .RE |
@@ -897,7 +740,7 @@ commands, below\&. See | |||
897 | for more details on the | 740 | for more details on the |
898 | \fBENVIRONMENT\fR | 741 | \fBENVIRONMENT\fR |
899 | and | 742 | and |
900 | \fB~/\&.fluxbox/startup\fR | 743 | \fB\e~/\&.fluxbox/startup\fR |
901 | file\&. | 744 | file\&. |
902 | .RE | 745 | .RE |
903 | .PP | 746 | .PP |
@@ -931,15 +774,9 @@ brackets are literally required, as in the following example: | |||
931 | .if n \{\ | 774 | .if n \{\ |
932 | .RS 4 | 775 | .RS 4 |
933 | .\} | 776 | .\} |
934 | .fam C | ||
935 | .ps -1 | ||
936 | .nf | 777 | .nf |
937 | .BB lightgray | ||
938 | MacroCmd {MoveTo 0 0} {ResizeTo 1280 800} | 778 | MacroCmd {MoveTo 0 0} {ResizeTo 1280 800} |
939 | .EB lightgray | ||
940 | .fi | 779 | .fi |
941 | .fam | ||
942 | .ps +1 | ||
943 | .if n \{\ | 780 | .if n \{\ |
944 | .RE | 781 | .RE |
945 | .\} | 782 | .\} |
@@ -1081,7 +918,7 @@ of the truth values for all conditions listed\&. | |||
1081 | .sp | 918 | .sp |
1082 | Many of the more advanced commands take a \fIpattern\fR argument, which allows you to direct the action at a specific window or set of windows which match the properties specified in the \fIpattern\fR\&. | 919 | Many of the more advanced commands take a \fIpattern\fR argument, which allows you to direct the action at a specific window or set of windows which match the properties specified in the \fIpattern\fR\&. |
1083 | .PP | 920 | .PP |
1084 | A \fIpattern\fR looks like this: | 921 | A \fIpattern\fR looks like this |
1085 | .RS 4 | 922 | .RS 4 |
1086 | 923 | ||
1087 | \fB(\fR[\fIpropertyname\fR[!]=]\fIregexp\fR\fB)\fR | 924 | \fB(\fR[\fIpropertyname\fR[!]=]\fIregexp\fR\fB)\fR |
@@ -1096,7 +933,7 @@ If you specify multiple \fB(\fR\fB\fIpattern\fR\fR) arguments, this implies an A | |||
1096 | .sp | 933 | .sp |
1097 | You can use \fB=\fR to test for equality or \fB!=\fR to test for inequality\&. | 934 | You can use \fB=\fR to test for equality or \fB!=\fR to test for inequality\&. |
1098 | .PP | 935 | .PP |
1099 | The following values are accepted for \fIpropertyname\fR: | 936 | The following values are accepted for \fIpropertyname\fR |
1100 | .RS 4 | 937 | .RS 4 |
1101 | .PP | 938 | .PP |
1102 | \fBName\fR | 939 | \fBName\fR |
@@ -1211,7 +1048,7 @@ which refers to the head where the mouse pointer currently resides\&. | |||
1211 | .PP | 1048 | .PP |
1212 | \fBLayer\fR | 1049 | \fBLayer\fR |
1213 | .RS 4 | 1050 | .RS 4 |
1214 | The string name of the window\'s layer, which is one of | 1051 | The string name of the window\(cqs layer, which is one of |
1215 | \fBAboveDock\fR, | 1052 | \fBAboveDock\fR, |
1216 | \fBDock\fR, | 1053 | \fBDock\fR, |
1217 | \fBTop\fR, | 1054 | \fBTop\fR, |
@@ -1226,15 +1063,9 @@ The string name of the window\'s layer, which is one of | |||
1226 | .if n \{\ | 1063 | .if n \{\ |
1227 | .RS 4 | 1064 | .RS 4 |
1228 | .\} | 1065 | .\} |
1229 | .fam C | ||
1230 | .ps -1 | ||
1231 | .nf | 1066 | .nf |
1232 | .BB lightgray | ||
1233 | (xterm) | 1067 | (xterm) |
1234 | .EB lightgray | ||
1235 | .fi | 1068 | .fi |
1236 | .fam | ||
1237 | .ps +1 | ||
1238 | .if n \{\ | 1069 | .if n \{\ |
1239 | .RE | 1070 | .RE |
1240 | .\} | 1071 | .\} |
@@ -1244,15 +1075,9 @@ The string name of the window\'s layer, which is one of | |||
1244 | .if n \{\ | 1075 | .if n \{\ |
1245 | .RS 4 | 1076 | .RS 4 |
1246 | .\} | 1077 | .\} |
1247 | .fam C | ||
1248 | .ps -1 | ||
1249 | .nf | 1078 | .nf |
1250 | .BB lightgray | ||
1251 | (Name=[current]) | 1079 | (Name=[current]) |
1252 | .EB lightgray | ||
1253 | .fi | 1080 | .fi |
1254 | .fam | ||
1255 | .ps +1 | ||
1256 | .if n \{\ | 1081 | .if n \{\ |
1257 | .RE | 1082 | .RE |
1258 | .\} | 1083 | .\} |
@@ -1262,21 +1087,15 @@ The string name of the window\'s layer, which is one of | |||
1262 | .if n \{\ | 1087 | .if n \{\ |
1263 | .RS 4 | 1088 | .RS 4 |
1264 | .\} | 1089 | .\} |
1265 | .fam C | ||
1266 | .ps -1 | ||
1267 | .nf | 1090 | .nf |
1268 | .BB lightgray | ||
1269 | (Head=[mouse]) (Layer!=[current]) | 1091 | (Head=[mouse]) (Layer!=[current]) |
1270 | .EB lightgray | ||
1271 | .fi | 1092 | .fi |
1272 | .fam | ||
1273 | .ps +1 | ||
1274 | .if n \{\ | 1093 | .if n \{\ |
1275 | .RE | 1094 | .RE |
1276 | .\} | 1095 | .\} |
1277 | .SH "FILES" | 1096 | .SH "FILES" |
1278 | .PP | 1097 | .PP |
1279 | \fB~/\&.fluxbox/keys\fR | 1098 | \fB\e~/\&.fluxbox/keys\fR |
1280 | .RS 4 | 1099 | .RS 4 |
1281 | This is the default location for the keybinding definitions\&. | 1100 | This is the default location for the keybinding definitions\&. |
1282 | .RE | 1101 | .RE |
@@ -1303,20 +1122,14 @@ Remember that \fBExecCommand\fR command can take advantage of other environment | |||
1303 | .if n \{\ | 1122 | .if n \{\ |
1304 | .RS 4 | 1123 | .RS 4 |
1305 | .\} | 1124 | .\} |
1306 | .fam C | ||
1307 | .ps -1 | ||
1308 | .nf | 1125 | .nf |
1309 | .BB lightgray | ||
1310 | Mod1 x :ExecCommand $TERM | 1126 | Mod1 x :ExecCommand $TERM |
1311 | .EB lightgray | ||
1312 | .fi | 1127 | .fi |
1313 | .fam | ||
1314 | .ps +1 | ||
1315 | .if n \{\ | 1128 | .if n \{\ |
1316 | .RE | 1129 | .RE |
1317 | .\} | 1130 | .\} |
1318 | .sp | 1131 | .sp |
1319 | For more information about environment variables, see your shell\'s manual\&. | 1132 | For more information about environment variables, see your shell\(cqs manual\&. |
1320 | .SH "EXAMPLES" | 1133 | .SH "EXAMPLES" |
1321 | .sp | 1134 | .sp |
1322 | Here are some interesting and/or useful examples you can do with your keys file\&. | 1135 | Here are some interesting and/or useful examples you can do with your keys file\&. |
@@ -1324,10 +1137,7 @@ Here are some interesting and/or useful examples you can do with your keys file\ | |||
1324 | .if n \{\ | 1137 | .if n \{\ |
1325 | .RS 4 | 1138 | .RS 4 |
1326 | .\} | 1139 | .\} |
1327 | .fam C | ||
1328 | .ps -1 | ||
1329 | .nf | 1140 | .nf |
1330 | .BB lightgray | ||
1331 | # Mod4+drag moves a window | 1141 | # Mod4+drag moves a window |
1332 | OnWindow Mod4 Mouse1 :StartMoving | 1142 | OnWindow Mod4 Mouse1 :StartMoving |
1333 | 1143 | ||
@@ -1337,10 +1147,7 @@ Mod4 t :If {Some Matches (xterm)} {NextWindow (xterm)} {Exec xterm} | |||
1337 | 1147 | ||
1338 | # Set a different wallpaper on every workspace: | 1148 | # Set a different wallpaper on every workspace: |
1339 | ChangeWorkspace :Exec fbsetbg ~/\&.fluxbox/bg$(xprop \-root _NET_CURRENT_DESKTOP | awk \'{print $3}\')\&.png | 1149 | ChangeWorkspace :Exec fbsetbg ~/\&.fluxbox/bg$(xprop \-root _NET_CURRENT_DESKTOP | awk \'{print $3}\')\&.png |
1340 | .EB lightgray | ||
1341 | .fi | 1150 | .fi |
1342 | .fam | ||
1343 | .ps +1 | ||
1344 | .if n \{\ | 1151 | .if n \{\ |
1345 | .RE | 1152 | .RE |
1346 | .\} | 1153 | .\} |
diff --git a/src/FbTk/KeyUtil.cc b/src/FbTk/KeyUtil.cc index c30dc8e..0bfa38e 100644 --- a/src/FbTk/KeyUtil.cc +++ b/src/FbTk/KeyUtil.cc | |||
@@ -50,6 +50,8 @@ const struct t_modlist modlist[] = { | |||
50 | {"MOD3", Mod3Mask}, | 50 | {"MOD3", Mod3Mask}, |
51 | {"MOD4", Mod4Mask}, | 51 | {"MOD4", Mod4Mask}, |
52 | {"MOD5", Mod5Mask}, | 52 | {"MOD5", Mod5Mask}, |
53 | {"ALT", Mod1Mask}, | ||
54 | {"CTRL", ControlMask}, | ||
53 | {0, 0} | 55 | {0, 0} |
54 | }; | 56 | }; |
55 | 57 | ||