How to get Razer Naga HotKeying Working on Debian

lightonflux edited this page Jun 11, 2014 · 11 revisions
Clone this wiki locally

Note: This is more of a work around as you don't get to set macros on the mouses internal memory. But with Linux programs, you can simulate all the key presses, mouse clicks you want.

Step 1: First get the code from github. (I don't exactly know how yet I just uploaded it).

If you have gdm3 you need to copy & paste this into $HOME/.xsessionrc and then relog back in for it to take effect.

Source http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586685

# there are square brackets here but backslashes don't work on escaping on this wiki
if [[ $XAUTHORITY != ~/.Xauthority ]]; then
    XAUTHORITY=~/.Xauthority xauth merge $XAUTHORITY
    export XAUTHORITY=~/.Xauthority
fi

Step 2:

mkdir $HOME/.naga
touch $HOME/.naga/button_{1,2,3,4,5,6,7,8,9,10,11,12}

chmod +x $HOME/.naga/button_{1,2,3,4,5,6,7,8,9,10,11,12}

Step 3: cd into the downloaded code and do make # then as root make install

unplug and plug your mouse back in

open $HOME/.naga/button_1 and copy and paste

xmessage "hello world"

Now press button 1 on the mouse. A message hello world should popup