-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.mod.nix
More file actions
65 lines (54 loc) · 1.74 KB
/
Copy pathtmux.mod.nix
File metadata and controls
65 lines (54 loc) · 1.74 KB
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
60
61
62
63
64
65
{...}: {
personal.modules = [
({pkgs, ...}: {
environment.systemPackages = with pkgs; [
tmux-sessionizer
];
})
];
personal.home_modules = [
({pkgs, ...}: {
programs.tmux = {
enable = true;
shortcut = "a";
clock24 = true;
escapeTime = 0;
plugins = with pkgs; [
tmuxPlugins.better-mouse-mode
];
extraConfig = ''
bind -n M-h previous-window
bind -n M-l next-window
bind -n M-1 select-window -t 1
bind -n M-2 select-window -t 2
bind -n M-3 select-window -t 3
bind -n M-4 select-window -t 4
bind -n M-5 select-window -t 5
bind -n M-6 select-window -t 6
bind -n M-7 select-window -t 7
bind -n M-8 select-window -t 8
bind -n M-9 select-window -t 9
setw -g mode-style "fg=green bg=black"
set -g pane-border-style "fg=red"
set -g pane-active-border-style "fg=yellow"
set -g status-position top
set -g status-justify centre
set -g status-style "fg=green"
set -g status-left ""
set -g status-left-length 10
set -g status-right ""
set -g status-right-length 10
set -g message-style "fg=yellow bg=red bold"
set-option -g mouse on
setw -g mode-keys vi
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
bind C-j display-popup -E "tms switch"
bind C-w display-popup -E "tms windows"
bind C-r command-prompt -p "rename: " "run-shell 'tms rename %1'"
'';
};
})
];
}