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