From 6f2729c673d7911c37926a8f958124b7d028b8cc Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 29 Jan 2026 11:05:34 -0600 Subject: Battery charge alias --- hosts/laptop/configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index d28b4ef..501ca1d 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -27,5 +27,9 @@ programs.light.enable = true; + programs.bash.shellAliases = { + battery = "echo $(($(cat /sys/class/power_supply/BAT0/charge_now)*100/$(cat /sys/class/power_supply/BAT0/charge_full)))%"; + }; + system.stateVersion = "25.11"; } -- cgit v1.2.3