From d6fda69eee4633743435068c0fefba6fef8fe267 Mon Sep 17 00:00:00 2001 From: Emmet Date: Wed, 5 Jun 2024 21:03:56 -0500 Subject: [PATCH] Added stylix themed launcher icons --- profiles/work/home.nix | 6 + user/pkgs/hyprland-logo-stylix.svg.mustache | 93 +++++++++ user/pkgs/nixos-snowflake-stylix.svg.mustache | 187 ++++++++++++++++++ user/wm/hyprland/hyprland.nix | 7 +- 4 files changed, 292 insertions(+), 1 deletion(-) create mode 100644 user/pkgs/hyprland-logo-stylix.svg.mustache create mode 100644 user/pkgs/nixos-snowflake-stylix.svg.mustache diff --git a/profiles/work/home.nix b/profiles/work/home.nix index 28a2085..7aae935 100644 --- a/profiles/work/home.nix +++ b/profiles/work/home.nix @@ -178,6 +178,12 @@ ventoy ]) ++ ([ pkgs-kdenlive.kdenlive ]); + home.file.".local/share/pixmaps/nixos-snowflake-stylix.svg".source = + config.lib.stylix.colors { + template = builtins.readFile ../../user/pkgs/nixos-snowflake-stylix.svg.mustache; + extension = "svg"; + }; + services.syncthing.enable = true; xdg.enable = true; diff --git a/user/pkgs/hyprland-logo-stylix.svg.mustache b/user/pkgs/hyprland-logo-stylix.svg.mustache new file mode 100644 index 0000000..93ada5a --- /dev/null +++ b/user/pkgs/hyprland-logo-stylix.svg.mustache @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/user/pkgs/nixos-snowflake-stylix.svg.mustache b/user/pkgs/nixos-snowflake-stylix.svg.mustache new file mode 100644 index 0000000..d014f6e --- /dev/null +++ b/user/pkgs/nixos-snowflake-stylix.svg.mustache @@ -0,0 +1,187 @@ + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index b016e6a..1f639ba 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -393,7 +393,7 @@ in terminal = false; type = "Application"; noDisplay = true; - icon = "application-x-executable"; # TODO make custom icon for dock + icon = "/home/"+userSettings.username+"/.local/share/pixmaps/hyprland-logo-stylix.svg"; }) (pyprland.overrideAttrs (oldAttrs: { src = fetchFromGitHub { @@ -519,6 +519,11 @@ in })]) ++ (with pkgs-hyprland; [ hyprlock ]); + home.file.".local/share/pixmaps/hyprland-logo-stylix.svg".source = + config.lib.stylix.colors { + template = builtins.readFile ../../pkgs/hyprland-logo-stylix.svg.mustache; + extension = "svg"; + }; home.file.".config/nwg-dock-hyprland/style.css".text = '' window { background: rgba(''+config.lib.stylix.colors.base00-rgb-r+'',''+config.lib.stylix.colors.base00-rgb-g+'',''+config.lib.stylix.colors.base00-rgb-b+'',0.0);