improves tmux config
This commit is contained in:
parent
cce43517a9
commit
88e0931762
2 changed files with 29 additions and 10 deletions
|
|
@ -1,4 +1,9 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
programs.tmux = {
|
||||
|
|
@ -31,23 +36,31 @@
|
|||
];
|
||||
extraConfig = ''
|
||||
unbind %
|
||||
bind | split-window -h
|
||||
bind "|" split-window -h
|
||||
unbind '"'
|
||||
bind - split-window -v
|
||||
bind - split-window -l 30 -v
|
||||
|
||||
bind r source-file ~/.tmux.conf \; display "Config reloaded!"
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display "Config reloaded!"
|
||||
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
|
||||
|
||||
bind -r H resize-pane -L 5
|
||||
bind -r J resize-pane -D 5
|
||||
bind -r K resize-pane -U 5
|
||||
bind -r L resize-pane -R 5
|
||||
|
||||
bind ? list-keys -a
|
||||
|
||||
unbind s
|
||||
bind s display-popup -h 50% -w 50% -E sessionizer
|
||||
|
||||
unbind "+"
|
||||
bind "+" choose-tree -Zw "join-pane -t '%%'"
|
||||
|
||||
set -g mode-keys vi
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue