#key-pressed #modifier #flags #occurs #released #xcape

app xcape-rs

implementation of XCAPE in Rust

3 releases (breaking)

0.4.0 Oct 29, 2021
0.2.0 Oct 27, 2021
0.1.0 Jan 17, 2021

#9 in #occurs

23 downloads per month

MIT license

21KB
510 lines

xcape-rs

Build

Rust-powered XCAPE

xcape: https://github.com/alols/xcape

xcape allows you to use a modifier key as another key when pressed and released on its own. Note that it is slightly slower than pressing the original key, because the pressed event does not occur until the key is released.

Usage

$ cargo run -- -h

implement xcape  Rust

USAGE:
    xcape-rs [FLAGS] [OPTIONS]

FLAGS:
    -d, --debug      debug flag
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -e, --expression <map>...    format: code=code|code|code
    -t, --timeout <timeout>      timeout(sec).

Sample

xcape -e '64=38' # alt=space

Todo

  • get Keysym from String

Dependencies

~8.5MB
~152K SLoC