Sample key remapper using kiri
See the main function of src/main.rs.
- Install Rust.
git clone 'https://github.com/nanikamado/kiri-example-remapper'
cd kiri-example-remapper
cargo install --path .
cp $HOME/.cargo/bin/kiri-example-remapper /usr/bin/kiri-example-remapper
sudo kiri-example-remapper
or
cargo build
sudo target/debug/kiri-example-remapper
or
cargo build
sudo env RUST_LOG=trace target/debug/kiri
for debugging.
Replace "hoge-hoge-remapper" with the name you like.
cd kiri-example-remapper
cargo build --release
sudo cp target/release/kiri-example-remapper /usr/bin/hoge-hoge-remapper
echo '[Unit]
Description=hoge-hoge-remapper
[Service]
ExecStart=/usr/bin/hoge-hoge-remapper
Type=simple
[Install]
WantedBy = multi-user.target
' | sudo tee /etc/systemd/system/hoge-hoge-remapper.service
sudo systemctl enable hoge-hoge-remapper
sudo systemctl start hoge-hoge-remapper