Skip to content

Commit

Permalink
add support for all known headphones
Browse files Browse the repository at this point in the history
  • Loading branch information
aarol committed Mar 27, 2024
1 parent c8bb822 commit f94a274
Show file tree
Hide file tree
Showing 8 changed files with 598 additions and 168 deletions.
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"rust-lang.rust-analyzer",
"ms-vscode.powershell",
"tamasfe.even-better-toml"
]
}
135 changes: 134 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
[package]
name = "arctis-battery-indicator"
version = "0.1.0"
version = "1.1.0"
edition = "2021"
authors = ["Aaro Luomanen"]
description = "Battery icon for the SteelSeries Arctis headset."
license = "MIT"
homepage = "https://github.com/aarol/"
default-run = "arctis-battery-indicator-debug"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[[bin]]
name = "arctis-battery-indicator-debug"
path = "src/bin/debug.rs"

[dependencies]
anyhow = "1.0.81"
dirs = "5.0.1"
hidapi = {version = "2.6.1"}
log = "0.4.21"
simplelog = { version = "0.12.2", features = ["paris"] }
tray-icon = "0.12.0"
winit = "0.29.15"
winreg = "0.52.0"

[build-dependencies]
winres = "0.1"

[profile.release]
opt-level = "z"
lto = true
Binary file added docs/icon-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/bin/debug.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
use arctis_battery_indicator::run;
use log::error;
use simplelog::{Config, TermLogger};

fn main() {
TermLogger::init(
log::LevelFilter::Debug,
Config::default(),
simplelog::TerminalMode::Mixed,
simplelog::ColorChoice::Auto,
)
.unwrap();

if let Err(e) = run() {
error!("Application stopped unexpectedly: {e:?}");
}
}
Loading

0 comments on commit f94a274

Please sign in to comment.