Add support for Hyprland (#145)
Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
This commit is contained in:
parent
c3d1195908
commit
c3c9f4784b
2 changed files with 33 additions and 6 deletions
12
flake.lock
generated
12
flake.lock
generated
|
|
@ -57,11 +57,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1689134369,
|
||||
"narHash": "sha256-0G9dutIvhS/WUr3Awcnqw71g8EVVvvkOhVDnDDbY4Fw=",
|
||||
"lastModified": 1691882297,
|
||||
"narHash": "sha256-e1/LAQSGLnBywfA1TfMl0Vj3tvYka73XOZ/D2/CJowE=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "e42fb59768f0305085abde0dd27ab5e0cc15420c",
|
||||
"rev": "c3ab5ea047e6dc73df530948f7367455749d8906",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -72,11 +72,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1690441914,
|
||||
"narHash": "sha256-Ac+kJQ5z9MDAMyzSc0i0zJDx2i3qi9NjlW5Lz285G/I=",
|
||||
"lastModified": 1691853136,
|
||||
"narHash": "sha256-wTzDsRV4HN8A2Sl0SVQY0q8ILs90CD43Ha//7gNZE+E=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "db8672b8d0a2593c2405aed0c1dfa64b2a2f428f",
|
||||
"rev": "f0451844bbdf545f696f029d1448de4906c7f753",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
27
modules/hyprland/hm.nix
Normal file
27
modules/hyprland/hm.nix
Normal file
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue