Notify of low battery via swaynag
This commit is contained in:
parent
e655f2281a
commit
35b7783082
@ -137,4 +137,15 @@ in
|
||||
startAt = "10:00:00";
|
||||
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" ];
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user