zaphyra's git: nixfiles

zaphyra's nixfiles

commit edfb1cd524446658a8a3716a08c924d63a231f18
parent 51ec4651d1592acb13eaa4403e3612211a20f516
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Mon, 21 Jul 2025 08:53:19 +0200

config/home/zaphyra/services: add `batsignal`
2 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/config/home/zaphyra/configure/niri.nix b/config/home/zaphyra/configure/niri.nix
@@ -16,6 +16,7 @@ in
   imports = with homeManagerModules.zaphyra; [
     services.niri
     services.gnome-keyring
+    services.batsignal
     services.wpaperd
     services.waybar
     services.swayosd

@@ -32,14 +33,6 @@ in
     "dconf/.config/dconf"
   ];
 
-  programs.fish.shellInitLast = ''
-    if status --is-login
-      if [ (tty) = "/dev/tty1" ]
-    #    niri-session
-      end
-    end
-  '';
-
   xdg.portal = {
     config.common.default = [
       "gtk"
diff --git a/config/home/zaphyra/services/batsignal.nix b/config/home/zaphyra/services/batsignal.nix
@@ -0,0 +1,22 @@
+{ ... }:
+
+{
+
+  services.batsignal = {
+    enable = true;
+    extraArgs = [
+      # expire notifications
+      "-e"
+      # show message when battery begins charging/discharging
+      "-p"
+      # minimum number of SECONDS to wait between battery checks
+      "-m10"
+      # bat levels
+      "-w20"
+      "-c10"
+      "-d5"
+      "-D" "systemctl suspend"
+    ];
+  };
+
+}+
\ No newline at end of file