Notify of low battery via swaynag

This commit is contained in:
coolneng 2025-08-27 04:17:30 +02:00
parent e655f2281a
commit 35b7783082
Signed by: coolneng
GPG Key ID: 9893DA236405AF57

View File

@ -137,4 +137,15 @@ in
startAt = "10:00:00"; startAt = "10:00:00";
after = [ "network-online.target" ]; after = [ "network-online.target" ];
}; };
# Show notification when the battery is low
systemd.user.services.swaynag-battery = {
description = "Show notification when the battery is low";
path = [
swaynag-battery
sway
];
script = "${pkgs.swaynag-battery}/bin/swaynag-battery --threshold 10";
wantedBy = [ "sway-session.target" ];
};
} }