On Windows 7 my mouse buttons are configured with Logitech SetPoint software.
But today I installed Ubuntu 12.04 with Wubi. Of course my extra buttons are not working now on Ubuntu. I installed xbindkeys and xbindkeys-config but couldn't figured out how to bind my buttons. I started xev
from the terminal and checked if the buttons are recognised, they are. So, what I'm doing:
xbindkeys-config
New
buttonbutton 9
as I checked with xev
, so for Key
I write b:9
. Action
I write ctrl+t
, control+t
or Control + t | m:0x4 + c:28
which is the combination when click Get Key
button and then Ctrl+TBut it's not working. If I write xterm
instead, it's working, so my button b:9
is recognised properly. The problem is the key combination Ctrl+T. How to write it?
The bindings that I want to save are:
Left Scroll Button (b:6): Volume-
Right Scroll Button (b:7): Volume+
Back Button (b:8): Ctrl+W for closing the current tab
Forward Button (b:9): Ctrl+T for opening a new tab
After a lot of researching I finally figured it out. For using key combinations I installed xdotool:
sudo apt-get install xdotool
After that I used these actions:
For Ctrl+T: xdotool key ctrl+t
For Ctrl+W: xdotool key ctrl+w
etc.
And for volume up and down I used these actions:
amixer sset Master 1+ unmute
and
amixer sset Master 1- unmute