From 11ceb2fde1901dc227421bbbef2d0800339f5126 Mon Sep 17 00:00:00 2001 From: repparw <45952970+repparw@users.noreply.github.com> Date: Fri, 25 Apr 2025 19:07:03 -0300 Subject: [PATCH] spotify-player: init (#1177) Link: https://github.com/danth/stylix/pull/1177 Reviewed-by: awwpotato --- modules/spotify-player/hm.nix | 42 +++++++++++++++++++++++++++++++++ modules/spotify-player/meta.nix | 5 ++++ stylix/maintainers.nix | 6 +++++ 3 files changed, 53 insertions(+) create mode 100644 modules/spotify-player/hm.nix create mode 100644 modules/spotify-player/meta.nix diff --git a/modules/spotify-player/hm.nix b/modules/spotify-player/hm.nix new file mode 100644 index 00000000..a99eaf1a --- /dev/null +++ b/modules/spotify-player/hm.nix @@ -0,0 +1,42 @@ +{ + config, + lib, + ... +}: +{ + options.stylix.targets.spotify-player.enable = + config.lib.stylix.mkEnableTarget "spotify-player" true; + + config = + lib.mkIf (config.stylix.enable && config.stylix.targets.spotify-player.enable) + { + programs.spotify-player = { + settings.theme = "stylix"; + themes = [ + { + name = "stylix"; + palette = with config.lib.stylix.colors.withHashtag; { + background = base00; + foreground = base05; + black = base00; + red = base08; + green = base0B; + yellow = base0A; + blue = base0D; + magenta = base0E; + cyan = base0C; + white = base05; + bright_black = base03; + bright_red = base08; + bright_green = base0B; + bright_yellow = base0A; + bright_blue = base0D; + bright_magenta = base0E; + bright_cyan = base0C; + bright_white = base07; + }; + } + ]; + }; + }; +} diff --git a/modules/spotify-player/meta.nix b/modules/spotify-player/meta.nix new file mode 100644 index 00000000..2cb9bca7 --- /dev/null +++ b/modules/spotify-player/meta.nix @@ -0,0 +1,5 @@ +{ lib, ... }: +{ + maintainers = [ lib.maintainers.repparw ]; + name = "spotify-player"; +} diff --git a/stylix/maintainers.nix b/stylix/maintainers.nix index fd48f9e9..918e6896 100644 --- a/stylix/maintainers.nix +++ b/stylix/maintainers.nix @@ -28,6 +28,12 @@ { fingerprint = "36BC 916D DD4E B1EE EE82 4BBF DC95 900F 6DA7 9992"; } ]; }; + repparw = { + email = "ubritos@gmail.com"; + name = "Ulises Britos"; + github = "repparw"; + githubId = 45952970; + }; skoove = { email = "zie@sturges.com.au"; name = "Zie Sturges";