-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.nix
68 lines (58 loc) · 1.99 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
60
61
62
63
64
65
66
67
68
{ inputs, lib, config, pkgs, ... }:
{
home.packages = with pkgs; [
tmux
];
programs.tmux = {
enable = true;
sensibleOnTop = false;
extraConfig = ''
set -g default-terminal "xterm-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
set-option -g default-shell ${pkgs.zsh}/bin/zsh
set -g status-keys vi
set-window-option -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key x kill-pane
set -g set-titles-string ' #{pane_title} '
set -g mouse on
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-window-option -g mode-style bg=0,fg=default,noreverse
set-window-option -g window-status-current-style bg=green,fg=black
setw -g window-status-format " #I:#W#F "
setw -g window-status-current-format " #I:#W#F "
set-window-option -g window-status-style fg=green
set-option -g renumber-windows on
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
# Remove C-b because that just sucks
unbind C-b
set -g prefix C-t
bind-key C-t send-prefix
set-option -g bell-action none
set -g status-position bottom
set -g status-justify left
set -g status-bg colour8
set -g status-fg blue
set -g status-right ' #(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD) #{=50:pane_current_path} %b %d %H:%M '
set -g status-right-length 200
set -g status-left '''
set -sg escape-time 0
set -g base-index 1
setw -g pane-base-index 1
set -g pane-border-format " #P: #{pane_current_command} "
# Allow passthrough so that image.nvim works.
set -gq allow-passthrough on
'';
plugins = with pkgs.tmuxPlugins; [
yank
fzf-tmux-url
vim-tmux-navigator
];
};
}