xkb-i3 is a daemon that automate switching keyboard layout(keyboard language). On changing focus from some window or workspace to another, xkb-i3 will automatically switch the keyboard layout to the last layout used in the newly focused window or workspace.
- Xlib
- Go 1.22+
go install github.com/IslamWalid/xkb-i3/cmd/xkbi3@latest
Flags | Value | Description |
---|---|---|
mode |
Mode can be workspace or window . Default value is window |
Set which i3 element should the program track. If its value is workspace , all windows in the workspace share the same keyboard layout. Or if it is window , each window get tracked individually. |
i3blocks |
<signal> | Enable notifying i3blocks by setting the signal value which will be sent after any change in the keyboard layout. |
- window mode:
xkbi3
- workspace mode:
xkbi3 -mode workspace
- window mode with sending notifications to i3blocks
xkbi3 -i3blocks SIGRTMIN+12
- restore the last used layout after system shutdown or restart (works with workspace mode only).
- support notifying i3status.
- support notifying polybar.