Expand description

qsk-macros

qsk-macros contains the remap! macro that enables qsk users to concisely define their keyboard remapping layers. Usage looks like the following:

qsk_macros::remap!(
    ModLayer[Active]: {
        F -> TT(Navigation, F),
    },
    Navigation: {
        END -> Exit(),
        Y -> HOME,
        U -> PAGEDOWN,
        I -> PAGEUP,
        O -> END,
        H -> LEFT,
        J -> DOWN,
        K -> UP,
        SEMICOLON -> RIGHT,
    },
)

This mini keyboard-remapping DSL expands into a Rust expression with the type Result<LayerComposer>, which can is used in qsk’s remapping engine to actually perform keyboard transformations on input.

Macros