Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.02 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.02 KB

README

About

sway-relative-keyboard-rs is program for Sway, that remembers your keyboard layout for each window and restores it on focus change.

Installation

Build from source:

  1. Clone source code from this repository:

    git clone https://github.com/dmyTRUEk/sway-relative-keyboard-rs
    
  2. Compile it:

    cargo build --release
    

    After successful build, you can find binary here:

    path_to_src/target/release/sway-relative-keyboard-rs
    
  3. Move binary to preffered folder, for example to $HOME/.local/bin/.

  4. 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 change exec_always back to exec, so it executes only on sway startup.