{ pkgs, ... }@all: with all; { home.packages = with pkgs; [ unstable.spotify ]; services.librespot = { enable = true; package = pkgs.unstable.librespot; }; sops.secrets."spotify/spotiy-player-clinet-id" = { path = "%r/secrets/spotify/spotiy-player-clinet-id"; }; programs.spotify-player = { enable = true; package = pkgs.unstable.spotify-player; settings = { border_type = "Rounded"; client_id_command = "cat $XDG_RUNTIME_DIR/secrets/spotify/spotiy-player-clinet-id"; copy_command.command = "wl-copy"; cover_img_length = 20; cover_img_scale = 1; # if this is not 1 it doesnt fit in the box (for me) cover_img_width = 9; # this ratio depends on your terminal font device.normalization = true; genre_num = 32; # all of them liked_icon = ""; name = "spotify-player-${hyper.host}"; pause_icon = ""; playback_window_position = "Bottom"; play_icon = ""; progress_bar_position = "Right"; # "Bottom" progress_bar_type = "Rectangle"; # "Line" theme = "${hyper.user}"; }; themes = [{ name = "${hyper.user}"; component_style = with rice.color; { block_title = { fg = accent.bright; }; border = { fg = border; }; current_playing = { fg = special.base; bg = special.darker; modifiers = ["Italic"]; }; like = { fg = positive.base; }; lyrics_played = { fg = subtle.base; }; lyrics_playing = { fg = special.base; }; page_desc = { fg = secondary.base; }; playback_album = { fg = secondary.base; }; playback_artists = { fg = secondary.base; }; playback_genres = { fg = subtle.base; }; playback_metadata = { fg = accent.base; bg = background; }; playback_progress_bar = { fg = accent.brighter; bg = accent.dark; modifiers = ["Bold"]; }; playback_status = { fg = accent.bright; }; playback_track = { fg = accent.bright; modifiers = ["Bold"]; }; secondary_row = { fg = accent.brighter; }; selection = { bg = accent.dark; }; table_header = { fg = tertiary.bright; }; # playback_progress_bar_unfilled (Specific to progress_bar_type as Line) = ""; }; }]; }; }