about summary refs log tree commit diff stats
path: root/nix-conf/home
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-11-11 07:41:01 +0000
committerDavid Morgan <djm_uk@protonmail.com>2022-11-11 07:41:01 +0000
commitbfcc85e56cf00bc766209266f267728b46fcabe0 (patch)
tree7005ad7fb909d884786371a77e7ca4d205fb7435 /nix-conf/home
parent92b6abdccacd0abb76a7bdfb937ec2b8c38e1d9a (diff)
downloaddotfiles-bfcc85e56cf00bc766209266f267728b46fcabe0.tar.gz
Add tmux plugins
Diffstat (limited to 'nix-conf/home')
-rw-r--r--nix-conf/home/includes/dev-common.nix21
-rw-r--r--nix-conf/home/includes/linux-server.nix4
2 files changed, 22 insertions, 3 deletions
diff --git a/nix-conf/home/includes/dev-common.nix b/nix-conf/home/includes/dev-common.nix
index 904b4f8..aee5074 100644
--- a/nix-conf/home/includes/dev-common.nix
+++ b/nix-conf/home/includes/dev-common.nix
@@ -19,19 +19,38 @@
     enable = true;
     terminal = "screen-256color";
     prefix = "C-x";
+    plugins = [ pkgs.tmuxPlugins.copycat
+                pkgs.tmuxPlugins.extrakto
+                #pkgs.tmuxPlugins.fingers
+                pkgs.tmuxPlugins.fzf-tmux-url
+                pkgs.tmuxPlugins.open
+                pkgs.tmuxPlugins.tmux-thumbs
+    ];
     extraConfig = ''
-     tmux bind-key R run-shell ' \
+     unbind-key R
+     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"
       ''}
+
+      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 {}'"}
     '';
   };
 
diff --git a/nix-conf/home/includes/linux-server.nix b/nix-conf/home/includes/linux-server.nix
index b4d7d1e..cb69eee 100644
--- a/nix-conf/home/includes/linux-server.nix
+++ b/nix-conf/home/includes/linux-server.nix
@@ -19,14 +19,14 @@
     maxCacheTtl = 34560000;
   };
 
-  ## TODO newSession plugins etc
   programs.tmux = {
     enable = true;
     #terminal = "screen-256color";
     prefix = "C-a";
     #tmuxp.enable = true;
     extraConfig = ''
-      tmux bind-key R run-shell ' \
+      unbind-key R
+      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