2023-02-10 07:46:37 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2023-01-31 09:38:11 +01:00
|
|
|
inherit (pkgs.stdenv.hostPlatform) isDarwin;
|
|
|
|
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
2023-02-10 07:46:37 +01:00
|
|
|
in {
|
2023-01-31 09:38:11 +01:00
|
|
|
programs.ncmpcpp = {
|
|
|
|
enable = isLinux;
|
|
|
|
bindings = [
|
2023-02-10 07:46:37 +01:00
|
|
|
{
|
|
|
|
key = "j";
|
|
|
|
command = "scroll_down";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "k";
|
|
|
|
command = "scroll_up";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "J";
|
|
|
|
command = ["select_item" "scroll_down"];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "K";
|
|
|
|
command = ["select_item" "scroll_up"];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "h";
|
|
|
|
command = "previous_column";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "l";
|
|
|
|
command = "next_column";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "ctrl-b";
|
|
|
|
command = "page_up";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "ctrl-u";
|
|
|
|
command = "page_up";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "ctrl-f";
|
|
|
|
command = "page_down";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "ctrl-d";
|
|
|
|
command = "page_down";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "g";
|
|
|
|
command = "move_home";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "G";
|
|
|
|
command = "move_end";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "n";
|
|
|
|
command = "next_found_item";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
key = "N";
|
|
|
|
command = "previous_found_item";
|
|
|
|
}
|
2023-01-31 09:38:11 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
mpd.enable = isLinux;
|
|
|
|
mpd-discord-rpc = {
|
|
|
|
enable = isLinux;
|
|
|
|
settings = {
|
|
|
|
format = {
|
|
|
|
state = "$artist";
|
|
|
|
large_image = "https://cdn.discordapp.com/emojis/743725086262951957.gif";
|
|
|
|
large_text = "$album";
|
|
|
|
small_image = "https://cdn.discordapp.com/emojis/743723149455261717.png";
|
|
|
|
small_text = "pretty fucking based";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-02-13 00:54:29 +01:00
|
|
|
home.packages = lib.mkIf isDarwin [pkgs.nur.repos.nekowinston.discord-applemusic-rich-presence];
|
2023-01-31 09:38:11 +01:00
|
|
|
|
|
|
|
launchd.agents.discord-applemusic-rich-presence = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
2023-02-13 00:54:29 +01:00
|
|
|
ProgramArguments = ["${lib.getExe pkgs.nur.repos.nekowinston.discord-applemusic-rich-presence}"];
|
2023-01-31 09:38:11 +01:00
|
|
|
KeepAlive = true;
|
|
|
|
RunAtLoad = true;
|
|
|
|
StandardErrorPath = "${config.home.homeDirectory}/.cache/discord-applemusic-rich-presence.log";
|
|
|
|
StandardOutPath = "${config.home.homeDirectory}/.cache/discord-applemusic-rich-presence.log";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|