You are not logged in.
Pages: 1
I have an ASUS netbook, which like all netbooks, has a really funky mouse.
I'd love to be able to map [the middle button] to a hotkey, say the "Windows Key", so I could more easily cut and paste from applications like xterm. I've looked through the documentation of xmodmap, but you only seem to be able to re-assign mouse keys to themselves, i.e. pointer = 3 2 1
Is there anyway to assign pointer click to a keypress, or more importantly, the other way around?
Thanks!
Last edited by male1 (2010-10-26 05:01:05)
Offline
What window manager/desktop environment are you using? ![]()
Offline
I don't have time to write a tutorial but I can point you in the right direction.
You will first need to remove Super (the windows key) from the Mod4 list (by default, it is a modifier like Control/Alt and can not be used by itself).
Next you will need to use something like gnome's built in keybinder or xbindkeys to execute a program to emulate a mouse button when you hit the Super key.
To emulate the mouse button, use something like xdotool (read it's manual).
Offline
What window manager/desktop environment are you using?
Right now, I'm just plain ol' OpenBox v3.
Last edited by male1 (2010-10-26 05:02:17)
Offline
i know it's not what you asked for, but you could as well map the middle click to a corner of your touchpad:
synclient RTCornerButton = 2 would map the middle click to the right top corner of your touchpad.
if you want to make it permanent, you can add it as an option to your xorg.conf
Offline
Does "shift+insert" work for you? ![]()
My blog: blog.marcdeop.com
Jabber ID: damnshock@jabber.org
Offline
You could do it using xdotool, I think.
Alternatively, using a tool like parcellite, annamnesis, etc. (there are a few) you could sync. the CLIPBOARD and PRIMARY so that when you copy from xterm, CTRL+V will then work to paste in X. There are some usability issues with that (selecting text in a text box will overwrite the clipboard preventing pasting in on top) but most people are able to get a reasonable system sorted with a little tweaking.
EDIT: see here for some details http://standards.freedesktop.org/clipbo … ds-0.1.txt
Last edited by skanky (2010-10-26 13:37:04)
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
Does "shift+insert" work for you?
If it does, couldn't the middle button potentially be mapped (in rc.xml or something) to simulate a "Shift+Insert" key press?
Offline
This is embaressing, but I had no idea about Shift + Insert.
Problem solved!
Offline
If you still want to map it, this is how I did it.
http://linuxaleph.blogspot.com/2008/11/ … d-key.html
Offline
Pages: 1