Shared bindings
There are three special node types that can be used when defining keybindings:
shared: the keybindings are present in all modesshared_except: the keybindings are present in all modes except the listed ones (hereresizeandlocked)shared_among: the keybindings are present only in the listed modes (hereresizeandlocked)
keybinds {
shared {
bind "Ctrl g" { SwitchToMode "locked"; }
}
shared_except "resize" "locked" {
bind "Ctrl g" { SwitchToMode "locked"; }
}
shared_among "resize" "locked" {
bind "Ctrl g" { SwitchToMode "locked"; }
}
}
The same node types can be used in the mousebinds block.