blob: 223851d5da816bcc767dc7dab7a1b2e29b0f041a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ config, lib, pkgs, ... }:
with lib; let
cfg = config.local.environ;
in
{
options.local.environ.tmuxPass = {
enable = mkEnableOption "tmux-pass plugin";
};
config = mkIf cfg.enable {
programs.tmux = {
enable = true;
aggressiveResize = true;
clock24 = true;
escapeTime = 10;
terminal = "xterm-256color";
keyMode = "vi";
plugins = optional cfg.tmuxPass.enable {
plugin = pkgs.local.tmux-pass;
extraConfig = ''
set -g @pass-key BSpace
set -g @pass-copy-to-clipboard on
set -g @pass-window-size 15
set -g @pass-hide-pw-from-preview 'on'
set -g @pass-hide-preview on
'';
};
extraConfig = ''
set -g mouse on
set -ga update-environment " LIFT_PID"
set -g set-titles on
set -g renumber-windows on
set -sa terminal-overrides ',xterm-termite:RGB'
set -g status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,} %H:%M %d-%b-%y"
bind-key X set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
'';
};
};
}
|