mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
feat: added systemd service for mpd-discord-rpc
This commit is contained in:
parent
766a177ce6
commit
938c7facab
1 changed files with 17 additions and 1 deletions
|
|
@ -22,7 +22,7 @@
|
|||
format = {
|
||||
hosts = [ "localhost:6600" ];
|
||||
details = "$title";
|
||||
state = "🥒💦$artist";
|
||||
state = "$artist";
|
||||
display_type = "state";
|
||||
};
|
||||
};
|
||||
|
|
@ -38,4 +38,20 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.services.mpd-discord-rpc = {
|
||||
Unit = {
|
||||
After = [
|
||||
"mpd.service"
|
||||
"graphical-session.target"
|
||||
];
|
||||
Requires = [ "mpd.service" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Restart = "on-failure";
|
||||
RestartSec = "10s";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue