You are not logged in.

#1 2010-05-22 10:59:12

caminoix
Member
From: cracow, poland
Registered: 2005-07-12
Posts: 162
Website

[SOLVED] Disable middle click paste

Hello,

is there a way to disable middle click pasting in X?

(I know lots of people love this feature. So did I until I switched to a laptop and found a way to enable two finger scrolling. Now I end up pasting things in the middle of a text, often without even noticing it, and it's less than very cool.)

Thanks in advance!

Last edited by caminoix (2010-05-22 12:29:33)

Offline

#2 2010-05-22 11:41:28

herrvideman
Member
Registered: 2010-01-11
Posts: 111

Re: [SOLVED] Disable middle click paste

What DE/WM are you using?

Offline

#3 2010-05-22 11:45:18

caminoix
Member
From: cracow, poland
Registered: 2005-07-12
Posts: 162
Website

Re: [SOLVED] Disable middle click paste

I use xmonad.
But if it's possible, I'd be most grateful for a solution which turns it out in X (it's an xclipboard feature, isn't it?) rather than changes it to something else in xmonad. But I'll be grateful for any solution in fact smile

Offline

#4 2010-05-22 11:57:06

herrvideman
Member
Registered: 2010-01-11
Posts: 111

Re: [SOLVED] Disable middle click paste

I was hoping you were going to say KDE because that's the only thing I'm familiar with. You can set all the mouse actions through the system settings there. Unfortunately I know nothing outside of that.

Although in an attempt to offer at least something I did find this: http://wiki.archlinux.org/index.php/Xmo … ing_xmonad  Scroll down a little bit and it looks like you can change the mouse key bindings there in that config file.

Offline

#5 2010-05-22 12:14:42

livibetter
Member
From: Taipei
Registered: 2008-05-14
Posts: 95
Website

Re: [SOLVED] Disable middle click paste

I know you can do this, you check your mouse keymap by

$ xmodmap -pp
There are 20 pointer buttons defined.

    Physical        Button
     Button          Code
        1              1
        2              2
        3              3
        4              4
        5              5
        6              6
        7              7
        8              8
        9              9
       10             10
       11             11
       12             12
       13             13
       14             14
       15             15
       16             16
       17             17
       18             18
       19             19
       20             20

And use `xev` to know which button/wheel are mapped to/used. In my case, 1 2 3 (three buttons), 4 5 (wheel), 7 8 (go back/forward).

So I do:

$ xmodmap -e "pointer = 1 6 3 4 5 2"
Warning: Only changing the first 6 of 20 buttons.

I don't know if there is a way to disable, but remap seems to work. (But I don't do/disable it.)

PS. I use Fluxbox, and this should do in X level.

Last edited by livibetter (2010-05-22 12:16:08)

Offline

#6 2010-05-22 12:29:07

caminoix
Member
From: cracow, poland
Registered: 2005-07-12
Posts: 162
Website

Re: [SOLVED] Disable middle click paste

herrvideman
Thanks for your help! I was just trying to figure out how to use it when livibetter gave me a ready solution.

livibetter
Thanks a lot! It works for me smile I'll need to read the doc to understand it but I can already see it does just the thing I wanted. Thank you!

PS. Once again I'm impressed by how quick and useful answers I get in this forum. You guys ROCK!

Last edited by caminoix (2010-05-22 12:30:27)

Offline

Board footer

Powered by FluxBB