I know this is an old thread, but I would like to toss in my three cents, adjusted for inflation.
I personally run Ubuntu 13.10 in a home-built quad core gaming rig, which used to run Windows 7 Ultimate x64. I reformatted and installed Ubuntu about eight months ago, and I haven't looked back since. I use a Razer Lycosa backlit keyboard with a matching Razer Imperator mouse, and both work flawlessly. I don't use the built in macros on the keyboard, so I can't vouch for that. What I can vouch for, is the backlighting works perfectly, the multimedia keys are flawless, and the anti-ghosting is excellent. I'm an exceptionally fast typer (90-105 wpm) and this baby never flunks out on me. I've had serious issues with Logitech boards dogging out when I'm in "beast mode," typing reports, papers, etc. I don't get that with my Lycosa.
The extra USB port, as well as headphone and mic jacks also work on the back of the keyboard, because they're just extensions/pass throughs from the back of the tower. When you hook up the Lycosa to your PC, you have two USB ports, as well as a mic and headphone jack to plug in as well.
In conclusion, the keyboard works perfectly out of the box for Ubuntu, unless you HAVE to have the macros. I'm pretty sure you can plug it into a Windows machine for configuration, and then plug it back into your linux box to use them, since your macros are stored in the keyboard itself.
The Razer Imperator mouse also works like a dream in Linux. Since it was first used on a windows machine, the DPI settings were already loaded into the mouse's memory. Once plugged into ubuntu, no software was needed because the Imperator is hardware based. The DPI adjusters on the spine of the mouse still work flawlessly, as well as the extra thumb-buttons for back and forward, or whatever you choose to run there. All of the lights work, and I've had absolutely no mishaps on either device.
I hope this helps at least one person out there. If so, my work here is done. :-)
From what I understand, to put it in simple words, you want to create a custom key (be it a combination of keys).
If that's the case and you are using Ubuntu Precise go to SYSTEM SETTINGS then KEYBOARD and then hit the SHORTCUTS tab.
If the feature you want isn't in the list just go to the bottom on the list on the left hand side and click CUSTOM SHORTCUTS.
You can then click the little + symbol at the bottom of the screen to add a new custom shortcut. Then type in the Shortcut name followed by the command to invoke it (really depends and what you want to do). You'll have to research the command you need to start or invoke the application or task you want to do. After typing in the command hit OK.
You will now see the shortcut created in the list. Towards the right it will have the word DISABLED. click on the word DISABLED and then click the key or combination of keys you want to use to activate this shortcut (the command) you created.
for example: if I want to create a key shortcut to open www.google.com in the browser and want to call the shortcut CHROME. I
then want it to run when I hit CTRL + W, I would do the following in
the SYSTEM SETTINGS > KEYBOARD > SHORTCUTS section
NAME: CHROME
COMMAND: chromium-browser http://www.google.com
I would then hit the OK button
Then, I would click on the word DISABLED that appears the right
of the shortcut named CHROME
After clicking on the word DISABLED I would hit CTRL and W
key together.
You can use the SUPER key or any key on your keyboard. I've tested this on my system with a Logitech (being a Logitech Fan lol).
Best Answer
I created GitHub repository for k380 configuration program.
https://github.com/jergusg/k380-function-keys-conf
I did the same steps as Mario to get sequence for k380. The code is same as Mario's, but with the sequence for k380 keyboard and k380 device ID. It outputs
write: 0 were written instead of 7
on my computer, but it works anyway.The sequences are: