package oxbow
Module Oxbow_ops.BindSource
install_defaults wm seat installs system default keybinds to seat.
Effects: mutates WM state
parse_modifier s maps recognized modifier strings to Wayland int32 representations. Recognized strings include:
- Shift
- Control
- Mod1|Alt
- Mod3
- Mod4|Super|Logo: i.e., the windows key
- Mod5
- None
Any other string returns Error "unrecognized".
parse_modifiers s is the modifier mask for the +-joined modifier names in s. Whitespace around each name is ignored.
list wm seat ~all is the JSON keybinding listing for seat; its name, stored mode, and bindings grouped by declared mode, or for every seat in wm when all is true.
Source
val handle :
Oxbow_state.Wm.t ->
Oxbow_state.Seat.t ->
Oxbow_ipc.Keymap.t ->
(Yojson.Safe.t option, string) resulthandle wm seat keymap applies the Bind/Unbind keymap.
Effects: mutates WM state