Skip to content

nanikamado/kiri-example-remapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sample key remapper using kiri

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages