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