wl-paste fix

This commit is contained in:
thek4n 2025-11-13 12:48:56 +03:00
parent 0909b3afb7
commit ee2ad8f08b
2 changed files with 3 additions and 3 deletions

View File

@ -189,8 +189,8 @@ bind -T copy-mode-vi Y send-keys -X copy-selection-and-cancel
bind MouseDrag1Pane copy-mode
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "wl-copy"
bind -r p run-shell "wl-paste | tmux load-buffer -; tmux paste-buffer -p"
bind -r з run-shell "wl-paste | tmux load-buffer -; tmux paste-buffer -p"
bind -r p run-shell "wl-paste --no-newline --trim-newline | tmux load-buffer -; tmux paste-buffer -p"
bind -r з run-shell "wl-paste --no-newline --trim-newline | tmux load-buffer -; tmux paste-buffer -p"
bind -r P paste-buffer -p

View File

@ -132,7 +132,7 @@ alias pastewww='paste.thek4n.ru'
if [[ "${OSTYPE}" == "linux-gnu"* ]]; then
if [ -n "${DISPLAY}" ]; then
alias _copy='sed -z "$ s/\n$//" | wl-copy'
alias pasta='wl-paste'
alias pasta='wl-paste --no-newline --trim-newline'
else
alias _copy='read -rd "EOF" TTYCLIPBOARD'
alias pasta='echo "$TTYCLIPBOARD"'