2 unstable releases
0.2.0 | Dec 30, 2022 |
---|---|
0.1.0 | Nov 22, 2022 |
#8 in #modifier
22KB
604 lines
Requires xmodmap
to be installed on the system as this library directly calls
it and parses the output. Using this library is very simple:
use pino_xmodmap::{KeyTable, Modifier, KeySym};
fn main() {
let xmodmap = KeyTable::new().unwrap();
let a_key = xmodmap.get_key(KeySym::KEY_a).unwrap();
}
lib.rs
:
Tiny xmodmap parsing library
use pino_xmodmap::{KeyTable, Modifier, KeySym};
fn main() {
let xmodmap = KeyTable::new().unwrap();
let a_key = xmodmap.get_key(KeySym::KEY_a).unwrap();
}