esamattis / deno_karabiner Goto Github PK
View Code? Open in Web Editor NEWWrite Complex Modifications for Karabiner-Elements using Typescript and Deno.
Home Page: https://deno.land/x/karabiner
License: MIT License
Write Complex Modifications for Karabiner-Elements using Typescript and Deno.
Home Page: https://deno.land/x/karabiner
License: MIT License
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?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.