let keyutils = import <keyutils>;
# Inherit GDK_KEY_* and such.
with keyutils.keybinds;
# Inherit mask1, etc.
with keyutils;
in {
edit-last-message = key Up;
quick-switcher = mask1 CtrlMask K;
}
keyutils will provide functions such as:
mask1 for Ctrl+K
mask2 for Ctrl+Alt+K
etc.
as well as predefined constants for GDK keycodes with the cases transformed
accordingly, e.g. GDK_SHIFT_MASK to ShiftMask.
Translate this from Nix to Jsonnet:
keyutils
will provide functions such as:mask1
for Ctrl+Kmask2
for Ctrl+Alt+Kas well as predefined constants for GDK keycodes with the cases transformed accordingly, e.g.
GDK_SHIFT_MASK
toShiftMask
.Resources