From b8754d240f19efa34b1991d486659a8b110d042e Mon Sep 17 00:00:00 2001 From: Uttarayan Mondal Date: Fri, 17 May 2024 22:38:12 +0530 Subject: [PATCH] feat: change copy command for thumbs-command keybinds --- common/tmux.nix | 16 +++++++++++++++- flake.nix | 3 +++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/common/tmux.nix b/common/tmux.nix index 60661dd0..5eb79f1a 100644 --- a/common/tmux.nix +++ b/common/tmux.nix @@ -20,7 +20,21 @@ in { tmuxPlugins.better-mouse-mode tmuxPlugins.tmux-fzf tmuxPlugins.fzf-tmux-url - tmuxPlugins.tmux-thumbs + { + plugin = tmuxPlugins.tmux-thumbs; + extraConfig = + if pkgs.stdenv.isDarwin + then + #tmux + '' + set -g @thumbs-command 'echo -n {} | pbcopy' + '' + else + #tmux + '' + set -g @thumbs-command 'echo -n {} | wl-copy' + ''; + } # { # plugin = tmuxPlugins.tmux-super-fingers; # extraConfig = "set -g @super-fingers-key i"; diff --git a/flake.nix b/flake.nix index 57145bfa..027f1881 100644 --- a/flake.nix +++ b/flake.nix @@ -218,5 +218,8 @@ agents.ryu = nixosConfigurations.ryu.config.system.build.toplevel; # agents.mirai = homeConfigurations.mirai.config.system.build.toplevel; }; + devshells.default = { + packages = packages; + }; }; }