2024-03-21 15:05:23 +00:00
|
|
|
{ ... }:
|
2023-09-10 00:01:39 +00:00
|
|
|
{
|
2024-01-27 15:18:56 +00:00
|
|
|
sane.programs.playerctl = {
|
|
|
|
sandbox.method = "bwrap";
|
2024-02-28 17:35:40 +00:00
|
|
|
sandbox.wrapperType = "inplace"; #< /lib/pkgconfig/playerctl.pc refers to $out by full path
|
2024-02-13 11:58:12 +00:00
|
|
|
sandbox.whitelistDbus = [ "user" ]; # notifications
|
|
|
|
|
2024-01-27 15:18:56 +00:00
|
|
|
services.playerctld = {
|
|
|
|
description = "playerctl daemon to keep track of which MPRIS players were recently active";
|
|
|
|
documentation = [ "https://github.com/altdesktop/playerctl/issues/161" ];
|
2024-03-21 16:02:06 +00:00
|
|
|
partOf = [ "default" ]; #< TODO: maybe better to zero `wantedBy` here and have the specific consumers (e.g. swaync) explicitly depend on this.
|
2024-03-21 15:05:23 +00:00
|
|
|
command = "playerctld";
|
2024-03-21 16:59:04 +00:00
|
|
|
# readiness.waitDbus = "org.mpris.MediaPlayer2.Player"; #< doesn't work... did the endpoint change?
|
2024-01-27 15:18:56 +00:00
|
|
|
};
|
2023-09-10 00:01:39 +00:00
|
|
|
};
|
|
|
|
}
|