clipse and batsignal
This commit is contained in:
parent
a590e31e3e
commit
49d20db7f3
4 changed files with 57 additions and 1 deletions
23
modules/desktop/batsignal.nix
Normal file
23
modules/desktop/batsignal.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue