fix xmonad projects syntax

This commit is contained in:
Dmitriy Pleshevskiy 2024-02-19 00:19:37 +03:00
parent f0f9961626
commit d497ae2932
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985

View file

@ -20,11 +20,11 @@ let
'' ''
Project { Project {
projectName = "${name}", projectName = "${name}",
projectStartHook = ${lib.removeSuffix startHook} projectStartHook = ${startHook}
} }
''; '';
xmonadProjects = lib.concatStringsSep ",\n" (map mkXmonadProject cfg.projects); xmonadProjects = lib.concatStringsSep " , " (map mkXmonadProject cfg.projects);
in in
{ {
options.local.xmonad = with lib; options.local.xmonad = with lib;
@ -57,7 +57,7 @@ in
config = pkgs.substituteAll { config = pkgs.substituteAll {
src = ./xmonad_config.hs; src = ./xmonad_config.hs;
projects = "\n" + xmonadProjects; projects = "\n " + xmonadProjects;
inherit (themeCfg.bar) background mainText inactiveText; inherit (themeCfg.bar) background mainText inactiveText;
inherit (themeCfg.window) activeBorder inactiveBorder; inherit (themeCfg.window) activeBorder inactiveBorder;
inherit (themeCfg.highlights) critical warning success; inherit (themeCfg.highlights) critical warning success;