Plugin that shows current keyboard layout.
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.
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
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 '-'
Make output length equal to 2
set -g @keyboard_layout:length 2