You are not logged in.
Pages: 1
The problem: Naga 2014 has 12 buttons that are exactly keyboard's '1-0,-,='. I would like to remap these buttons to something else.
$ lsusb | grep -i razer
Bus 003 Device 002: ID 1532:011b Razer USA, Ltd # Razer BlackWidows 2013
Bus 001 Device 005: ID 1532:0040 Razer USA, Ltd # Razer Naga 2014What I did:
First, I followed that topic https://bbs.archlinux.org/viewtopic.php?pid=1181482
After
remote_id=$(
xinput list |
sed -n 's/.*Naga.*id=\([0-9]*\).*keyboard.*/\1/p'
)
[ "$remote_id" ] || exit
mkdir -p /tmp/xkb/symbols
cat >/tmp/xkb/symbols/custom <<\EOF
xkb_symbols "remote" {
key <AE01> { [0xffca] };
key <AE02> { [0xffcb] };
key <AE03> { [0xffcc] };
key <AE04> { [0xffcd] };
key <AE05> { [0xffce] };
key <AE06> { [0xffcf] };
key <AE07> { [0xffd0] };
key <AE08> { [0xffd1] };
key <AE09> { [0xffd2] };
key <AE10> { [0xffd3] };
key <AE11> { [0xffd4] };
key <AE12> { [0xffd5] };
};
EOF
setxkbmap -device $remote_id -print | sed 's/\(xkb_symbols.*\)"/\1+custom(remote)"/' | xkbcomp -I/tmp/xkb -i $remote_id -synch - $DISPLAY 2>/dev/nullMouse' buttons become as F13-F24, but after assigning them to any actions the corresponding keyboard's key becomes unavailable, i.e. cannot type '1-0,-,=' , they work only with Shift.
After applying rules in /usr/lib/udev/hwdb.d/60-keyboard.hwdb
keyboard:usb:v1532p0040*
KEYBOARD_KEY_7001e=f13
KEYBOARD_KEY_7001f=f14
KEYBOARD_KEY_70020=f15
KEYBOARD_KEY_70021=f16
KEYBOARD_KEY_70022=f17
KEYBOARD_KEY_70023=f18
KEYBOARD_KEY_70024=f19
KEYBOARD_KEY_70025=f20
KEYBOARD_KEY_70026=f21
KEYBOARD_KEY_70027=f22
KEYBOARD_KEY_7002d=f23
KEYBOARD_KEY_7002e=f24nothing happens at all.
Question:
Is there any workable solution?
P.S. I also tried xbindkeys, but as keycodes of mouse 1-12 buttons and keyboard's 1-0,-,= are the same I got the same action.
Last edited by Perfect Gentleman (2014-03-22 09:10:12)
Offline
did you made any process yet?
i have a Naga 2012 and also want to use the keys.
regards!
Offline
remote_id=$(
xinput list |
sed -n 's/.*Naga.*id=\([0-9]*\).*keyboard.*/\1/p'
)
[ "$remote_id" ] || exit
mkdir -p /tmp/xkb/symbols
cat >/tmp/xkb/symbols/custom <<\EOF
xkb_symbols "remote" {
key <AE01> { [0x1008ff13] }; # Volume Up
key <AE02> { [0xffcb] }; # F14
key <AE03> { [0x1008ff11] }; # Volume Down
key <AE04> { [0xffcd] }; # F16
key <AE05> { [0xffce] }; # F17
key <AE06> { [0xffcf] }; # F18
key <AE07> { [0xffd0] }; # F19
key <AE08> { [0xffd1] }; # F20
key <AE09> { [0xffd2] }; # F21
key <AE10> { [0xffd3] }; # F22
#key <AE11> { [0xffd4] }; # F23
#key <AE12> { [0xffd5] }; # F24
};
EOF
setxkbmap -device $remote_id -print | sed 's/\(xkb_symbols.*\)"/\1+custom(remote)"/' | xkbcomp -I/tmp/xkb -i $remote_id -synch - $DISPLAY 2>/dev/nulthen reconfigure the buttons for your needs
Offline
Pages: 1