battery notify script

the script, originally written in bash, is rewrited into python,
whose UPower implements (from `wogscpar/upower-python`) make me lazy to check out again.
This commit is contained in:
2025-12-29 02:40:36 +08:00
parent 78ca119a76
commit 8683a7db3b
2 changed files with 200 additions and 0 deletions

View File

@@ -43,3 +43,6 @@
- `hoyocloud-chromium-userscript.js`顾名思义,用于**在 Chrome 里**firefox 不需要)游玩米哈游云游戏的油猴脚本。
参见 [Bilibili 专栏](https://www.bilibili.com/opus/842314310196658193)。
- `bin/.battery-warn`虽说也是自用,但一是配置项并不算敏感,稍微改改`config`段也可以泛用;二是参考文献写得有点啰嗦,我懒得再缝第二遍。
个人建议用于**定时任务cron 或 systemd timer**。