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:
Bruno BELANYI 2024-11-28 12:37:48 +00:00 committed by Robert Helgesson
parent 873e39d5f4
commit bf23fe4108
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
8 changed files with 17 additions and 0 deletions

View file

@ -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;