tmux: add 'focusEvents'
With `tmux-sensible` being disabled by default, add an easy toggle to enable this functionality. Disabled by default, as in upstream `tmux`.
This commit is contained in:
parent
873e39d5f4
commit
bf23fe4108
8 changed files with 17 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ let
|
|||
''}
|
||||
|
||||
set -g mouse ${boolToStr cfg.mouse}
|
||||
set -g focus-events ${boolToStr cfg.focusEvents}
|
||||
setw -g aggressive-resize ${boolToStr cfg.aggressiveResize}
|
||||
setw -g clock-mode-style ${if cfg.clock24 then "24" else "12"}
|
||||
set -s escape-time ${toString cfg.escapeTime}
|
||||
|
|
@ -191,6 +192,15 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
focusEvents = mkOption {
|
||||
default = false;
|
||||
type = types.bool;
|
||||
description = ''
|
||||
On supported terminals, request focus events and pass them through to
|
||||
applications running in tmux.
|
||||
'';
|
||||
};
|
||||
|
||||
historyLimit = mkOption {
|
||||
default = 2000;
|
||||
example = 5000;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue