Improve tmux config

This commit is contained in:
David Morgan 2022-12-03 16:50:07 +00:00
parent 0688f25420
commit a30da550bc
Signed by: djm
GPG Key ID: C171251002C200F2
1 changed files with 23 additions and 14 deletions

View File

@ -19,12 +19,29 @@
enable = true;
terminal = "screen-256color";
prefix = "C-x";
plugins = [ pkgs.tmuxPlugins.copycat
pkgs.tmuxPlugins.extrakto
pkgs.tmuxPlugins.fzf-tmux-url
pkgs.tmuxPlugins.jump
pkgs.tmuxPlugins.open
pkgs.tmuxPlugins.tmux-thumbs
plugins = with pkgs; [
#tmuxPlugins.copy-toolkit
tmuxPlugins.copycat
tmuxPlugins.extrakto
tmuxPlugins.fzf-tmux-url
tmuxPlugins.jump
{
plugin = tmuxPlugins.open;
extraConfig = ''
set -g @open-S 'https://www.duckduckgo.com/?q='
'';
}
{
plugin = tmuxPlugins.tmux-thumbs;
extraConfig = ''
set -g @thumbs-reverse enabled
set -g @thumbs-unique enabled
set -g @thumbs-position right
set -g @thumbs-contrast 1
#${lib.optionalString pkgs.stdenv.isLinux "set -g @thumbs-upcase-command 'xargs xdg-open {}'"}
#${lib.optionalString pkgs.stdenv.isDarwin "set -g @thumbs-upcase-command 'xargs open {}'"}
'';
}
];
extraConfig = ''
unbind-key R
@ -47,14 +64,6 @@
bind-key -T copy-mode y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind-key C-y run "reattach-to-user-namespace pbpaste | tmux load-buffer - ; tmux paste-buffer"
''}
set -g @open-S 'https://www.duckduckgo.com/?q='
set -g @thumbs-reverse enabled
set -g @thumbs-unique enabled
set -g @thumbs-position right
set -g @thumbs-contrast 1
#${lib.optionalString pkgs.stdenv.isLinux "set -g @thumbs-upcase-command 'xargs xdg-open {}'"}
#${lib.optionalString pkgs.stdenv.isDarwin "set -g @thumbs-upcase-command 'xargs open {}'"}
'';
};