Skip to main content
Share Your Experience: Take the 2024 Developer Survey
181 votes

Tmux mouse-mode on does not allow to select text with mouse

If you press Shift while doing things with the mouse, that overrides the mouse protocol and lets you select/paste. It's documented in the xterm manual for instance, and most terminal emulators copy ...
Thomas Dickey's user avatar
118 votes

How to copy and paste with a mouse with tmux

Put this block of code in your ~/.tmux.conf. This will enable mouse integration letting you copy from a pane with your mouse without having to zoom. set -g mouse on bind -n WheelUpPane if-shell -F -t =...
GMaster's user avatar
  • 6,382
88 votes

How can I turn off "middle mouse button paste" functionality in all programs?

This solution will work globally and preserve the middle mouse functionality under Xorg. Install xbindkeys xsel xdotool Place this in ~/.xbindkeysrc "echo -n | xsel -n -i; pkill xbindkeys; ...
Radivarig's user avatar
  • 1,144
64 votes

Mouse left click stops working

I have a Dell Inspiron 15 7559. The left click stops working once in a while when I was using Ubuntu 16.04. After I installed Ubuntu 18.04, the left click stops working almost every time after I ...
HD189733b's user avatar
  • 741
38 votes

How to scroll the screen using the middle click?

This will work with all your applications without the need of installing anything. Get your input deviceID. In my case was 11. xinput list If you want, list available properties with xinput list-...
Pablo A's user avatar
  • 2,752
34 votes

disabling mouse support in `vim` in a `gnome-terminal` environment

I've found what cause this bad behavior with many linux flavors : /usr/share/vim/vim80/defaults.vim # may be "vim81" depending on your vim version it's 'sourced' if there's no ~/.vimrc but even if ...
Gilles Quénot's user avatar
31 votes

How do I enable tmux mouse support?

Here is a clarification of Mark Volkmann's answer. First make sure that you have set -g mouse on in your .tmux.conf file, and that you have sourced the file by running tmux source <whatever config ...
gaetgu's user avatar
  • 413
30 votes

Restart USB mouse driver?

Try Ctrl+Alt+F1 to text mode and immediately Ctrl+Alt+F7 to graphical mode.
Majk's user avatar
  • 301
29 votes

How can I turn off "middle mouse button paste" functionality in all programs?

Scrollwheel mice support a middle-button click event when pressing the scrollwheel. This is a great feature, but you may find it irritating. Fortunately it can be disabled. First, you need to know ...
Suraj Inamdar's user avatar
29 votes

How can mouse support be enabled in terminal Emacs?

add (xterm-mouse-mode 1) to your ~/.emacs.d/init.el file.
Color's user avatar
  • 391
27 votes

Scrollbar moves to where I click

I had the same issue on Firefox 48, and this answer worked for me: Create ~/.config/gtk-3.0/settings.ini and add [Settings] gtk-primary-button-warps-slider = false I'm using XFCE, but Firefox is ...
anol's user avatar
  • 723
23 votes

How can I turn off "middle mouse button paste" functionality in all programs?

In Fedora 24 you can install gnome-tweak-tool using the following command: $ sudo dnf install gnome-tweak-tool Open gnome-tweak-tool and go to the "Keyboard and Mouse" tab and disable "Middle-click-...
Pawan Kumar's user avatar
23 votes

Tmux mouse-mode on does not allow to select text with mouse

Thomas Dickey's answer is probably what most people are looking for. To give some more context on the behavior you are observing, when tmux's mouse mode is on it enables text selection within a ...
Jack Senechal's user avatar
23 votes

tmux: Select and copy pane text with mouse

It depends on the version of tmux. When tmux mouse is on then the mouse selections will not span panes and will be copied into tmux's selection buffer. When tmux mouse is off (as it is in the ...
Joseph Tingiris's user avatar
22 votes

Kali Linux inverted scroll direction

This seemed to be what i was looking for: How to *disable* natural scrolling?... enter this at the command line: gsettings set org.gnome.desktop.peripherals.mouse natural-scroll false ...
jknox's user avatar
  • 321
21 votes

Configure extra mouse button as a second middle click under Wayland

I've spent 2 days googling, testing tens of methods I've found and struggling with remapping mouse buttons under Wayland... So sharing what I've learned: Logitech M570 trackball has 2 extra buttons. ...
MIchael's user avatar
  • 211
20 votes

How to copy and paste with a mouse with tmux

Add this 2 lines in ~/.tmux.conf set -g @plugin 'tmux-plugins/tmux-yank' set -g mouse on and then install the plugin works for me.
Casper Tsui's user avatar
19 votes

Bluetooth mouse sleeps after a few seconds idle when there is no other mouse connected

It's been about 3 years since I bought this mouse, TODAY I managed to fix it. It was about the USB device auto suspending for some reason Do # lsusb -vt to get your USB device ID: λ ~> sudo lsusb -...
NathanPB's user avatar
  • 371
17 votes

Scrollbar moves to where I click

You get the old page-up/down behavior via right-clicking on the scroll bar.
maxschlepzig's user avatar
  • 57.7k
17 votes

How to *disable* natural scrolling?

This worked for me: gsettings set org.gnome.desktop.peripherals.mouse natural-scroll false gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false
l0b0's user avatar
  • 51.5k
17 votes

Linux mouse freezes after suspend

I can confirm a similar issue with my touchpad on HP ProBook 450 G6 with Ubuntu 18.04, it was very laggy after suspend. What worked for me: create /lib/systemd/system-sleep/touchpad: #!/bin/sh ...
jhole's user avatar
  • 271
17 votes

Mouse left click stops working

Try this: sudo modprobe -r psmouse sudo modprobe psmouse proto=imps
Raven Kong's user avatar
16 votes

Can mouse wheel scrolling work in a Screen session?

Although it is an old question, the method I found best that works for me is using Ctrl + A + ESC key combination. This makes the screen output scrollable. From the documentation page: Virtual ...
xabush's user avatar
  • 293
16 votes

tmux: Select and copy pane text with mouse

I'm not sure about 2.7, I'm using tmux 3.1c. With 3.1c, you can press prefix+z to maximize ("zoom") the pane (where prefix is Ctrl+b by default). Then, you can do your copying, and prefix+z ...
Xin's user avatar
  • 161
15 votes

Restart USB mouse driver?

The optical mouse on my laptop running Ubuntu 18.04 on the 4.15.0-51-generic kernel just quit working for some reason. First I tried the normal quick remedies that is unplugging and re-plugging first ...
Eric Ndiku Musyoki's user avatar
15 votes

Linux mouse freezes after suspend

This issue goes back at least a couple of years. It's a problem for a lot of Asus owners, but it's not entirely specific to Asus devices. Also, it's not Debian-specific — though in your case both ...
codewithmichael's user avatar
14 votes

How to copy and paste with a mouse with tmux

What worked for me in Ubuntu 20.04 I have mouse mode on Selected the text while holding Shift + Selecting with cursor Release Shift and mouse once you select the text Copy the text Ctrl+Shift+c Paste ...
Himanshu Patel's user avatar
14 votes

Stop vim pasting selections as text!

Well after going through a LOT of web pages, many giving some hints that did not seem to work, I found a hint (extra text around a paste) that lead me to the cause and the solution to the problem. It ...
anthony's user avatar
  • 610
14 votes

Disabling middle click on bottom of a clickpad / touchpad

If I type: $ xinput get-button-map 'DLL07BF:01 06CB:7A13 Touchpad' I get: 1 2 3 4 5 6 7 I tried using: $ xinput set-button-map 13 1 2 0 4 5 6 7 It disabled middle and right click.
Robert's user avatar
  • 141
14 votes

Any terminal shell with mouse support?

zsh can be extended to support mouse operation like you describe, using Stéphane Chazelas’ mouse.zsh ZLE widget: wget . ./mouse.zsh zle-toggle-mouse (and once you’ve ...
Stephen Kitt's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible