mirror of
https://github.com/danth/stylix
synced 2024-11-22 04:03:09 +00:00
spicetify: init (#574)
Creates a theme for Spotify, when used in combination with https://github.com/Gerg-L/spicetify-nix
This commit is contained in:
parent
1e9ec16a37
commit
0eea8bcb0f
3 changed files with 45 additions and 0 deletions
1
modules/spicetify/hm.nix
Normal file
1
modules/spicetify/hm.nix
Normal file
|
@ -0,0 +1 @@
|
|||
import ./spicetify.nix
|
1
modules/spicetify/nixos.nix
Normal file
1
modules/spicetify/nixos.nix
Normal file
|
@ -0,0 +1 @@
|
|||
import ./spicetify.nix
|
43
modules/spicetify/spicetify.nix
Normal file
43
modules/spicetify/spicetify.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ config, options, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
options.stylix.targets.spicetify.enable =
|
||||
config.lib.stylix.mkEnableTarget "Spicetify" true;
|
||||
|
||||
config = lib.mkIf (config.stylix.enable && config.stylix.targets.spicetify.enable && (config.programs?spicetify)) (
|
||||
lib.optionalAttrs (builtins.hasAttr "spicetify" options.programs) {
|
||||
programs.spicetify = {
|
||||
theme = {
|
||||
name = "stylix";
|
||||
src = pkgs.writeTextFile {
|
||||
name = "color.ini";
|
||||
destination = "/color.ini";
|
||||
text = with config.lib.stylix.colors; ''
|
||||
[base]
|
||||
text = ${base05}
|
||||
subtext = ${base05}
|
||||
main = ${base00}
|
||||
main-elevated = ${base02}
|
||||
highlight = ${base02}
|
||||
highlight-elevated = ${base03}
|
||||
sidebar = ${base01}
|
||||
player = ${base05}
|
||||
card = ${base04}
|
||||
shadow = ${base00}
|
||||
selected-row = ${base05}
|
||||
button = ${base05}
|
||||
button-active = ${base05}
|
||||
button-disabled = ${base04}
|
||||
tab-active = ${base02}
|
||||
notification = ${base02}
|
||||
notification-error = ${base08}
|
||||
equalizer = ${base0B}
|
||||
misc = ${base02}
|
||||
'';
|
||||
};
|
||||
};
|
||||
colorScheme = "base";
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
Loading…
Reference in a new issue