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

based on:
https://wiki.archlinux.org/index.php/Xbindkeys
http://www.supernature-forum.de/top-themen-und-anleitungen/69334-funktionieren-zusaetzliche-maustasten-linux-einrichten-5-tasten.html

get the mouse:
http://www.amazon.de/Zelotes-Button-Optical-Wired-Gaming/dp/B00IFRH6JS

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'"
  b:8

# Workspace Right
 "xte 'keydown Control_L' 'keydown Alt_L' 'key Right' 'keyup Alt_L' 'keyup Control_L'"
  b:9

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

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
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

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s