$ cat ~/.pekwm/autoproperties
Code:
/*
Autoproperties. The default template and simple course of autopropping
to help you add your own autoproperties. See the documentation for
more keywords and the rest of what is possible through this file.
First, it's good to note that you can't just make up the property
string, you need to use a program called 'xprop' to show it. Please
conduct the documentation.
Another good tip is to make sure you have an ApplyOn entry. The
autoproperties you define won't do any good if you don't tell pekwm
when to apply them!
Third tip. You can't match a window with more than one property. The
first one that matches will be used, the rest ignored (see the gimp
example).
Note that the default entries are commented out, don't comment out your
own autoproperties. :)
*/
Require {
Templates = "True"
}
/*
Group terminal applications
*/
# Property = "(term|rxvt),(erm|xvt)" {
# ApplyOn = "New"
# Group = "term" {
# Size = "5"
# FocusedFirst = "True"
# Raise = "True"
# }
# }
/*
Remove decor of customize toolbar window of mozilla firefox.
*/
Property = "^(gecko|Gecko|firefox-bin),^Firefox-bin,,^Customize Toolbar\$" {
ApplyOn = "Start New TransientOnly"
Border = "False"
Titlebar = "False"
}
/*
Auto-group up to 10 mozilla download windows to group you call "moz-dl",
using a WM_CLASS and specifying the the download window using the
begining of its title. Make the windows go to the top-left corner of
your workspace and place them under other windows. Do this when new
windows show up, also to so called transient windows.
*/
# Property = "^mozilla-bin,^Mozilla-bin,,^Saving" {
# ApplyOn = "New Transient"
# Group = "moz-dl" { Size = "10" }
# FrameGeometry = "+0+0"
# Layer = "Below"
# }
/*
Group together up to two windows that have a WM_CLASS that matches the
property. Start these windows on workspace two.
*/
# Property = "^Mozilla,^navigator:browser" {
# ApplyOn = "Start New Workspace"
# Workspace = "2"
# }
/*
Group together an infinite number of windows that match the property.
When new windows are opened to this group, never make them the active
window of the group, but open them in the background. Make these
autoproperties apply on every pekwm start or when a new window is opened.
*/
# Property = "^dillo,^Dillo" {
# ApplyOn = "Start New"
# Group = "dillo" { Size = "0"; Behind = "True" }
# }
/*
Put property matching windows under other windows and make the window
appear on every workspace. Do not show matching windows on the pekwm
goto menus, do not include them in frame switching (mod1+tab) and do
not let other windows snap to them. Do this on pekwm start or when new
window is opened, also include transient windows (in the example,
xmms playlist and equalizer are transients).
*/
# Property = ".*,^xmms" {
# ApplyOn = "Start New Transient"
# Layer = "Desktop"
# Sticky = "True"
# Skip = "Menus FocusToggle Snap"
# }
/*
Remove Gimp windows from the menus, only show the main toolbox window.
Use the WM_WINDOW_ROLE to tell the difference between gimp windows.
First make sure the toolbox window doesn't get confused with the rest
of the windows. This just tells pekwm to ignore any matches for the
toolbox later on. Without this, the toolbox would match with "the rest
of the windows" and get ignored from the pekwm menus! We don't want that.
*/
# Property = "^gimp,^Gimp,gimp-toolbox" {
# ApplyOn = "Start New"
# }
/*
The Crop dialog always gets in the way, put it in the corner but place
it above other windows anyways. Don't show the window in pekwm menus.
*/
# Property = "^gimp,^Gimp,gimp-crop-tool" {
# ApplyOn = "Start New"
# Layer = "OnTop"
# FrameGeometry = "+0+0"
# Skip = "Menus"
# }
/*
The rest of the gimp windows should not show in pekwm menus eather.
*/
# Property = ".gimp,^Gimp" {
# ApplyOn = "Start New"
# Skip = "Menus";
# }
/*
This should start making sense to you by now.
*/
# Property = "^gkrellm,^Gkrellm" {
# ApplyOn = "Start New"
# Sticky = "True"
# Skip = "Menus FocusToggle"
# Layer = "Desktop"
# }
/*
Some useful standard application xclock xload and xbiff. This should
be fairly clear to you. In addition to what you've allready learned,
we make the windows appear without titlebars and borders. We are also
using the geometry in all its glory, defining the windows size in
addition to its position.
*/
# Property = "^xclock,^XClock" {
# ApplyOn = "Start New"
# ClientGeometry = "120x137+0-137"
# Border = "False"; Titlebar = "False"
# Sticky = "True"
# Layer = "Desktop"
# Skip = "Menus FocusToggle Snap"
# }
#
# Property = "^xload,^XLoad" {
# ApplyOn = "Start New"
# ClientGeometry = "560x137+120-137"
# Border = "False"; Titlebar = "False"
# Sticky = "True"
# Layer = "Desktop"
# Skip = "Menus FocusToggle Snap"
# }
#
# Property = "^xbiff,^XBiff" {
# ApplyOn = "Start New"
# ClientGeometry = "120x137-120-137"
# Border = "False"; Titlebar = "False"
# Sticky = "True"
# Layer = "Desktop"
# Skip = "Menus FocusToggle Snap"
# }
// End of autoproperties. -------------------------
TypeRules {
/*
Desktop windows such as nautilus window in gnome. These should
cover the root window and be below all other windows. Also they
should not be included in the menu and in snapping.
*/
Property = "DESKTOP" {
FrameGeometry = "0x0+0+0"
Titlebar = "False"
Border = "False"
Sticky = "True"
Skip = "FocusToggle Menus Snap"
Layer = "Desktop"
Focusable = "False"
}
Property = "DOCK" {
Titlebar = "False"
Border = "False"
Sticky = "True"
Layer = "Dock"
Skip = "FocusToggle Menus"
Focusable = "False"
}
Property = "TOOLBAR" {
Skip = "FocusToggle Menus Snap"
}
Property = "MENU" {
Titlebar = "False"
Border = "False"
Skip = "FocusToggle Menus Snap"
}
Property = "UTILITY" {
}
Property = "SPLASH" {
Titlebar = "False"
Border = "False"
Layer = "OnTop"
}
Property = "DIALOG" {
Layer = "OnTop"
}
Property = "NORMAL" {
}
}
/*
Next, we do some siple window title rewriting.
To make it simple, you can automatically make some windows get their
title edited. Cut out an annoying piece, add text, replace text.
This all happens in it's own section "TitleRules {}".
I don't like the way dillo uses its titlebar, it says "Dillo: webpage".
I want that "Dillo:" part to not show in the beginning, instead I want
to make it show as "webpage - dillo".
Then again, the "webpage - Mozilla Firefox" is too long for my taste.
I shorten it in the second titlerule. And I'll place the shortened text
in the beginning of the title just as a show how.
*/
# TitleRules {
# Property = "^dillo,^Dillo" {
# Rule = "/Dillo: (.*)/\\1 - dillo/"
# }
# Property = "^firefox-bin,^Firefox-bin" {
# Rule = "/(.*) - Mozilla Firefox/MF: \\1/"
# }
# }
// End of titlerules. -----------------------------
/*
Then for some harbour ordering done in it's own "Harbour {}" section.
This is simple really, but you might want to check the documentation on
how the positions work.
Obpager is allways the last dockapp, the cpuload application is the
first, and wmnd will get placed in the centre.
*/
# Harbour {
# Property = "^obpager,^obpager" {
# Position = "-1"
# }
# Property = ".*,.*cpuload" {
# Position = "1"
# }
# Property = ".*,^wmnd" {
# Position = "0"
# }
# }
// End of harbour order rules. --------------------
/*
Last, if you have a theme that supports it, or you have hacked one up
yourself, you can use the "DecorRules {}" section to make windows show
up with independent decorations.
Here we tell our terminal windows to use the special TERM decoration
section found from your theme. Note that this _needs_ a theme that
supports it.
*/
# DecorRules {
# Property = "^term,^xterm" {
# Decor = "TERM"
# }
# }
$ cat ~/.pekwm/keys
Code:
[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 = "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 = "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" }
}
}
# 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 = "Left" { Actions = "LeaveSubmenu" }
KeyPress = "Right" { Actions = "EnterSubmenu" }
KeyPress = "Return" { Actions = "Select" }
KeyPress = "space" { Actions = "Select" }
KeyPress = "Escape" { Actions = "Close" }
KeyPress = "Q" { Actions = "Close" }
}