summaryrefslogtreecommitdiff
path: root/hosts/laptop/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/laptop/configuration.nix')
-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";
}