wok view pekwm/stuff/etc/pekwm/keys @ rev 24920

updated mp (5.2.10 -> 5.58)
author Hans-G?nter Theisgen
date Sun Apr 10 07:48:27 2022 +0100 (2022-04-10)
parents
children
line source
1 INCLUDE = "vars"
3 Global {
4 # - - ----------------------------------------------- - -
5 # Simple bindings to most frequently used actions.
6 #
7 # Adding your own frequently used actions is easy -
8 # just copy it over from CHAINS and edit the keypress!
9 ####################################
10 # custom slitaz shortcuts
11 ###################################
13 # Menus
14 KeyPress = "Mod4 R" { Actions = "ShowMenu Root" }
15 KeyPress = "Mod4 space" { Actions = "ShowMenu Root" }
17 # Switch Desktop
18 KeyPress = "Mod4 1" { Actions = "GotoWorkspace 1" }
19 KeyPress = "Mod4 2" { Actions = "GotoWorkspace 2" }
20 KeyPress = "Mod4 3" { Actions = "GotoWorkspace 3" }
21 KeyPress = "Mod4 4" { Actions = "GotoWorkspace 4" }
23 # Simple Window Management
24 KeyPress = "Mod4 M" { Actions = "Toggle Maximized True True" }
25 KeyPress = "Mod4 F" { Actions = "Toggle FullScreen" }
26 KeyPress = "Mod4 Return" { Actions = "MoveResize" }
27 KeyPress = "Mod4 Q" { Actions = "Close" }
28 KeyPress = "Mod4 S" { Actions = "Toggle Shaded" }
29 KeyPress = "Mod4 I" { Actions = "Toggle Iconified" }
31 # Alt+Tab
32 KeyPress = "Mod1 Tab" { Actions = "NextFrameMRU EndRaise" }
33 KeyPress = "Mod1 Shift Tab" { Actions = "PrevFrameMRU EndRaise" }
35 #Resize
36 KeyPress = "Mod4 Return" { Actions = "MoveResize" }
37 #KeyPress = "Mod4 F1" { Actions = "Resize" }
38 #KeyPress = "Mod4 F2" { Actions = "Resize" }
39 #KeyPress = "Mod4 F3" { Actions = "Resize" }
41 # Pekwm control
42 KeyPress = "Ctrl Mod1 Home" { Actions = "Exec subox tazctrlbox" }
43 KeyPress = "Mod4 V" { Actions = "Exec xterm -e alsamixer" }
45 # External Application Commands
46 KeyPress = "Mod4 E" { Actions = "Exec $TERM" }
47 KeyPress = "Mod4 D" { Actions = "ShowCmdDialog" }
48 KeyPress = "Mod4 H" { Actions = "Toggle HarbourHidden" }
52 ####################################
53 # Pekwm Default
54 ####################################
55 # Moving in frames
56 KeyPress = "Mod1 Ctrl Tab" { Actions = "NextFrame EndRaise" }
57 KeyPress = "Mod1 Ctrl Shift Tab" { Actions = "PrevFrame EndRaise" }
58 KeyPress = "Mod4 Tab" { Actions = "ActivateClientRel 1" }
59 KeyPress = "Mod4 Shift Tab" { Actions = "ActivateClientRel -1" }
60 KeyPress = "Mod4 Ctrl Right" { Actions = "MoveClientRel 1" }
61 KeyPress = "Mod4 Ctrl Left" { Actions = "MoveClientRel -1" }
64 # Moving in workspaces
65 KeyPress = "Mod4 5" { Actions = "GotoWorkspace 5" }
66 KeyPress = "Mod4 6" { Actions = "GotoWorkspace 6" }
67 KeyPress = "Mod4 7" { Actions = "GotoWorkspace 7" }
68 KeyPress = "Mod4 8" { Actions = "GotoWorkspace 8" }
69 KeyPress = "Mod4 9" { Actions = "GotoWorkspace 9" }
71 #KeyPress = "Ctrl Mod1 Left" { Actions = "GotoWorkspace Left" }
72 #KeyPress = "Ctrl Mod1 Right" { Actions = "GotoWorkspace Right" }
73 KeyPress = "Ctrl Mod1 Left" { Actions = "HideAllMenus; GotoWorkspace Left" }
74 KeyPress = "Ctrl Mod1 Right" { Actions = "HideAllMenus; GotoWorkspace Right" }
75 KeyPress = "Ctrl Mod1 Up" { Actions = "SendToWorkspace Next; GoToWorkspace Next" }
76 KeyPress = "Ctrl Mod1 Down" { Actions = "SendToWorkspace Prev; GoToWorkspace Prev" }
78 KeyPress = "Mod4 F1" { Actions = "SendToWorkspace 1" }
79 KeyPress = "Mod4 F2" { Actions = "SendToWorkspace 2" }
80 KeyPress = "Mod4 F3" { Actions = "SendToWorkspace 3" }
81 KeyPress = "Mod4 F4" { Actions = "SendToWorkspace 4" }
82 KeyPress = "Mod4 F5" { Actions = "SendToWorkspace 5" }
83 KeyPress = "Mod4 F6" { Actions = "SendToWorkspace 6" }
84 KeyPress = "Mod4 F7" { Actions = "SendToWorkspace 7" }
85 KeyPress = "Mod4 F8" { Actions = "SendToWorkspace 8" }
86 KeyPress = "Mod4 F9" { Actions = "SendToWorkspace 9" }
88 # More window management
89 KeyPress = "Mod4 G" { Actions = "Maxfill True True" }
91 # Marking
92 KeyPress = "Mod4 Z" { Actions = "Toggle Marked" }
93 KeyPress = "Mod4 A" { Actions = "AttachMarked" }
94 # Tagging
95 KeyPress = "Mod4 T" { Actions = "Toggle Tagged False" }
96 # Menus
97 KeyPress = "Mod4 W" { Actions = "ShowMenu Window" }
98 KeyPress = "Mod4 L" { Actions = "ShowMenu Goto" }
99 KeyPress = "Mod4 C" { Actions = "ShowMenu GotoClient" }
100 KeyPress = "Mod4 Shift I" { Actions = "ShowMenu Icon" }
101 KeyPress = "Mod4 X" { Actions = "HideAllMenus" }
104 # - - ----------------------------------------------- - -
105 # CHAINS. These give you access to just about everything.
106 # Move to Corner
107 Chain = "Ctrl Mod1 C" {
108 KeyPress = "Q" { Actions = "MoveToEdge TopLeft" }
109 KeyPress = "Y" { Actions = "MoveToEdge TopCenterEdge" }
110 KeyPress = "W" { Actions = "MoveToEdge TopCenterEdge" }
111 KeyPress = "Shift Y" { Actions = "MoveToEdge TopEdge" }
112 KeyPress = "Shift W" { Actions = "MoveToEdge TopEdge" }
113 KeyPress = "P" { Actions = "MoveToEdge TopRight" }
114 KeyPress = "E" { Actions = "MoveToEdge TopRight" }
115 KeyPress = "A" { Actions = "MoveToEdge LeftCenterEdge" }
116 KeyPress = "Shift A" { Actions = "MoveToEdge LeftEdge" }
117 KeyPress = "L" { Actions = "MoveToEdge RightCenterEdge" }
118 KeyPress = "D" { Actions = "MoveToEdge RightCenterEdge" }
119 KeyPress = "Shift L" { Actions = "MoveToEdge RightEdge" }
120 KeyPress = "Shift D" { Actions = "MoveToEdge RightEdge" }
121 KeyPress = "Z" { Actions = "MoveToEdge BottomLeft" }
122 KeyPress = "B" { Actions = "MoveToEdge BottomCenterEdge" }
123 KeyPress = "X" { Actions = "MoveToEdge BottomCenterEdge" }
124 KeyPress = "Shift B" { Actions = "MoveToEdge BottomEdge" }
125 KeyPress = "Shift X" { Actions = "MoveToEdge BottomEdge" }
126 KeyPress = "M" { Actions = "MoveToEdge BottomRight" }
127 KeyPress = "C" { Actions = "MoveToEdge BottomRight" }
128 KeyPress = "H" { Actions = "MoveToEdge Center" }
129 KeyPress = "S" { Actions = "MoveToEdge Center" }
130 }
131 # Menus
132 Chain = "Ctrl Mod1 M" {
133 KeyPress = "R" { Actions = "ShowMenu Root" }
134 KeyPress = "W" { Actions = "ShowMenu Window" }
135 KeyPress = "I" { Actions = "ShowMenu Icon" }
136 KeyPress = "G" { Actions = "ShowMenu Goto" }
137 KeyPress = "C" { Actions = "ShowMenu GotoClient" }
138 KeyPress = "D" { Actions = "ShowMenu Decor" }
139 KeyPress = "A" { Actions = "ShowMenu AttachClientInFrame" }
140 KeyPress = "F" { Actions = "ShowMenu AttachFrameInFrame" }
141 Keypress = "Shift A" { Actions = "ShowMenu AttachClient" }
142 Keypress = "Shift F" { Actions = "ShowMenu AttachFrame" }
143 KeyPress = "X" { Actions = "HideAllMenus" }
144 }
145 # Grouping
146 Chain = "Ctrl Mod1 T" {
147 KeyPress = "T" { Actions = "Toggle Tagged False" }
148 KeyPress = "B" { Actions = "Toggle Tagged True" }
149 KeyPress = "C" { Actions = "Unset Tagged" }
150 KeyPress = "G" { Actions = "Toggle GlobalGrouping" }
151 KeyPress = "M" { Actions = "Toggle Marked" }
152 KeyPress = "A" { Actions = "AttachMarked" }
153 KeyPress = "D" { Actions = "Detach" }
154 Keypress = "P" { Actions = "AttachClientInNextFrame" }
155 KeyPress = "O" { Actions = "AttachClientInPrevFrame" }
156 Keypress = "I" { Actions = "AttachFrameInNextFrame" }
157 KeyPress = "U" { Actions = "AttachFrameInPrevFrame" }
158 }
159 # Decor Toggles
160 Chain = "Ctrl Mod1 D" {
161 KeyPress = "B" { Actions = "Toggle DecorBorder" }
162 KeyPress = "T" { Actions = "Toggle DecorTitlebar" }
163 KeyPress = "D" { Actions = "Toggle DecorBorder; Toggle DecorTitlebar" }
164 }
165 # Window Actions
166 Chain = "Ctrl Mod1 A" {
167 Chain = "G" {
168 KeyPress = "G" { Actions = "MaxFill True True" }
169 KeyPress = "V" { Actions = "MaxFill False True" }
170 KeyPress = "H" { Actions = "MaxFill True False" }
171 }
172 Chain = "M" {
173 KeyPress = "M" { Actions = "Toggle Maximized True True" }
174 KeyPress = "V" { Actions = "Toggle Maximized False True" }
175 KeyPress = "H" { Actions = "Toggle Maximized True False" }
176 }
177 Chain = "Q" {
178 KeyPress = "Q" { Actions = "Close" }
179 KeyPress = "F" { Actions = "CloseFrame" }
180 KeyPress = "K" { Actions = "Kill" }
181 }
182 KeyPress = "S" { Actions = "Toggle Shaded" }
183 KeyPress = "A" { Actions = "Toggle Sticky" }
184 KeyPress = "O" { Actions = "Toggle AlwaysOnTop" }
185 KeyPress = "B" { Actions = "Toggle AlwaysBelow" }
186 KeyPress = "I" { Actions = "Set Iconified" }
187 KeyPress = "R" { Actions = "Raise" }
188 KeyPress = "Shift R" { Actions = "Raise True" }
189 KeyPress = "L" { Actions = "Lower" }
190 KeyPress = "Shift L" { Actions = "Lower True" }
191 KeyPress = "X" { Actions = "ActivateOrRaise" }
192 KeyPress = "Return" { Actions = "MoveResize" }
193 KeyPress = "F" { Actions = "Toggle Fullscreen" }
194 KeyPress = "Left" { Actions = "GrowDirection Left" }
195 KeyPress = "Right" { Actions = "GrowDirection Right" }
196 KeyPress = "Up" { Actions = "GrowDirection Up" }
197 KeyPress = "Down" { Actions = "GrowDirection Down" }
198 }
199 # Moving in Frames
200 Chain = "Ctrl Mod1 F" {
201 KeyPress = "P" { Actions = "NextFrame AlwaysRaise" }
202 KeyPress = "O" { Actions = "PrevFrame AlwaysRaise" }
203 KeyPress = "Shift P" { Actions = "NextFrameMRU EndRaise" }
204 KeyPress = "Shift O" { Actions = "PrevFrameMRU EndRaise" }
205 KeyPress = "I" { Actions = "ActivateClientRel 1" }
206 KeyPress = "U" { Actions = "ActivateClientRel -1" }
207 KeyPress = "Shift I" { Actions = "MoveClientRel 1" }
208 KeyPress = "Shift U" { Actions = "MoveClientRel -1" }
209 KeyPress = "Up" { Actions = "FocusDirectional Up" }
210 KeyPress = "Down" { Actions = "FocusDirectional Down" }
211 KeyPress = "Left" { Actions = "FocusDirectional Left" }
212 Keypress = "Right" { Actions = "FocusDirectional Right" }
213 KeyPress = "1" { Actions = "ActivateClientNum 1" }
214 KeyPress = "2" { Actions = "ActivateClientNum 2" }
215 KeyPress = "3" { Actions = "ActivateClientNum 3" }
216 KeyPress = "4" { Actions = "ActivateClientNum 4" }
217 KeyPress = "5" { Actions = "ActivateClientNum 5" }
218 KeyPress = "6" { Actions = "ActivateClientNum 6" }
219 KeyPress = "7" { Actions = "ActivateClientNum 7" }
220 KeyPress = "8" { Actions = "ActivateClientNum 8" }
221 KeyPress = "9" { Actions = "ActivateClientNum 9" }
222 KeyPress = "0" { Actions = "ActivateClientNum 10" }
223 KeyPress = "C" { Actions = "ShowCmdDialog GotoClientID " }
224 }
225 # Workspaces
226 Chain = "Ctrl Mod1 W" {
227 KeyPress = "Right" { Actions = "GoToWorkspace Right" }
228 KeyPress = "Left" { Actions = "GoToWorkspace Left" }
229 KeyPress = "N" { Actions = "GoToWorkspace Next" }
230 KeyPress = "P" { Actions = "GoToWorkspace Prev" }
231 KeyPress = "1" { Actions = "GoToWorkspace 1" }
232 KeyPress = "2" { Actions = "GoToWorkspace 2" }
233 KeyPress = "3" { Actions = "GoToWorkspace 3" }
234 KeyPress = "4" { Actions = "GoToWorkspace 4" }
235 KeyPress = "5" { Actions = "GoToWorkspace 5" }
236 KeyPress = "6" { Actions = "GoToWorkspace 6" }
237 KeyPress = "7" { Actions = "GoToWorkspace 7" }
238 KeyPress = "8" { Actions = "GoToWorkspace 8" }
239 KeyPress = "9" { Actions = "GoToWorkspace 9" }
240 KeyPress = "Up" { Actions = "SendToWorkspace Next; GoToWorkspace Next" }
241 KeyPress = "Down" { Actions = "SendToWorkspace Prev; GoToWorkspace Prev" }
242 KeyPress = "F1" { Actions = "SendToWorkspace 1" }
243 KeyPress = "F2" { Actions = "SendToWorkspace 2" }
244 KeyPress = "F3" { Actions = "SendToWorkspace 3" }
245 KeyPress = "F4" { Actions = "SendToWorkspace 4" }
246 KeyPress = "F5" { Actions = "SendToWorkspace 5" }
247 KeyPress = "F6" { Actions = "SendToWorkspace 6" }
248 KeyPress = "F7" { Actions = "SendToWorkspace 7" }
249 KeyPress = "F8" { Actions = "SendToWorkspace 8" }
250 KeyPress = "F9" { Actions = "SendToWorkspace 9" }
252 }
253 # External commands
254 Chain = "Ctrl Mod1 E" {
255 KeyPress = "E" { Actions = "Exec $TERM" }
256 KeyPress = "L" { Actions = "Exec xlock -mode blank &" }
257 KeyPress = "S" { Actions = "Exec scrot &" }
258 KeyPress = "C" { Actions = "ShowCmdDialog" }
259 }
260 # Wm actions
261 Chain = "Ctrl Mod1 P" {
262 KeyPress = "Delete" { Actions = "Reload" }
263 KeyPress = "Next" { Actions = "Restart" }
264 KeyPress = "End" { Actions = "Exit" }
265 KeyPress = "Prev" { Actions = "RestartOther twm" }
266 KeyPress = "D" { Actions = "ShowCmdDialog" }
267 KeyPress = "H" { Actions = "Toggle HarbourHidden" }
268 }
269 # Skipping
270 Chain = "Ctrl Mod1 S" {
271 Keypress = "M" { Actions = "Toggle Skip Menus" }
272 Keypress = "F" { Actions = "Toggle Skip FocusToggle" }
273 Keypress = "S" { Actions = "Toggle Skip Snap" }
274 }
275 }
277 # Keys when MoveResize is active
278 MoveResize {
279 Keypress = "Left" { Actions = "ResizeHorizontal -10" }
280 Keypress = "Right" { Actions = "ResizeHorizontal 10" }
281 Keypress = "Up" { Actions = "ResizeVertical -10" }
282 Keypress = "Down" { Actions = "ResizeVertical 10" }
283 KeyPress = "Mod4 Left" { Actions = "MoveHorizontal -10" }
284 KeyPress = "Mod4 Right" { Actions = "MoveHorizontal 10" }
285 KeyPress = "Mod4 Up" { Actions = "MoveVertical -10" }
286 KeyPress = "Mod4 Down" { Actions = "MoveVertical 10" }
287 Keypress = "s" { Actions = "MoveSnap" }
288 Keypress = "Escape" { Actions = "Cancel" }
289 Keypress = "q" { Actions = "Cancel" }
290 Keypress = "Return" { Actions = "End" }
291 # Extra Pekwm default keys
292 Keypress = "Mod1 Left" { Actions = "ResizeHorizontal -10" }
293 Keypress = "Mod1 Right" { Actions = "ResizeHorizontal 10" }
294 Keypress = "Mod1 Up" { Actions = "ResizeVertical -10" }
295 Keypress = "Mod1 Down" { Actions = "ResizeVertical 10" }
296 Keypress = "Shift Mod4 Left" { Actions = "ResizeHorizontal -1" }
297 Keypress = "Shift Mod4 Right" { Actions = "ResizeHorizontal 1" }
298 Keypress = "Shift Mod4 Up" { Actions = "ResizeVertical -1" }
299 Keypress = "Shift Mod4 Down" { Actions = "ResizeVertical 1" }
300 Keypress = "Shift Mod1 Left" { Actions = "ResizeHorizontal -1" }
301 Keypress = "Shift Mod1 Right" { Actions = "ResizeHorizontal 1" }
302 Keypress = "Shift Mod1 Up" { Actions = "ResizeVertical -1" }
303 Keypress = "Shift Mod1 Down" { Actions = "ResizeVertical 1" }
304 Keypress = "Shift Left" { Actions = "MoveHorizontal -1" }
305 Keypress = "Shift Right" { Actions = "MoveHorizontal 1" }
306 Keypress = "Shift Up" { Actions = "MoveVertical -1" }
307 Keypress = "Shift Down" { Actions = "MoveVertical 1" }
309 }
311 # Keys for CmdDialog editing
312 InputDialog {
313 KeyPress = "Left" { Actions = "CursPrev" }
314 KeyPress = "Right" { Actions = "CursNext" }
315 KeyPress = "Ctrl A" { Actions = "CursBegin" }
316 KeyPress = "Ctrl E" { Actions = "CursEnd" }
317 KeyPress = "BackSpace" { Actions = "Erase;CompleteAbort" }
318 KeyPress = "Ctrl K" { Actions = "ClearFromCursor" }
319 KeyPress = "Ctrl C" { Actions = "Clear" }
320 KeyPress = "Return" { Actions = "Exec" }
321 KeyPress = "Escape" { Actions = "Close" }
322 KeyPress = "Up" { Actions = "HistPrev" }
323 KeyPress = "Down" { Actions = "HistNext" }
324 KeyPress = "Ctrl P" { Actions = "HistPrev" }
325 KeyPress = "Ctrl N" { Actions = "HistNext" }
326 KeyPress = "Ctrl B" { Actions = "CursPrev" }
327 KeyPress = "Ctrl F" { Actions = "CursNext" }
328 KeyPress = "Tab" { Actions = "Complete" }
329 KeyPress = "Any Any" { Actions = "Insert" }
330 }
332 # Keys working in menus
333 Menu {
334 KeyPress = "Down" { Actions = "NextItem" }
335 KeyPress = "Up" { Actions = "PrevItem" }
336 KeyPress = "Ctrl N" { Actions = "NextItem" }
337 KeyPress = "Ctrl P" { Actions = "PrevItem" }
338 KeyPress = "Left" { Actions = "LeaveSubmenu" }
339 KeyPress = "Right" { Actions = "EnterSubmenu" }
340 KeyPress = "Return" { Actions = "Select" }
341 KeyPress = "space" { Actions = "Select" }
342 KeyPress = "Escape" { Actions = "Close" }
343 KeyPress = "Q" { Actions = "Close" }
344 }