karabiner.ts-greg-mods
Version:
Powerful mods for karabiner.ts.
24 lines (23 loc) • 758 B
TypeScript
import { BasicManipulator, Rule } from "karabiner.ts";
import { FromAndToKeyParam } from "./karabiner-extra";
/**
* Returns the variable that indicates shift OSM being active.
*/
export declare function shiftOsmVarName(): string;
export declare class ShiftOsmBuilder {
private ruleDescription;
private layerManipulators;
/**
* Sets the description for the rule.
*/
description(description: string): this;
shiftedKey(key: FromAndToKeyParam): this;
manipulators(...manipulators: BasicManipulator[]): this;
build(): Rule;
}
/**
* Returns a builder for a shift one shot modifier layer.
*
* The layer toggles on and off with a tap on the left or right shift key.
*/
export declare function shiftOsm(): ShiftOsmBuilder;