add miao battery percentage thing

This commit is contained in:
xunuwu 2025-11-23 15:39:07 +01:00
parent 0954b39733
commit 31db7d449c
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
3 changed files with 30 additions and 0 deletions

View file

@ -22,6 +22,7 @@
];
modules-right = [
"custom/keyboard-state"
"custom/miao-battery-percentage"
"tray"
"clock"
];
@ -31,6 +32,11 @@
"sway/window" = {
max-length = 80;
};
"custom/miao-battery-percentage" = {
return-type = "json";
exec = "${lib.getExe self.packages.${pkgs.system}.miao-battery-percentage}";
restart-interval = "60";
};
"custom/keyboard-state" = {
return-type = "json";
exec = "${lib.getExe self.packages.${pkgs.system}.keyboard-state}";