clipse and batsignal

This commit is contained in:
Reid 2024-07-25 17:25:29 -07:00
parent a590e31e3e
commit 49d20db7f3
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
4 changed files with 57 additions and 1 deletions

View file

@ -0,0 +1,23 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.desktop.batsignal;
in {
options.modules.desktop.batsignal = {
enable = mkEnableOption "Enable batsignal, a battery notification service";
package = mkOption {
type = types.package;
default = pkgs.batsignal;
};
};
config = mkIf cfg.enable {
hm.wayland.windowManager.hyprland.settings.exec-once = [
# -w 20 -c 10 -d 5 -- set battery levels
# -p -- notify on plug/unplug
# -m 2 -- set interval to 2 seconds
"${lib.getExe cfg.package} -w 20 -c 10 -d 5 -p -m 2"
];
};
}