Plugin to show current keyboard layout.
Go to file
2021-03-14 16:56:33 +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 allow to shorten keyboard layout output 2021-03-14 16:46:23 +07:00
LICENSE Create LICENSE 2021-03-14 16:55:53 +07:00
README.md Add readme instructions 2021-03-14 16:56:33 +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/tmux-keyboard-layout.tmux

Reload TMUX environment with:

$ tmux source-file ~/.tmux.conf

Configurations

Set layout on per session scope

Follows same rules as set-option

For example to set for session scope

set -g @keyboard_layout:option_scope ''

Make output shorter

For example make output length equal to 2

set -g @keyboard_layout:length 2

License

MIT