custom playerctl service
This commit is contained in:
parent
63c2953b90
commit
6d9f543af8
1 changed files with 14 additions and 1 deletions
|
@ -17,7 +17,20 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.playerctld.enable = true;
|
systemd.user.services.playerctld = {
|
||||||
|
Unit = {
|
||||||
|
Description = "MPRIS media player daemon";
|
||||||
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
Install.WantedBy = [ "graphical-session.target" ];
|
||||||
|
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.playerctl}/bin/playerctld";
|
||||||
|
Type = "dbus";
|
||||||
|
BusName = "org.mpris.MediaPlayer2.playerctld";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
playerctl
|
playerctl
|
||||||
|
|
Loading…
Reference in a new issue