tmux, urxvt и проблемы копирования и вставки...

Ого. Итак, я нашел проблему и исправил ее следующим образом:

jj5@orac:~$ rm .config/autostart/dropbox.desktop

Файл dropbox.desktop, кажется, был установлен, когда я пытался установить клиент Dropbox в своей системе (но у меня возникли проблемы с его работой, и я не использовал его ). Я забыл, что этот файл был здесь. Я понял это, просмотрев недавно измененные файлы/каталоги в моем домашнем каталоге после попытки доступа к orac через VNC. Например:

jj5@orac:~$ ls -Alt | head
total 21292
drwx------    4 jj5  jj5      4096 May  4 18:12 Dropbox
drwx------    5 jj5  jj5      4096 May  4 18:12 .dropbox
drwx------    2 jj5  jj5      4096 May  4 18:12 .vnc
-rw-------    1 jj5  jj5      3136 May  4 18:12 .Xauthority
-rw-------    1 jj5  jj5     26860 May  4 18:07 .viminfo
-rw-------    1 jj5  jj5      6692 May  4 17:49 .bash_history
drwx------    2 jj5  jj5      4096 May  4 17:36 .pulse
-rw-r--r--    1 jj5  jj5        75 May  4 17:25 .selected_editor
-rw-r--r--    1 jj5  jj5       697 May  4 17:22 .profile
-rw-r--r--    1 jj5  jj5      3963 May  4 17:22 .bashrc

Файл dropbox.desktop выглядел так:

jj5@orac:~/archive/2017-05-04-181328$ cat dropbox.desktop 
[Desktop Entry]
Name=Dropbox
GenericName=File Synchronizer
Comment=Sync your files across computers and to the web
Exec=dropbox start -i
Terminal=false
Type=Application
Icon=dropbox
Categories=Network;FileTransfer;
StartupNotify=false
1
23.09.2016, 14:50
1 ответ

На случай, если какая-нибудь другая бедная душа будет бороться с этим, вот мой ~/.tmux.conf файл. Я использую менеджер плагинов tmux, поэтому сначала установите его.

# ./tmux.conf

# Powerline…
run-shell "powerline-daemon -q"
source '~/.local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf'

# VI-mode…
setw -g mode-keys vi

# C-b is not acceptable -- Vim uses it
set-option -g prefix C-a
bind-key C-a last-window

# Set windows modes styles
set -g mode-style "fg=black,bg=colour69"

# Renumber windows
set -g renumber-windows on

# Automaitcally rename.
setw -g automatic-rename

# Allows for faster key repetition
set -s escape-time 0

# Scroll History
set -g history-limit 30000

# Mouse
set -g mouse on # ← This stops the default correct behaviour…

# List of plugins
set -g @plugin 'tmux-plugins/tpm' # ← The tmux plugin manager.
set -g @plugin 'nhdaly/tmux-scroll-copy-mode' # ← sane scrolling.
set -g @plugin 'tmux-plugins/tmux-yank' # ← Yanking.
set -g @shell_mode 'vi'  # tmux-yank option.
set -g @yank_selection 'primary'  # tmux-yank option.

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# EOF

Итак, вы можете использовать мышь для выделения любого текста. Если вы нажмете y перед тем, как отпустить левую кнопку мыши, выделение будет скопировано в основной буфер, который вы можете вставить с помощью среднего клика мыши.

0
28.01.2020, 01:10

Теги

Похожие вопросы