autokey-wayland-input
v0.0.3
Published
AutoKey client for Wayland input emulation
Maintainers
Readme
autokey-wayland-input
Node.js client for Wayland input automation using a native addon (N-API + libei/libportal/xkbcommon).
Installation
npm install autokey-wayland-inputBuild prerequisites (Linux)
python3make- C++17 toolchain
- pkg-config packages for:
libei-1.0libeis-1.0libportalglib-2.0xkbcommon
Build
npm run buildUsage
const { AutoKey, AutoKeyButton } = require("autokey-wayland-input");
async function run() {
const ak = new AutoKey();
await ak.connect();
await ak.move(100, 100);
await ak.click(AutoKeyButton.MouseLeft);
await ak.text("Hello from AutoKey");
await ak.disconnect();
}
run().catch(console.error);Debug logs
Set one of these environment variables:
AUTOKEY_DEBUG=1DEBUG=1
