diff --git a/CHANGELOG.md b/CHANGELOG.md index e3b26e15..fe0846e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,10 +5,32 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.13.0] - 2020-29-06 ### Changed -- Dbus command LedWriteBytes renamed to SetKeyBacklight -- Dbus signal LedCancelEffect renamed to KeyBacklightChanged -- Dbus command SetKeyBacklight will now take a JSON string instead of an array of bytes +- Dbus command `LedWriteBytes` renamed to `SetKeyBacklight` +- Dbus command `SetKeyBacklight` will now take a JSON string instead of an array of bytes + + Example: + ``` + { + "Breathe": { + "help": false, + "colour": [ + 254, + 5, + 171 + ], + "colour2": [ + 0, + 156, + 156 + ], + "speed": "High" + } + } + ``` + note that `help` is unused but required as a side-effect of using `gumdrop` + for CLI. +- Dbus signal `LedCancelEffect` renamed to `KeyBacklightChanged` - Config file is now in JSON format, and will store only the LED modes that a laptop supports rather than the whole set diff --git a/Cargo.lock b/Cargo.lock index 223b3f3f..72887853 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -750,7 +750,7 @@ dependencies = [ [[package]] name = "rog-daemon" -version = "0.12.2" +version = "0.13.0" dependencies = [ "dbus", "dbus-tokio", diff --git a/Makefile b/Makefile index 1eadf9fd..ecf8b03f 100644 --- a/Makefile +++ b/Makefile @@ -54,6 +54,6 @@ vendor: target/release/$(BIN): $(SRC) ifeq ($(VENDORED),1) - tar pxf vendor_rog-core_.tar.xz + tar pxf vendor.tar.xz endif cargo build $(ARGS) diff --git a/debian/changelog b/debian/changelog index c6c74a19..f94ecce4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,34 @@ +rog-core (0.13.0) focal; urgency=medium + + - Dbus command `LedWriteBytes` renamed to `SetKeyBacklight` + - Dbus command `SetKeyBacklight` will now take a JSON string instead of an array of bytes + + Example: + ``` + { + "Breathe": { + "help": false, + "colour": [ + 254, + 5, + 171 + ], + "colour2": [ + 0, + 156, + 156 + ], + "speed": "High" + } + } + ``` + note that `help` is unused but required as a side-effect of using `gumdrop` + for CLI. + - Dbus signal `LedCancelEffect` renamed to `KeyBacklightChanged` + - Config file is now in JSON format, and will store only the LED modes that a laptop + supports rather than the whole set + + -- Luke Jones Mon, 29 Jun 2020 21:45:51 +1200 + rog-core (0.12.2) focal; urgency=medium * Changed "FanMode", "ChargeLimit" to "SetFanMode", "SetChargeLimit" diff --git a/rog-client/src/core_dbus.rs b/rog-client/src/core_dbus.rs index 47106052..bde16419 100644 --- a/rog-client/src/core_dbus.rs +++ b/rog-client/src/core_dbus.rs @@ -100,7 +100,7 @@ impl AuraDbusWriter { } #[inline] - pub fn write_bytes(&self, mode: &AuraModes) -> Result<(), Box> { + pub fn write_keyboard_leds(&self, mode: &AuraModes) -> Result<(), Box> { let mut msg = Message::new_method_call(DBUS_NAME, DBUS_PATH, DBUS_IFACE, "SetKeyBacklight")? .append1(serde_json::to_string(mode)?); @@ -129,12 +129,12 @@ impl AuraDbusWriter { #[inline] pub fn write_builtin_mode(&self, mode: &AuraModes) -> Result<(), Box> { - self.write_bytes(mode) + self.write_keyboard_leds(mode) } #[inline] pub fn write_brightness(&self, level: u8) -> Result> { - self.write_bytes(&AuraModes::LedBrightness(level))?; + self.write_keyboard_leds(&AuraModes::LedBrightness(level))?; Ok(String::new()) } } diff --git a/rog-core/Cargo.toml b/rog-core/Cargo.toml index 122bac38..69a9df00 100644 --- a/rog-core/Cargo.toml +++ b/rog-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rog-daemon" -version = "0.12.2" +version = "0.13.0" license = "MPL-2.0" readme = "README.md" authors = ["Luke "] diff --git a/rog-core/src/main.rs b/rog-core/src/main.rs index a01cb44d..bc805dea 100644 --- a/rog-core/src/main.rs +++ b/rog-core/src/main.rs @@ -10,7 +10,7 @@ use rog_client::{ LED_MSG_LEN, }; -static VERSION: &str = "0.12.2"; +static VERSION: &str = "0.13.0"; #[derive(Debug, Options)] struct CLIStart {