gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
21.54k stars 3.33k forks source link

tmux uses wl-copy instead of xclip/xsel in X11 environment #719

Closed orange-ramlius closed 5 months ago

orange-ramlius commented 5 months ago

'"$TMUX_PROGRAM" ${TMUX_SOCKET:+-S "$TMUX_SOCKET"} save-buffer - | wl-copy' returned 1 I don't know but for some reason tmux thinks I am running Wayland. I've checked $XDG_SESSION_TYPE and it contains x11. Maybe I hadn't set some variables and because of that it doesn't work?

gpakosz commented 5 months ago

Hello @orange-ramlius,

The code currently doesn't look at XDG_SESSION_TYPE to pick wl-copy or xsel or xclip.

orange-ramlius commented 5 months ago

So I should set it by myself?

gpakosz commented 5 months ago

Can you please try the gh-719 branch?

orange-ramlius commented 5 months ago

ok

orange-ramlius commented 5 months ago

Wow, it works now). Thanks!)