Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.16 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.16 KB

Sample key remapper using kiri

How to config

See the main function of src/main.rs.

Installation

  1. Install Rust.
  2. git clone 'https://github.com/nanikamado/kiri-example-remapper'
  3. cd kiri-example-remapper
  4. cargo install --path .
  5. cp $HOME/.cargo/bin/kiri-example-remapper /usr/bin/kiri-example-remapper

Run

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.

Run automatically on startup (tested only in Fedora 36)

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