Re-use dunst for battery notifications

This commit is contained in:
Oliver Davies 2024-11-25 08:03:59 +00:00
parent 196b793515
commit 8a6be4f1de

View file

@ -13,6 +13,14 @@ let
in in
{ {
services = { services = {
cron = {
enable = true;
systemCronJobs = [
"* * * * * opdavies /home/opdavies/bin/notify-battery"
];
};
displayManager.defaultSession = "none+i3"; displayManager.defaultSession = "none+i3";
xserver = { xserver = {
@ -30,7 +38,8 @@ in
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
dunst acpi
libnotify
nitrogen nitrogen
]; ];
@ -135,5 +144,11 @@ in
load.enable = false; load.enable = false;
}; };
}; };
services.dunst = {
enable = true;
settings.global.follow = "keyboard";
};
}; };
} }