Awesome
Tmux Keyboard Layout plugin
Plugin that shows current keyboard layout.
Usage
set -g status-right '#{keyboard_layout}'
Installation with Tmux Plugin Manager (recommended)
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