feat: adds xsel paste
All checks were successful
gitea-deepak/nixconf/pipeline/head This commit looks good
Test templates, puts into cache / nix (nix-runner) (push) Successful in 4m27s
Bump flake.lock / build (push) Successful in 7m49s

This commit is contained in:
Deepak Mallubhotla 2025-03-27 18:07:04 -05:00
parent 2d4e53107d
commit 137cd44d57
Signed by: deepak
GPG Key ID: 8F904A3FC7021497

View File

@ -39,7 +39,7 @@ in
pkgs.sops pkgs.sops
pkgs.age pkgs.age
pkgs.ydiff pkgs.ydiff
pkgs.xclip pkgs.xsel
pkgs.delta pkgs.delta
pkgs-unstable.claude-code pkgs-unstable.claude-code
@ -258,10 +258,11 @@ in
set-option -g status-position top set-option -g status-position top
unbind '"' unbind '"'
unbind % unbind %
set -s copy-command 'xclip -i -sel pri' set -s copy-command 'xsel -bi'
bind -N "Horizontal split" -T prefix | split-window -h bind -N "Horizontal split" -T prefix | split-window -h
bind -N "Vertical split" -T prefix - split-window -v bind -N "Vertical split" -T prefix - split-window -v
bind -N "Enter copy mode" -T prefix Space copy-mode bind -N "Enter copy mode" -T prefix Space copy-mode
bind -N "Load buffer from xsel and paste" -T prefix C-p run "xsel -ob | tmux load-buffer - ; tmux paste-buffer"
set -g escape-time 1 set -g escape-time 1
bind -N "Leave copy mode" -T copy-mode-vi Escape send-keys -X cancel bind -N "Leave copy mode" -T copy-mode-vi Escape send-keys -X cancel
bind -N "Leave copy mode" -T copy-mode-vi y send -X copy-pipe bind -N "Leave copy mode" -T copy-mode-vi y send -X copy-pipe