Comments (3)
hmm — evscript cannot remove emitted events, only create new ones (on a separate device) — so preventing the spacebar from repeating is not possible in a straightforward way.
I guess you'd have to remap the spacebar to some other key using… something (layouts in kernel?), and configure evscript to emit the space key when that key is pressed on its own.
Or use evscript as a proxy — forward all events from the original keyboard, modifying the spacebar — if you can prevent your compositor from picking up the original keyboard (something about udev labels?). I'm not a fan of this idea (a bit brittle and slightly increases latency), but I guess that shows the flexibility :)
from evscript.
I have not yet played with Wayland, but for X11 I do remap 'normal' keys using XCB, before xcape comes into play. The same thing would work for the spacebar, although don't know how to do that for wayland yet.
Are you saying that with a remapped spacebar one could implement SpaceFN relatively easily using your library?
btw) sorry for the question, but rust is not a language I'm that familiar with....and hence don't really see how to do this.
from evscript.
I mean, if you remap at a lower level, before evscript comes into play.
(btw, not a library, an executable that runs scripts written in Dyon, not Rust)
from evscript.
Related Issues (12)
- Cargo.Lock invalid? HOT 2
- Multiple keys remapings - How to contribute HOT 4
- Possible security improvements HOT 2
- Add Hyper_L, Hyper_R and Mode_switch keys to the stdlib HOT 4
- rusty-sandbox moved to crates.io HOT 2
- example not like xcape HOT 3
- thread 'main' panicked at 'ioctl: Sys(EINVAL)' HOT 12
- doesnt compile with openssl 1.1.1 HOT 2
- Remap helper(?) HOT 3
- Error running? HOT 11
- The main example doesn't work HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evscript.