sway-relative-keyboard-rs
is program for Sway,
that remembers your keyboard layout for each window and restores it on focus change.
-
Clone source code from this repository:
git clone https://github.com/dmyTRUEk/sway-relative-keyboard-rs
-
Compile it:
cargo build --release
After successful build, you can find binary here:
path_to_src/target/release/sway-relative-keyboard-rs
-
Move binary to preffered folder, for example to
$HOME/.local/bin/
. -
Add binary to sway "startup":
In your sway config file add this line:exec path/to/sway-relative-keyboard-rs
and then restart your pc (or sway?).
For example:
exec $HOME/.local/bin/sway-relative-keyboard-rs
If you want to get it work without restart, use
exec_always
, then reload your config file, then changeexec_always
back toexec
, so it executes only on sway startup.