Re: HOWTO: Configuring Logitech mice in Ubuntu 6.06: New Guide
Quote:
Originally Posted by
BatteryCell
Hm, is there any way to map unknown buttons, so like if I had a button on my keyboard that has a keycode but no "name" so to say, how would I map it?
Um, I find the easiest way to do it is to use it in Keyboard Shortcuts, but I use Xfce, so I can map it to custom commands, but I don't know if that works in Gnome or KDE. You can try here for a way to do it in xbindkeys: http://hocwp.free.fr/xbindkeys/xbindkeys.html I haven't tried it though.
Quote:
Originally Posted by
BatteryCell
Oh and to the windows list, if you map alt_l and f5 to button eight that brings up a windows list, but if you have any windows up then it doesnt work for me...so like the only way that it works for me is if no windows are maximized.
Well, I guess we could try searching for a window list app or a way to comunnicate with that list via D-Bus or something.
Re: HOWTO: Configuring Logitech mice in Ubuntu 6.06: New Guide
One thing, my back button works in Firefox but not in Nautilus... I tried ALT+LEFT in Nautilus and that worked so I don't know why the back button doesn't.
Any ideas?
- rmjb
Re: HOWTO: Configuring Logitech mice in Ubuntu 6.06: New Guide
is xbindkeys configured and running?
$ xbindkeys
if it is, give me your .xbindkeysrc
Re: HOWTO: Configuring Logitech mice in Ubuntu 6.06: New Guide
Yeah it's running, needs to for the buttons to work in Firefox right? (I think).
Here's my ~/.xbindkeysrc:
Code:
###########################
# xbindkeys configuration #
###########################
#
# Version: 0.1.3
#
# If you edit this, do not forget to uncomment any lines that you change.
# The pound(#) symbol may be used anywhere for comments.
#
# A list of keys is in /usr/include/X11/keysym.h and in
# /usr/include/X11/keysymdef.h
# The XK_ is not needed.
#
# List of modifier (on my keyboard):
# Control, Shift, Mod1 (Alt), Mod2 (NumLock),
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#
# Another way to specifie a key is to use 'xev' and set the
# keycode with c:nnn or the modifier with m:nnn where nnn is
# the keycode or the state returned by xev
#
# This file is created by xbindkey_config
# The structure is :
# # Remark
# "command"
# m:xxx + c:xxx
# Shift+...
#keystate_numlock = enable
#keystate_scrolllock = enable
#keystate_capslock = enable
#Back Button
"/usr/X11R6/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
m:0x0 + b:8
#Forward Button
""/usr/X11R6/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
m:0x0 + b:9
#
# End of xbindkeys configuration
- rmjb
Re: HOWTO: Configuring Logitech mice in Ubuntu 6.06: New Guide
Firefox will also go back and forward on button 6 and 7, so xbindkeys isn't required for Firefox.
xvkbd should be in /usr/bin/ now instead of /usr/X11R6/bin/.
What button numbers do you get in xev for back and forward?
Re: HOWTO: Configuring Logitech mice in Ubuntu 6.06: New Guide
Quote:
Originally Posted by
detyabozhye
Hmm, everything looks correct.
Ok, first thing I done was set the pistol down and stepped away from the computer... Then, I glued my hair back to it's original place.
I started this project over completely and got it all to work... YAY!!:grin: (except step 3, see edit below) Not sure what I was doing wrong and didn't try to analize it. I just started from scratch.
I did make a couple of changes because I went to the GUI version of XBindKeys-config <<main menu>Debian>Apps>Tools>XBindKeys-config>> and found some things that didn't look right in that editor, although I think it would have worked without the change.
My xbindkeysrc:
Code:
#back
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[left]""
m:0x0 + b:8
#fwd
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[right]""
m:0x0 + b:9
#ccup
"~/.click/click 4"
m:0x0 + b:11
#ccdn
"~/.click/click 5"
m:0x0 + b:12
The biggest thing is that it added a name (ie: #back) to the keybindings and a return (blank line) inbetween keybindings to separate them.
The only thing I would like to do is add an alt+tab for button 10 so I can switch between 2 programs easily. I tried different bindings to try to get the result I wanted to no avail. I noticed a "pause, hold" function in the keysymdef.h so I used it in several ways but never got any acceptable results. Could you supply some insight on this. You seem to know what you're doing... not so much on this end. Still too new to Linux, but learning.
My alt-tab section of xbindkeysrc(commented out at the moment):
Code:
#side_middle
#"/usr/bin/xvkbd -sendevent -text "\[Alt_L]\[Tab]""
# m:0x0 + b:10
BTW: Thanks for the project and all the help you have provided and will provide.
Edit: After I wrote this I did step 3 with poor results. Mouse reacted VERY slowly to the point of being unusable. It seems to be very precise (more precise than I) without lmctl loaded so it is not an issue.
Thanks again for the walkthrough and help.=D>
I am running Ubunto 6.06 and a Logitech MX1000 mouse.
Re: HOWTO: Configuring Logitech mice in Ubuntu 6.06: New Guide
Quote:
Originally Posted by
detyabozhye
Firefox will also go back and forward on button 6 and 7, so xbindkeys isn't required for Firefox.
xvkbd should be in /usr/bin/ now instead of /usr/X11R6/bin/.
What button numbers do you get in xev for back and forward?
Nah, before this guide the back and forward buttons didn't work in Firefox, so this guide fixed that and I went through the xev thing with the buttons also.
xvkbd is in /usr/bin/xvkbd and /usr/bin/X11/xvkbd
- rmjb
Re: HOWTO: Configuring Logitech mice in Ubuntu 6.06: New Guide
Quote:
Originally Posted by
hubacap
The only thing I would like to do is add an alt+tab for button 10 so I can switch between 2 programs easily. I tried different bindings to try to get the result I wanted to no avail. I noticed a "pause, hold" function in the keysymdef.h so I used it in several ways but never got any acceptable results. Could you supply some insight on this. You seem to know what you're doing... not so much on this end. Still too new to Linux, but learning.
My alt-tab section of xbindkeysrc(commented out at the moment):
Code:
#side_middle
#"/usr/bin/xvkbd -sendevent -text "\[Alt_L]\[Tab]""
# m:0x0 + b:10
I haven't figured this out myself and never had the intention to do so. But since yall keep bugging me about it, I might play around with it. :D Just remember, without writing a new app that implements the window list, it will never act the way it does in Windows.
Quote:
Originally Posted by
hubacap
BTW: Thanks for the project and all the help you have provided and will provide.
Edit: After I wrote this I did step 3 with poor results. Mouse reacted VERY slowly to the point of being unusable. It seems to be very precise (more precise than I) without lmctl loaded so it is not an issue.
Thanks again for the walkthrough and help.=D>
I am running Ubunto 6.06 and a Logitech MX1000 mouse.
You're welcome. Section 3 is optional, but that behavior you described is the opposite of what usually happens, I really need to look into lomoco when I get a chance.
Re: HOWTO: Configuring Logitech mice in Ubuntu 6.06: New Guide
Quote:
Originally Posted by
rmjb
Nah, before this guide the back and forward buttons didn't work in Firefox, so this guide fixed that and I went through the xev thing with the buttons also.
xvkbd is in /usr/bin/xvkbd and /usr/bin/X11/xvkbd
- rmjb
Before this guide, your buttons weren't sending out the button 6 and 7 or 8 and 9 event at all, the evdev driver fixed that part, not xbindkeys.
Try the following configurations (one at a time ;)):
Code:
#Back Button
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
m:0x0 + b:8
#Forward Button
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
m:0x0 + b:9
Code:
#Back Button
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
m:0x0 + b:6
#Forward Button
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
m:0x0 + b:7
Re: HOWTO: Configuring Logitech mice in Ubuntu 6.06: New Guide
Quote:
Originally Posted by
detyabozhye
Before this guide, your buttons weren't sending out the button 6 and 7 or 8 and 9 event at all, the evdev driver fixed that part, not xbindkeys.
Ohh... well that makes sense. Will try it when I get back home.
- rmjb