Well you can give a look on below mentioned things and I hope it would be helpful to someone.
all buttons of mouse are detected with last kernel.
Code:
$ uname -a
Linux tuxica 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux
You have to map the buttons of the mouse with suitable actions. You should xev program for this particular purpose.
You can use the same as a key and mouse events sniffer.. whenever you launch the program on system you will be able to see the window in which you should press mouse buttons. Below mentioned are map for Performance MX.
Back button: 8
Forward button: 9
Zoom button: 13
Show windows button: 10
You have to install 'xbindkeys' in order to re map mouse and keyboard inputs. By using below mentioned code.
Code:
$ sudo apt-get install xbindkeys
Now you will need to configure mouse buttons in order to provide send key combinations so that you can activate the all the other desktop funcations. You haveto create configuration file and you can do the same by using below mentioned steps.
Code:
$ xbindkeys --defaults > $HOME/.xbindkeysrc
Now you have to edit the config file so that you can map on the system.
Code:
$ kate $HOME/.xbindkeysrc
You can add below mentioned button to key configuration.
# Back
"xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'"
b:8
# Forward
"xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'"
b:9
# Present desktops
"xte 'keydown Control_L' 'key F8' 'keyup Control_L'"
b:13
# Present windows
"xte 'keydown Control_L' 'key F10' 'keyup Control_L'"
b:10
now you should install xte program.
Code:
$ sudo apt-get install xte
After that execute below mentioned program,
Code:
$ xte 'keydown Control_L' 'key F10' 'keyup Control_L'
The above mentioned code demonstrates Ctrl+F10 keypres
After completing with all the above mentioned steps you will need to configure xbindkeys so that it can begin at the startup.
You should go for System settings and go for Startup and Shutdown.
Under that go for Autostart and click on Add program button.
Here you have to type ‘/usr/bin/xbindkeys' into the dialog.
You can easily customzie KDE so you are going to have lots of option to custozmie to get the preferred output. If you are looking to map zoom button then you can try below mentioned.
# Next desktop
"qdbus org.kde.kwin /KWin org.kde.KWin.nextDesktop"
b:13
To have efficient communication with qdbus in the KDE you should use qdbus. Also you can use the same option for Gnome as well.
Bookmarks