Giter Site home page Giter Site logo

esamattis / deno_karabiner Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 3.0 211 KB

Write Complex Modifications for Karabiner-Elements using Typescript and Deno.

Home Page: https://deno.land/x/karabiner

License: MIT License

Shell 0.39% TypeScript 99.61%
deno typescript

deno_karabiner's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

deno_karabiner's Issues

No types from package...?

Hey man, nice idea using typescript to manipulate karabiner!

I haven't really played with Deno so I'm not sure if I'm doing something wrong or if its a bug on your end:

When I import deno_karabiner like so:

import { KarabinerComplexModifications } from "https://deno.land/x/[email protected]/karabiner.ts";

Then KarabinerComplexModifications is type any.

Any idea what's going wrong?

Equivalent of simlayer from Goku

Hi,

I just found your library and it looks quite good. Especially because I find it hard to get my head around the DSL from Goku and wanted to give your idea a try.

What I'm searching for is the equivalent of a simlayer from goku (see: https://github.com/yqrashawn/GokuRakuJoudo/blob/master/tutorial.md#advance3).

What I would like to do is to have a layer that is activating on "holding down f".

What I did until now is this:

import {
    HyperKey,
    KarabinerComplexModifications,
} from "https://deno.land/x/[email protected]/karabiner.ts";

const f_mode = new HyperKey({
    id: "f_mode",
    description: "F Mode",
    from: {
        key_code: "f"
    }
});

f_mode.bindKey({symbol: "j", description: "j", key: "j", to: [{key_code: "left_arrow"}]});
f_mode.bindKey({symbol: "k", description: "k", key: "k", to: [{key_code: "down_arrow"}]});
f_mode.bindKey({symbol: "i", description: "i", key: "i", to: [{key_code: "up_arrow"}]});
f_mode.bindKey({symbol: "l", description: "l", key: "l", to: [{key_code: "right_arrow"}]});

const mods = new KarabinerComplexModifications();

mods.addRule(f_mode.getRules());
mods.writeToProfile("Deno");

When I hold down f it works (using jkil for navigation), but when I only tab f it does not print the regular f character.

Would you be able to take a look and help me out?

Cheers
Mario

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.