Skip to content

Commit

Permalink
Add support for Hyprland (danth#145)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Thwaites <[email protected]>
  • Loading branch information
2 people authored and SomeGuyNamedMay committed Sep 11, 2023
1 parent b3c709e commit 55b210b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions modules/hyprland/hm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ config, lib, ... }:

with config.lib.stylix.colors;

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

settings = {
decoration."col.shadow" = rgba base00 "99";
general = {
"col.active_border" = rgb base0A;
"col.inactive_border" = rgb base03;
"col.group_border" = rgb base0D;
"col.group_border_active" = rgb base06;
"col.group_border_locked_active" = rgb base06;
};
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;
}

0 comments on commit 55b210b

Please sign in to comment.