From ed0a9bb9a6062f45f0ef8f5c41de1ff475c62b85 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Wed, 9 Mar 2022 20:51:54 +0200 Subject: [PATCH] feat: battery info --- modules/applications/misc.nix | 1 + modules/applications/shells/aliases.nix | 3 +++ 2 files changed, 4 insertions(+) diff --git a/modules/applications/misc.nix b/modules/applications/misc.nix index 827ef4f..2b103e3 100644 --- a/modules/applications/misc.nix +++ b/modules/applications/misc.nix @@ -5,6 +5,7 @@ exa # ls replacement mkpasswd # hash passwords gnupg + acpi # show remaining battery # typespeed # speed typing game # unixtools.xxd # to dump binary stuff into a text file (used it for a ctf) # youtube-dl # download from youtube diff --git a/modules/applications/shells/aliases.nix b/modules/applications/shells/aliases.nix index 180344b..3534f35 100644 --- a/modules/applications/shells/aliases.nix +++ b/modules/applications/shells/aliases.nix @@ -15,6 +15,9 @@ "v-mid" = "amixer set Master 50%"; "v-max" = "amixer set Master 100%"; + # Print available battery + battery = "acpi"; + # Rebuuild nixos rebuild = "sudo nixos-rebuild switch --flake ~/Projects/nixos-config/";