Questions tagged [mouse]

Use of this tag should be limited to questions pertaining to the peripheral input device known as a "mouse".

Filter by
Sorted by
Tagged with
25
votes
3answers
5k views

Manipulating X key and pointer grabs on the command line

What command line tools exist to list and manage X server grabs? (That's grab as in key and pointer grabs, i.e. restricting the use of a particular key or mouse button to a particular application, or ...
39
votes
4answers
56k views

Make mouse movements scroll when the middle button is held down

In Windows, I'm used to clicking the center button and it offering a "fast scroll" option up or down. How can I get this behavior on Linux? It currently seems to use the back button upon center click ...
39
votes
3answers
18k views

Command for forcing a pointer ungrab (captured mouse release)

Sometimes Firefox doesn't release the mouse after dragging, so I need to kill the application to force it to release its pointer grab. Is there any command to force an application to ungrab the ...
80
votes
8answers
48k views

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

I don't like having the middle mouse button paste, because I often end up with uncompilable code in Eclipse. How can I turn this off (in all programs)? I'm running Fedora.
53
votes
6answers
90k views

How can I set mouse sensitivity, not just mouse acceleration?

I can't find a single desktop environment that supports setting both mouse acceleration AND mouse sensitivity. I don't want any mouse acceleration, but I want to increase the speed of my mouse. That ...
77
votes
3answers
73k views

How to copy and paste with a mouse with tmux

I'm using tmux and OSX. When copying and pasting from the terminal with tmux I'm able to hold down Option and select text. However I can't get the text to stay inside the pane. So when I want to copy ...
17
votes
2answers
6k views

Disable mouse (not touchpad!) in Xorg while idle

I am an avid keyboard user, but I still need the mouse every now and then. To minimize the hand travel, I have the mouse located below my keyboard. (On a side note, using the mouse this way feels ...
28
votes
8answers
22k views

Disable Keyboard & Mouse input on unix (under X)

How can one programmatically "freeze" the Keyboard & Mouse temporarily, so that no one could mess with the system? There are several possibilities where this is useful. For instance, I have a ...
48
votes
4answers
60k views

How to scroll the screen using the middle click?

On Windows, most programs with large, scrollable text containers (e.g. all browsers, most word processors and IDEs) let you press the middle mouse button and then move the mouse to scroll. This ...
14
votes
4answers
28k views

Detect if mouse button is pressed, then invoke a script or command

Is there any way to get mouse button state from bash? Xdotool can only get mouse location. I'd like to set something up where I can define a rule where when a mouse button is pressed, a script can ...
14
votes
3answers
3k views

Emulate horizontal scrolling with Shift key

I want to emulate horizontal scrolling when I use my (vertical) scroll wheel and pressing Shift. In some applications (Chrom{e,ium}) this already works, but I'm looking for a generic solution for X ...
8
votes
3answers
5k views

How to disable mouse support in terminal?

I'm asking this question while using xfce4-terminal, but I'm interested in a general solution: is there a way to stop a terminal emulator announcing mouse support in consoles? I need mouse-select and ...
4
votes
3answers
4k views

Disable scroll inside Xfce terminal / Avoid scrolling through command history

Is there a way to disable scrolling through command history for the Xfce terminal? I don't wish to rely on palm rejection, I'd just like it disabled when I'm using the terminal. Specifically I'm ...
34
votes
6answers
45k views

Mouse left click stops working

On Xubuntu, for a long time I've had an issue where my Left mouse button stops working for some reason. It happens pretty much everyday. Everything else seems to work. The only way I can get my mouse ...
30
votes
1answer
62k views

monitoring events (keyboard, mouse) in X

Is it possible to display all events that are generated in Xorg? Such as keyboard pressed, mouse events...?
23
votes
2answers
8k views

Highlight current mouse position

I'm running a dual-screen setup and have my trackpad disabled most of the time (which includes hiding the mousepointer). When I reenable the trackpad (and display the mouse pointer again), I've lost ...
22
votes
2answers
43k views

Mouse clicks stop working after random time, using Awesome WM + Gnome

I'm using the Awesome Window Manager together with Gnome in Linux Mint. I experience the following problem several times a day: Suddenly the mouse partially stops working, which means that I'm still ...
13
votes
3answers
23k views

bluetooth mouse disconnects

I'm using Debian Jessie (testing). I have a bluetooth mouse (Microsoft Sculpt Comfort) and I can pair it and use it ok, but after some time of inactivity (around 10 minutes) it stops working, I have ...
13
votes
4answers
8k views

Configure extra mouse button as a second middle click under Wayland

I use a 10-button mouse (Logitech M705). Under X11, I was able to configure one of the extra buttons to behave as a second middle-click by modifying files in etc/X11/xorg.conf.d. Under Wayland, this ...
10
votes
1answer
3k views

Stop vim pasting selections as text!

I have been using VI and VIM for years (30 or more) (in xterms, not its own window, gvim) and I have a huge library of vim commands that I give vim using the mouse middle button as a selection. For ...
8
votes
2answers
8k views

Bluetooth Mouse Lag

looking for help diagnosing bluetooth mouse lag. I'm using a Logitech MX Anywhere 2, I've had it a few years now and it's worked well on a number of Linux distros. I recently installed Debian 10 and ...
9
votes
4answers
39k views

Restart USB mouse driver?

Sometimes, after some event that I can't determine, my USB mouse gets stuttery - like the refresh rate drops down to about 5-10Hz. It still works fine other than that, but it's incredibly annoying, ...
7
votes
2answers
6k views

How to get mouse click position?

I know I can get the position of the mouse pointer by executing xdotool getmouselocation. What I need is program that will run and let me know the position where the mouse pointer clicks.
5
votes
1answer
612 views

tmux: enable mouse only when shift pressed

I've tried to set -g mouse on, and it works pretty well, but standard mouse behaviour (select, copy & paste) is disabled. But, it enables if I press "Shift" button, and while I hold it, I can ...
7
votes
6answers
9k views

Is there a way to control the mouse wheel resolution in Debian?

I am using Debian 6.0.4. The mouse wheel scrolls way to much for it to be any use. Is there any way to configure how much "scrolling" is done with with one mouse wheel turn? Update: My keyboard and ...
3
votes
2answers
10k views

Keyboard and mouse do not function in Debian

I powered on my laptop running Debian kernel 3.3.0. After the boot process starts the X server and KDE, my keyboard and mouse do not function. Keyboard input works when I use the Recovery Console, and ...
1
vote
1answer
1k views

Udev rules involving X11 don't run on startup

I have some udev rules written to run when I connect certain usb devices. For example, I change pointer velocity for certain mice, and change xmodmaps for particular keyboards. The scripts work well ...
0
votes
1answer
7k views

Bluetooth connection fails by connecting to the Logitech MX Master S2 mouse

I am using Linux Mint 18.2 Sonja and want to connect my new Logitech MX Master S2 mouse without using the bluetooth-dongle, but directly with the inbuilt bluetooth module of my notebook. This works so ...
63
votes
5answers
37k views

Can mouse wheel scrolling work in a Screen session?

Is there any way to use the mouse wheel to scroll through the output of a screen session? I can use the keypad scroll through previous output in screen after pressing ctrl+a [. Is it possible to do ...
44
votes
5answers
18k views

How to disable the Forward/Back buttons on my mouse

My mouse has an unfortunate feature. On the left side, right where my thumb sits ever so gently when I'm using it, there are two buttons that are so sensitive a mere brush will make them click. I'm ...
71
votes
3answers
27k views

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

I'm using tmux 2.1 and tried to on mouse mode with set -g mouse on And it works fine, I can switch across tmux window splits by clicking the appropriate window. But the downside of this is that I ...
19
votes
5answers
12k views

Highlight mouse for screencasts without disturbing workflow

For making documentation/tutorial videos, I need to highlight the mouse, for example with a yellow translucent corona around it: The marker should be active when clicking and moving, but if it's on ...
19
votes
2answers
20k views

How to configure the double click behavior in an X terminal?

Under different Unix/Linux systems I've observed different double click behavior in X terminal applications (e.g. xterm). Sometimes a double click selects everything left and right until the next non-...
13
votes
5answers
25k views

Configuring mouse for right+left button simulating middle click (for copy/paste)

I was using the mouse copy-paste extensively, until recently, when some OpenSuSe upgrade reconfigured this on all my machines. Now the scrollbuton is the one to paste (which I hate, since it's hard to ...
11
votes
5answers
15k views

How to lock one mouse/keyboard pair to each screen?

Using the ATI Catalyst Control Center (fglrx), I setup two desktops (the multidesktop option) via dual-head. Now I have two mice and keyboards (USB) attached which, using xinput can be put in two ...
13
votes
2answers
20k views

Why doesn't this udev rule trigger upon removal of the device?

I have two mice, one which has an issue where the middle mouse button and button6 get triggered simultaneously. So I configured my ~/.Xmodmap to disable this button. At the same time, however, I ...
7
votes
8answers
95k views

Touch pad 'touch-click' not working but 'double-touch-scroll' working?

I installed Kali Linux 2.0 yesterday on my Zenbook UX303LB and touch-click on my track pad doesn't work. I had the same problem in Ubuntu so it's not a new issue and I just used a mouse as a ...
4
votes
2answers
5k views

Prevent Wacom tablet from moving mouse pointer

I have a Wacom CTF-221 graphics tablet, and I use it with Linux Wacom drivers. However when I draw it's annoying that the mouse pointer moves with the pen and clicks outside of the drawing window. ...
21
votes
5answers
4k views

How to make X less sensitive when right clicking?

Whenever I right click in X, I almost always seem to trigger the first option in the menu unless I am thinking about what I am doing because I: Mouse down; menu appears Accidentally drag mouse 1-3 ...
9
votes
4answers
6k views

Mouse scroll wheel speed far too sensitive

In my Crunchbang installation with X11, openbox, my wireless usb mouse is listed at both /dev/psaux and /dev/input/mouse0. It's working fine apart from the scroll wheel, which although active, is far ...
1
vote
2answers
4k views

Logitech M325 mouse horizontal scrolling

Out of the box, this Logitech M325 mouse works great with one issue: cannot use the scroll wheel for horizontal scrolling. It acts as forward or back in the browsers or does nothing in other windows.
19
votes
4answers
8k views

Avoid very fast double clicks

I have a mouse with a weird problem. The left button sometimes fires a double click even if I click just one time. I would like to know if there's a way to avoid fast double clicks, ignoring clicks ...
8
votes
2answers
4k views

Can I prevent “Disable touchpad while typing” from affecting mouse movements?

When I click my name in the upper right, then click "System Settings", then "Mouse and Touchpad", and then "Disable touchpad while typing" it affects my mouse movements. I have to wait two seconds ...
7
votes
1answer
8k views

How to *disable* natural scrolling?

I can't disable natural scrolling. That is, no matter whether I turn "Natural Scrolling" on or off, dragging the mouse wheel towards me scrolls up. $ gnome-shell --version GNOME Shell 3.20.4 $ cat /...
4
votes
2answers
4k views

Change scroll lines when use mouse wheels?

Is there a way to control how many lines will scroll, when you use the mouse wheels? It seems to be 5 lines by default, anyway to change this value? I didn't find it in xfce4-settings-manager
2
votes
2answers
3k views

How to map mice buttons via keyboard, Linux

I use Debian 9 (aka 'Stretch') x86_64. $ uname -a: Linux mypc 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux Tried to map my extra button from my device, Logitech MU-007 : $ ...
8
votes
0answers
4k views

Mouse not working correctly [closed]

So for the last month or so on my Ubuntu 13.10, after installing nvidia drivers and then re installing nouveau drivers (because nvidia didn't work correctly) I got a problem with my mouse. I just made ...
7
votes
4answers
6k views

Debian Squeeze: Left mouse click stops working

After starting a new session in my Debian Squeeze (6.0.4, always updated) running in a VM (VMWare Workstation) there comes the point in time where the left mouse click stops working, so that I cannot ...
7
votes
0answers
510 views

How to disable select-on-release right mouse button in Linux [duplicate]

We are having issues with mouse behavior in Linux. In Windows: In any application, to open a context menu and select an option: right mouse button down + release move the cursor to an option left ...
6
votes
2answers
4k views

How to set device-specific mouse settings in Wayland under Libinput (Debian Gnome)?

I am running a Thinkpad T470. I often dock this, meaning I have 3 mouse input devices (external Microsoft mouse, Trackpoint, and Trackpad). I'm running Debian 10 (Testing - Buster) using Gnome under ...