configure extra buttons on ZELOTES T-80 BIG MAC [Debian, Ubuntu, Mate-desktop]

based on:

get the mouse:

check the how the buttons are mapped:
xev | grep button #quit with ctrl c

Press buttons on your mouse. You will see in terminal the output how they are named / mapped.

for example i got:
~$ xev | grep button
state 0x0, button 8, same_screen YES #output for button Thumb-down
state 0x0, button 8, same_screen YES

state 0x0, button 9, same_screen YES #ouput for button Thumb-up
state 0x0, button 9, same_screen YES

install software:
sudo apt-get install xbindkeys xbindkeys-config
sudo apt-get install xautomation #i used it to emulate “ctrl alt left” and “ctrl alt right” with a mousebutton

create a default settings file:
xbindkeys --defaults > $HOME/.xbindkeysrc

edit the settings file in terminal and add at the end:
nano ~/.xbindkeysrc

# Workspace Left
 "xte 'keydown Control_L' 'keydown Alt_L' 'key Left' 'keyup Alt_L' 'keyup Control_L'"

# Workspace Right
 "xte 'keydown Control_L' 'keydown Alt_L' 'key Right' 'keyup Alt_L' 'keyup Control_L'"

or edit the settings file with xbindkeys-config (gui):

start xbindkeys:
xbindkeys #start xbindkeys in background

if you created a default settings file you can test xbindkeys with:
Ctrl + Shift + Q

it should give you this popup window

if you change the settings restart xbindkeys each time:
sudo killall xbindkeys

autostart xbindkeys with pc:
cp /etc/X11/xinit/xinitrc ~/.xinitrc
nano ~/.xinitrc

and add the following line at the end:
xbindkeys &

remove all xbindkeys and all other stuff if you followed the tutorial:
sudo apt-get purge xbindkeys xbindkeys-config
sudo apt-get purge xautomation
rm ~/.xbindkeysrc


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.