Skip to content

Commit

Permalink
move hyprpaper into hyprland
Browse files Browse the repository at this point in the history
  • Loading branch information
edrobertsrayne committed May 23, 2024
1 parent b739954 commit e3c1308
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions modules/hyprland/hm.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{ config, lib, ... }:
{
config,
lib,
...
}:
with config.lib.stylix.colors; let
cfg = config.stylix.targets.hyprland;

with config.lib.stylix.colors;

let
rgb = color: "rgb(${color})";
rgba = color: alpha: "rgba(${color}${alpha})";

Expand All @@ -19,11 +22,16 @@ let
};
misc.background_color = rgb base00;
};

in {
options.stylix.targets.hyprland.enable =
config.lib.stylix.mkEnableTarget "Hyprland" true;

config.wayland.windowManager.hyprland.settings =
lib.mkIf config.stylix.targets.hyprland.enable settings;
config = lib.mkIf cfg.enable {
wayland.windowManager.hyprland = {inherit settings;};

services.hyprpaper.settings = {
preload = ["${config.stylix.image}"];
wallpaper = [",${config.stylix.image}"];
};
};
}

0 comments on commit e3c1308

Please sign in to comment.