{ config, lib, pkgs, ... }:
{
  config = lib.mkIf config.home.desktop.enable {
    home.packages = with pkgs; [ mpc-cli ];

    programs.ncmpcpp = {
      enable = true;
      settings = {
        browser_sort_mode = "name";
        user_interface = "alternative";
      };
      bindings = [
        { key = "h"; command = "volume_down"; }
        { key = "j"; command = "scroll_down"; }
        { key = "k"; command = "scroll_up"; }
        { key = "l"; command = "volume_up"; }
      ];
    };

    services.mpd-discord-rpc.enable = true;
  };
}
