Skip to content

Commit 7ac3d49

Browse files
committed
feat(tmux): add clipboard support for wayland
1 parent 734e114 commit 7ac3d49

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* removed `💡` as it was lighting up on every line of python, ruff gives you code action everywhere.
1919
* feat(nvim): `<leader><CR>` closes all popups as well as `noh`
2020
* feat(nvim): add diagnodtic_or_spell bindings depending on filetype
21+
* feat(tmux): add clipboard support for wayland
2122

2223
## 0.1.3
2324

tmux/.tmux.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ set -g display-time 0
1515

1616
bind Space send-prefix
1717

18-
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
18+
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "bash -c 'command -v wl-copy >/dev/null && wl-copy || xclip -i -f -selection primary | xclip -i -selection clipboard'"
1919
set-option -s set-clipboard off
20-
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i"
20+
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "bash -c 'command -v wl-copy >/dev/null && wl-copy || xclip -i -f -selection primary | xclip -i -selection clipboard'"
2121

2222
# set-option -sa terminal-overrides ',kitty:RGB'
2323
# set -g default-terminal "screen-256color"

0 commit comments

Comments
 (0)