kucera-lukas / rusty-battery Goto Github PK
View Code? Open in Web Editor NEWCLI tool which notifies you when laptop battery reaches a threshold.
Home Page: https://rustybattery.lukaskucera.com
License: MIT License
CLI tool which notifies you when laptop battery reaches a threshold.
Home Page: https://rustybattery.lukaskucera.com
License: MIT License
Desktop notification can sometimes fail with this error:
[WARN] - something went wrong with desktop notification: org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer
.
Information about sent notifications, current battery and others should be shown to the user.
Even though https://github.com/doublify/pre-commit-rust is useful, the inability the specify arguments to clippy
makes it useless as it won't check all-targets (eg. tests
)
If no other alternative is found, custom hooks should be created.
Low level code should not panic, it should propagate errors and let the caller handle them.
This should probably be done via codecov
and data should be uploaded via GitHub actions
.
kdeconnect-cli
as it is very inefficientKDE Connect
device namesGitHub workflows are now trigger on push events to the master
branch but the base branch of this repository is called main
.
error.rs
file should contain the application error definition.
Lint, test and release
Create .pre-commit-config.yml
for linting on commit.
GitHub actions
should be used to make sure that all files adhere to the code style defined in pre-commit-config.yaml
in combination with #4
KDE Connect notification interface should not collect all devices at startup. Better solution is to ping all available devices during the notification event.
The CLI Notify
subcommand should have a new option to allow the user to specify the delay between battery refresh and possible notification event.
This option should have a default so it can be ommitted.
This should probably be done via a CLI subcommand. It should collect battery models of each battery device and print them to the terminal along with their current state of charge to help user identify which one is the one which is in use by their device.
Setup dependabot alongside with #4
Add unit tests to make sure that mainly the lower level functions work as expected.
Binaries should be built every a new release is made and should be saved as an artifact of the action.
Set up GitHub pages for documentation.
Instead of reading current battery percentage via upower
command, we should use more generic interface for different operating systems. The rust-battery
crate is exactly what is needed.
dtolnay/rust-toolchain is a fork of the original actions-rs/toolchain but more up to date.
Add option to ping chosen mobile devices with information about battery charging status.
The kdeconnect-cli
tool should probably be used, unless there is some other handy library for KDE Connect
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.