summaryrefslogtreecommitdiff
path: root/hosts/laptop
diff options
context:
space:
mode:
authorChristian <[email protected]>2026-01-29 11:05:34 -0600
committerChristian <[email protected]>2026-01-29 11:05:34 -0600
commit6f2729c673d7911c37926a8f958124b7d028b8cc (patch)
tree9f4a381cea108f530883d01b2d6ea6cde5ea85db /hosts/laptop
parent33864bef97cb6d0e0efdb858db588e252dfee653 (diff)
Battery charge alias
Diffstat (limited to 'hosts/laptop')
-rw-r--r--hosts/laptop/configuration.nix4
1 files changed, 4 insertions, 0 deletions
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";
}