summaryrefslogtreecommitdiff
path: root/home/tmux.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/tmux.nix')
-rw-r--r--home/tmux.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/home/tmux.nix b/home/tmux.nix
index 3c3a5d1..f6c59da 100644
--- a/home/tmux.nix
+++ b/home/tmux.nix
@@ -6,7 +6,7 @@
mouse = true;
keyMode = "vi";
baseIndex = 1;
- prefix = "C-\\";
+ prefix = "C-b";
terminal = "xterm-ghostty";
plugins = with pkgs.tmuxPlugins; [
sensible
@@ -27,7 +27,8 @@
];
extraConfig = ''
set -g status-position top
- set -g set-clipboard on
+ set -s set-clipboard on
+ set -s get-clipboard both
set -g set-titles on
set -g set-titles-string "#{session_name}"
setw -g pane-base-index 1
@@ -35,6 +36,11 @@
set -as terminal-features ",xterm-ghostty:hyperlinks"
set -ga terminal-overrides ",xterm-ghostty:Tc"
+ unbind C-b
+ set -g prefix C-\\
+ bind -N "Send the prefix key through to the application" C-\\ send-prefix
+ bind -N "Refresh system clipboard via OSC 52" Y refresh-client -l
+
bind v split-window -h -c "#{pane_current_path}"
bind b split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"