diff options
author | David Morgan <djm_uk@protonmail.com> | 2022-12-03 16:50:07 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2022-12-03 16:50:07 +0000 |
commit | a30da550bc22dc8cd816ae362a3bc82137278f9d (patch) | |
tree | 2cb13aa11d4dcc94deaccd6735ebfaf146898856 /nix-conf | |
parent | 0688f25420527013f625d5be9a11f3861e875e59 (diff) | |
download | dotfiles-a30da550bc22dc8cd816ae362a3bc82137278f9d.tar.gz |
Improve tmux config
Diffstat (limited to 'nix-conf')
-rw-r--r-- | nix-conf/home/includes/dev-common.nix | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/nix-conf/home/includes/dev-common.nix b/nix-conf/home/includes/dev-common.nix index 8bd74cd..253e9e6 100644 --- a/nix-conf/home/includes/dev-common.nix +++ b/nix-conf/home/includes/dev-common.nix @@ -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 {}'"} ''; }; |