summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/laptop/configuration.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix
index 2ac3ce0..a2030fe 100644
--- a/hosts/laptop/configuration.nix
+++ b/hosts/laptop/configuration.nix
@@ -40,6 +40,11 @@
hibernate = "systemctl hibernate";
};
+ programs.fish.shellAliases = {
+ battery = "echo (math (cat /sys/class/power_supply/BAT0/charge_now) * 100 / (cat /sys/class/power_supply/BAT0/charge_full))%";
+ hibernate = "systemctl hibernate";
+ };
+
services.keyd = {
enable = true;
keyboards.default = {