Add battery command

This commit is contained in:
Oliver Davies 2025-08-19 20:56:05 +01:00
parent 94ec854383
commit d7a9b529e3

View file

@ -0,0 +1,17 @@
{
flake.modules.homeManager.gui =
{ pkgs, ... }:
{
home.packages = [
(pkgs.writeShellApplication {
name = "battery";
runtimeInputs = with pkgs; [ upower ];
text = ''
upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep -E 'state|to full|percentage'
'';
})
];
};
}