From 716a1d1f79024dc0629c61bc912a570a4a200a25 Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Mon, 23 Mar 2026 11:25:46 -0500 Subject: group mercury cleanup and firefox config updates --- hosts/mercury/hjem.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'hosts/mercury/hjem.nix') diff --git a/hosts/mercury/hjem.nix b/hosts/mercury/hjem.nix index 1e87ddd..afdf861 100644 --- a/hosts/mercury/hjem.nix +++ b/hosts/mercury/hjem.nix @@ -3,17 +3,14 @@ obsidian anki libreoffice-qt + musescore - kdePackages.kleopatra prismlauncher mpv + bluetuith opencode - musescore - vital - - bluetuith (pkgs.callPackage ../../pkgs/yo {}) captive-browser # https://words.filippo.io/captive-browser @@ -25,6 +22,13 @@ terminal = false; categories = ["Application"]; }) + + (pkgs.writeShellScriptBin "battery.sh" '' + energy_now=$(cat /sys/class/power_supply/BAT0/energy_now) + energy_full=$(cat /sys/class/power_supply/BAT0/energy_full) + percentage=$((energy_now * 100 / energy_full)) + printf "%.0f%%" "$percentage" + '') ]; files.".config/captive-browser.toml".text = '' -- cgit v1.3.1