Automatic keyboard layout switching for Hyprland - each window remembers its own keyboard layout.
Requirements: At least 2 keyboard layouts in hyprland.conf
# e.g.
yay -Sy && yay -S hyprland-per-window-layout
Add to hyprland.conf:
exec-once = /usr/bin/hyprland-per-window-layout
cargo install hyprland-per-window-layout
Add to hyprland.conf:
exec-once = ~/.cargo/bin/hyprland-per-window-layout
Activate wayland overlay as described in README, allow ~amd64 keyword and then install it:
# emerge --ask gui-apps/hyprland-per-window-layout
git clone https://github.com/coffebar/hyprland-per-window-layout.git
cd hyprland-per-window-layout
cargo build --release
mkdir -p ~/.local/bin/
cp target/release/hyprland-per-window-layout ~/.local/bin/
Add to hyprland.conf:
exec-once = ~/.local/bin/hyprland-per-window-layout
Optional. See configuration.md for setting default layouts per application.
Bug reports and PRs are welcome! See CONTRIBUTING.md for guidelines.
Tested on Hyprland v0.50.
$ claude mcp add hyprland-per-window-layout \
-- python -m otcore.mcp_server <graph>