-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.nix
59 lines (53 loc) · 1.56 KB
/
tmux.nix
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{pkgs, ...}: {
programs.tmux = {
enable = true;
shell = "${pkgs.fish}/bin/fish";
keyMode = "vi";
newSession = true;
escapeTime = 0;
baseIndex = 1;
plugins = with pkgs; [
# {
# plugin = tmuxPlugins.catppuccin;
# extraConfig = ''
# set -g @catppuccin_flavour 'frappe'
# set -g @catppuccin_window_tabs_enabled on
# set -g @catppuccin_date_time "%H:%M"
# '';
# }
# {
# plugin = tmuxPlugins.resurrect;
# extraConfig = ''
# set -g @resurrect-capture-pane-contents 'on'
# '';
# }
# {
# plugin = tmuxPlugins.continuum;
# extraConfig = ''
# set -g @continuum-restore 'on'
# set -g @continuum-boot 'on'
# set -g @continuum-save-interval '10'
# '';
# }
{plugin = tmuxPlugins.sensible;}
{plugin = tmuxPlugins.vim-tmux-navigator;}
{plugin = tmuxPlugins.cpu;}
{plugin = tmuxPlugins.better-mouse-mode;}
];
extraConfig = ''
set -g status-right '#[fg=color15] #{cpu_percentage} %h %d %H:%M '
set-option -g history-limit 10000
set-option -sa terminal-features ',fish*:RGB'
set-option -sa terminal-overrides ",xterm*:Tc"
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
set-option -g status-style default
set-option -g status-position top
set -g allow-passthrough on
set -g repeat-time 1000
set -ga update-environment TERM
set -ga update-environment TERM_PROGRAM
'';
};
}