Add basic ags theming

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-06-30 13:41:54 +03:00
parent 96c88b1b85
commit e5bac20f7d
10 changed files with 231 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
{ user ? throw "user argument is required" }: { config, lib, pkgs, ... }:
let
hmConfig = config.home-manager.users."${user.name}";
agsConfig = (import ./src { inherit pkgs; });
in
{
@@ -11,5 +12,21 @@ in
source = "${agsConfig}/share/config.js";
target = "ags/config.js";
};
programs.matugen.settings.templates.ags = {
input_path = ./theme.sass;
output_path = "${hmConfig.xdg.configHome}/ags/theme.sass";
};
wayland.windowManager.hyprland.initExtraConfig = "${lib.meta.getExe (pkgs.writeShellApplication {
name = "init-ags";
runtimeInputs = with pkgs; [
ags
sassc
];
text = ''
ags &> /tmp/ags.log
'';
})} &";
};
}