diffficult / tmux-keyblayout

Tmux plugin to display current keyboard layout mac or linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tmux Keyboard Layout plugin (forked from imomaliev/tmux-keyboard-layout)

Plugin that shows current keyboard layout on Linux or Mac

Usage

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

Installation with Tmux Plugin Manager (recommended)

Add plugin to the list of TPM plugins:

set -g @plugin 'diffficult/tmux-keyblayout'

Press prefix + I to install it.

Manual Installation

Clone the repo:

$ git clone https://github.com/diffficult/tmux-keyblayout.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

About

Tmux plugin to display current keyboard layout mac or linux

License:MIT License


Languages

Language:Shell 100.0%