forked from danth/stylix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Hyprland (danth#145)
Co-authored-by: Daniel Thwaites <[email protected]>
- Loading branch information
1 parent
b3c709e
commit 55b210b
Showing
2 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |