Changed command-line arguments to keep backwards compatibility. Changed check on arguments to force the usage of mode when color preset is changed (original behavior). Updated README
This program can change the colors on your MSI steelseries keyboard. The keyboards have 3 regions that can have different colors for each one.
This program can change the colors on your MSI steelseries keyboard. Depending on the model, the keyboards have 3 or 7 regions that can have different colors for each one.
Prerequisites (tested on Ubuntu 14.04 only):
@ -22,11 +22,12 @@ Options:
-h, --help Displays this help.
-v, --version Displays version information.
-m, --mode <mode> set color <mode>: normal, gaming, breathe, demo, wave
-c, --color <color> set a <color> using the format: region,red,green,blue
with rgb values between 0 and 255
-p, --preset <preset> set a color <preset> using the format:
region,color,intensity (only valid for
left/middle/right regions)
-r, --rgb <rgb> set an <rgb> color using the format:
region,red,green,blue with rgb values between 0 and 255
-c, --color <color> set a <color> preset using the format:
region,color,intensity (only valid for left/middle/right
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
$The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
QCommandLineOptionmode(QStringList()<<"m"<<"mode","set color <mode>: normal, gaming, breathe, demo, wave","mode");
QCommandLineOptioncolor(QStringList()<<"c"<<"color","set a <color> using the format: region,red,green,blue with rgb values between 0 and 255","color");
QCommandLineOptioncolorPreset(QStringList()<<"p"<<"preset","set a color <preset> using the format: region,color,intensity (only valid for left/middle/right regions)","preset");
QCommandLineOptioncolor(QStringList()<<"r"<<"rgb","set an <rgb> color using the format: region,red,green,blue with rgb values between 0 and 255","rgb");
QCommandLineOptioncolorPreset(QStringList()<<"c"<<"color","set a <color> preset using the format: region,color,intensity (only valid for left/middle/right regions). When using this option, a mode must be specified with -m","color");
parser.addOption(mode);
parser.addOption(color);
@ -237,7 +237,7 @@ Available preset intensities (only for left/middle/right regions):