Fixed tmux
This commit is contained in:
parent
372d2fb3c9
commit
664e629237
2 changed files with 17 additions and 20 deletions
|
@ -14,6 +14,7 @@
|
||||||
./network.nix
|
./network.nix
|
||||||
./programs.nix
|
./programs.nix
|
||||||
./system.nix
|
./system.nix
|
||||||
|
../shared/dunst/default.nix
|
||||||
];
|
];
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
overlays = [
|
overlays = [
|
||||||
|
|
|
@ -3,19 +3,15 @@
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mouse = true;
|
mouse = true;
|
||||||
|
prefix = "C-a";
|
||||||
|
terminal = "st";
|
||||||
|
keyMode = "vi";
|
||||||
|
escapeTime = 0;
|
||||||
|
baseIndex = 1;
|
||||||
plugins = with pkgs; [
|
plugins = with pkgs; [
|
||||||
tmuxPlugins.sensible
|
tmuxPlugins.sensible
|
||||||
tmuxPlugins.pain-control
|
tmuxPlugins.pain-control
|
||||||
tmuxPlugins.sessionist
|
tmuxPlugins.sessionist
|
||||||
tmuxPlugins.yank
|
|
||||||
# tmuxPlugins.copycat
|
|
||||||
{
|
|
||||||
plugin = tmuxPlugins.continuum;
|
|
||||||
extraConfig = ''
|
|
||||||
set -g @continuum-boot 'on'
|
|
||||||
set -g @continuum-restore 'on'
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
plugin = fw-pkgs.tmuxPlugins.minimal;
|
plugin = fw-pkgs.tmuxPlugins.minimal;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
@ -24,23 +20,23 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
prefix = "C-a";
|
|
||||||
terminal = "st";
|
|
||||||
keyMode = "vi";
|
|
||||||
escapeTime = 0;
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
set -g set-clipboard on
|
set -g set-clipboard on
|
||||||
set -g @yank_selection_mouse 'clipboard'
|
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
set -g status-keys 'vi'
|
set-window-option -g pane-base-index 1
|
||||||
setw -g pane-base-index 1
|
|
||||||
|
set-window-option -g mode-keys vi
|
||||||
|
|
||||||
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||||
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
||||||
|
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
|
||||||
|
|
||||||
set -g default-terminal "st-256color"
|
set -g default-terminal "st-256color"
|
||||||
set -g terminal-overrides "st-256color"
|
set -g terminal-overrides "st-256color"
|
||||||
# true colours support
|
|
||||||
# set -ga terminal-overrides ",*256col*:Tc"
|
|
||||||
set -ga terminal-overrides ",xterm-256color:Tc"
|
set -ga terminal-overrides ",xterm-256color:Tc"
|
||||||
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
|
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
|
||||||
# underscore colours - needs tmux-3.0
|
|
||||||
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
|
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue