I found an article in the german ubuntuusers wiki saying that the directory is located in /usr/share/X11/
and not in /etc/X11/
.
So I just added the file in /usr/share/X11/xorg.conf.d/
and it worked.
For further reference:
I added the file 910-rat.conf
to the folder /usr/X11/xorg.conf.d/
.
The file contained the following content:
Section "InputClass"
Identifier "Cyborg R.A.T. 9"
MatchProduct "R.A.T.7|R.A.T.9"
MatchDevicePath "/dev/input/event*"
Option "Buttons" "17"
Option "ButtonMapping" "1 2 3 4 5 0 0 8 9 7 6 12 0 0 0 16 17"
Option "AutoReleaseButtons" "13 14 15"
Option "ZAxisMapping" "4 5 6 7"
EndSection