2 unstable releases

0.2.0 Dec 30, 2022
0.1.0 Nov 22, 2022

#8 in #modifier

MIT/Apache

22KB
604 lines

pino_xmodmap

tiny xmodmap parsing library

crates.io docs.rs MIT/Apache 2.0

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();
}

No runtime deps