Improve tmux conf

This commit is contained in:
David Morgan 2022-11-09 20:54:27 +00:00
parent f208e67d99
commit b9c843c22c
Signed by: djm
GPG Key ID: C171251002C200F2
3 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
{
imports = [
@ -19,12 +19,19 @@
enable = true;
terminal = "screen-256color";
prefix = "C-x";
#tmuxp.enable = true;
extraConfig = ''
tmux bind-key R run-shell ' \
tmux source-file ~/.config/tmux/tmux.conf > /dev/null; \
tmux display-message "Sourced .config/tmux/tmux.conf!"'
bind-key £ split-window -h
set-option -g status-bg '#666666'
set-option -g status-fg '#aaaaaa'
set-option -g status-left-length 50
set-option -g status-right " %a, %b %d - %H:%M "
${lib.optionalString pkgs.stdenv.isLinux ''
bind-key -T copy-mode y send-keys -X copy-pipe-and-cancel "xsel -i -p && xsel -o -p | xsel -i -b"
bind-key C-y run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
''}
'';
};

View File

@ -27,6 +27,7 @@
notmuch
nix
protonvpn-cli
xsel
youtube-dl
];

View File

@ -26,6 +26,9 @@
prefix = "C-a";
#tmuxp.enable = true;
extraConfig = ''
tmux bind-key R run-shell ' \
tmux source-file ~/.config/tmux/tmux.conf > /dev/null; \
tmux display-message "Sourced .config/tmux/tmux.conf!"'
bind-key C-a last-window
bind-key a send-prefix