sorry, no commit msg
This commit is contained in:
parent
ee0d13f225
commit
831c51fcec
27 changed files with 278 additions and 91 deletions
|
|
@ -1,6 +1,8 @@
|
|||
|
||||
dopath("cfg_defaults")
|
||||
|
||||
dopath("mod_statusbar")
|
||||
|
||||
-- Mod1 = Alt
|
||||
-- Mod4 = Window
|
||||
-- rajouter "+" après le code pour les concaténations suivantes
|
||||
|
|
@ -81,8 +83,11 @@ defbindings("WScreen", {
|
|||
kpress(META.."8", "WScreen.switch_nth(_, 7)"),
|
||||
kpress(META.."9", "WScreen.switch_nth(_, 8)"),
|
||||
kpress(META.."0", "WScreen.switch_nth(_, 9)"),
|
||||
|
||||
kpress(META.."N", "ioncore.goto_nextact()")
|
||||
|
||||
kpress(META.."N", "ioncore.goto_nextact()"),
|
||||
|
||||
bdoc("Create a new workspace of chosen default type."),
|
||||
kpress(META.."F9", "ioncore.create_ws(_)")
|
||||
})
|
||||
|
||||
defbindings("WTiling", {
|
||||
|
|
@ -115,7 +120,101 @@ defbindings("WTiling", {
|
|||
kpress(META.."D", "WTiling.unsplit_at(_, _sub)"),
|
||||
})
|
||||
|
||||
defbindings("WScreen", {
|
||||
bdoc("Toggle scratchpad."),
|
||||
kpress(META.."space", "mod_sp.set_shown_on(_, 'toggle')"),
|
||||
|
||||
-- A more ideal key for toggling the scratchpad would be the key left of
|
||||
-- the key for numeral 1. Unfortunately the symbols mapped to this key
|
||||
-- vary by the keyboard layout, and to be fully portable to different
|
||||
-- architechtures and fancy keyboards, we can't rely on keycodes either.
|
||||
-- However, on standard Finnish/Swedish (and other Nordic) keyboard
|
||||
-- layouts the following should work:
|
||||
--kpress(META.."section", "mod_sp.set_shown_on(_, 'toggle')"),
|
||||
-- and on UK and US layouts this should work:
|
||||
--kpress(META.."grave", "mod_sp.set_shown_on(_, 'toggle')"),
|
||||
})
|
||||
|
||||
-- pour mettre la stalonetray dans le dock
|
||||
-- defwinprop {class="stalonetray", statusbar="dock"}
|
||||
|
||||
-- WFrame context bindings
|
||||
--
|
||||
-- These bindings are common to all types of frames. Some additional
|
||||
-- frame bindings are found in some modules' configuration files.
|
||||
|
||||
defbindings("WFrame", {
|
||||
submap(META.."K", {
|
||||
bdoc("Maximize the frame horizontally/vertically."),
|
||||
kpress("H", "WFrame.maximize_horiz(_)"),
|
||||
kpress("V", "WFrame.maximize_vert(_)"),
|
||||
}),
|
||||
|
||||
bdoc("Display context menu."),
|
||||
mpress("Button3", "mod_menu.pmenu(_, _sub, 'ctxmenu')"),
|
||||
|
||||
bdoc("Begin move/resize mode."),
|
||||
kpress(META.."R", "WFrame.begin_kbresize(_)"),
|
||||
|
||||
bdoc("Switch the frame to display the object indicated by the tab."),
|
||||
mclick("Button1@tab", "WFrame.p_switch_tab(_)"),
|
||||
mclick("Button2@tab", "WFrame.p_switch_tab(_)"),
|
||||
|
||||
bdoc("Resize the frame."),
|
||||
mdrag("Button1@border", "WFrame.p_resize(_)"),
|
||||
mdrag(META.."Button3", "WFrame.p_resize(_)"),
|
||||
|
||||
bdoc("Move the frame."),
|
||||
mdrag(META.."Button1", "WFrame.p_move(_)"),
|
||||
|
||||
bdoc("Move objects between frames by dragging and dropping the tab."),
|
||||
mdrag("Button1@tab", "WFrame.p_tabdrag(_)"),
|
||||
mdrag("Button2@tab", "WFrame.p_tabdrag(_)"),
|
||||
|
||||
bdoc("Switch to next/previous object within the frame."),
|
||||
mclick(META.."Button4", "WFrame.switch_next(_)"),
|
||||
mclick(META.."Button5", "WFrame.switch_prev(_)"),
|
||||
})
|
||||
|
||||
|
||||
-- WMoveresMode context bindings
|
||||
--
|
||||
-- These bindings are available keyboard move/resize mode. The mode
|
||||
-- is activated on frames with the command begin_kbresize (bound to
|
||||
-- META.."R" above by default).
|
||||
|
||||
defbindings("WMoveresMode", {
|
||||
bdoc("Cancel the resize mode."),
|
||||
kpress("AnyModifier+Escape","WMoveresMode.cancel(_)"),
|
||||
|
||||
bdoc("End the resize mode."),
|
||||
kpress("AnyModifier+Return","WMoveresMode.finish(_)"),
|
||||
|
||||
bdoc("Grow in specified direction."),
|
||||
kpress("Left", "WMoveresMode.resize(_, 1, 0, 0, 0)"),
|
||||
kpress("Right", "WMoveresMode.resize(_, 0, 1, 0, 0)"),
|
||||
kpress("Up", "WMoveresMode.resize(_, 0, 0, 1, 0)"),
|
||||
kpress("Down", "WMoveresMode.resize(_, 0, 0, 0, 1)"),
|
||||
|
||||
bdoc("Shrink in specified direction."),
|
||||
kpress("Shift+Left", "WMoveresMode.resize(_,-1, 0, 0, 0)"),
|
||||
kpress("Shift+Right", "WMoveresMode.resize(_, 0,-1, 0, 0)"),
|
||||
kpress("Shift+Up", "WMoveresMode.resize(_, 0, 0,-1, 0)"),
|
||||
kpress("Shift+Down", "WMoveresMode.resize(_, 0, 0, 0,-1)"),
|
||||
|
||||
bdoc("Move in specified direction."),
|
||||
kpress(META.."Left", "WMoveresMode.move(_,-1, 0)"),
|
||||
kpress(META.."Right", "WMoveresMode.move(_, 1, 0)"),
|
||||
kpress(META.."Up", "WMoveresMode.move(_, 0,-1)"),
|
||||
kpress(META.."Down", "WMoveresMode.move(_, 0, 1)"),
|
||||
})
|
||||
|
||||
|
||||
-- Client window group bindings
|
||||
|
||||
defbindings("WGroupCW", {
|
||||
bdoc("Toggle client window group full-screen mode"),
|
||||
kpress_wait(META.."Return", "WGroup.set_fullscreen(_, 'toggle')"),
|
||||
})
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue