Plugin to show current keyboard layout.
Go to file
Sardorbek Imomaliev f6a71a4a0b interpolate clenup
2021-03-14 23:38:52 +07:00
scripts allow to shorten keyboard layout output 2021-03-14 16:46:23 +07:00
.pre-commit-config.yaml Initial commit 2021-03-14 13:32:31 +07:00
keyboard_layout.tmux interpolate clenup 2021-03-14 23:38:52 +07:00
LICENSE Create LICENSE 2021-03-14 16:55:53 +07:00
README.md fix typo in readme for manual install 2021-03-14 21:15:50 +07:00

Tmux Keyboard Layout plugin

Plugin that shows current keyboard layout.

Usage

set -g status-right '#{keyboard_layout}'

Add plugin to the list of TPM plugins:

set -g @plugin 'imomaliev/tmux-keyboard-layout'

Press prefix + I to install it.

Manual Installation

Clone the repo:

$ git clone https://github.com/imomaliev/tmux-keyboard-layout.git ~/clone/path

Add this line to your .tmux.conf:

run-shell ~/clone/path/keyboard-layout.tmux

Reload TMUX environment with:

$ tmux source-file ~/.tmux.conf

Configurations

Change option scope (default g - global)

Follows same rules as set-option

Special case: To set scope to session use '-', because by default session scope used when no param is provided.

set -g @keyboard_layout:option_scope '-'

Change output length (default 16)

Make output length equal to 2

set -g @keyboard_layout:length 2

License

MIT