Language layout manager for i3 windows manager written in rust
Available on AUR for arch linux users: https://aur.archlinux.org/packages/i3langlayout/
For other distros follow these simple steps:
- git clone
- cargo build --release
- copy ./target/release/i3langlayout to wherever your binary files go
To start it up automatically, add this line to your i3 config
exec --no-startup-id i3langlayout
usermod -aG input your-user
For program to work you have to either be user that can read input events (usually input group, but may vary from distro to distro, just check access rights for events in /dev/input/) or you can start the program with superuser rights, but this is not recommended
Config file is located in ~/.config/i3langlayout/config.toml
Right now it has only 3 fields:
- layouts - list of keyboard layouts to cycle through, values are strings of xkblayouts, full list of options you can find in /usr/share/X11/xkb/symbols
- separate_workspaces - boolean value that indicates if each workspace should have separate layout
- hotkey - list of two values that indicate key code to switch layout. Full list of keycodes you can find in linux headers
Example of config file
layouts=["us", "il"]
separate_workspaces=true
hotkey=[56, 42]
It will cycle between English and Hebrew layouts on key combination Left Alt+Shift, and each workspace will have separate layout settings