Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN committed Dec 5, 2024
1 parent f34b93e commit a07762d
Showing 1 changed file with 33 additions and 12 deletions.
45 changes: 33 additions & 12 deletions modules/workspace.nix
Original file line number Diff line number Diff line change
Expand Up @@ -461,18 +461,25 @@ in
}");''
}
${
lib.optionalString
(cfg.workspace.wallpaperBackground != null || cfg.workspace.wallpaperBackground != { })
lib.optionalString (cfg.workspace.wallpaperBackground != null)
''desktop.writeConfig("${
if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then
"Blur"
else
else if
cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.blur != null
then
"Color"
else
throw "plasma-manager: wallpaperBackground is not null and has no option set"
}", "${
if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then
lib.boolToString cfg.workspace.wallpaperBackground.blur
else
else if
cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.color != null
then
cfg.workspace.wallpaperBackground.color
else
throw "plasma-manager: wallpaperBackground is not null and has no option set"
}");''
}
}
Expand Down Expand Up @@ -500,18 +507,25 @@ in
}");''
}
${
lib.optionalString
(cfg.workspace.wallpaperBackground != null || cfg.workspace.wallpaperBackground != { })
lib.optionalString (cfg.workspace.wallpaperBackground != null)
''desktop.writeConfig("${
if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then
"Blur"
else
else if
cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.blur != null
then
"Color"
else
throw "plasma-manager: wallpaperBackground is not null and has no option set"
}", "${
if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then
lib.boolToString cfg.workspace.wallpaperBackground.blur
else
else if
cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.color != null
then
cfg.workspace.wallpaperBackground.color
else
throw "plasma-manager: wallpaperBackground is not null and has no option set"
}");''
}
}
Expand Down Expand Up @@ -560,18 +574,25 @@ in
}");''
}
${
lib.optionalString
(cfg.workspace.wallpaperBackground != null || cfg.workspace.wallpaperBackground != { })
lib.optionalString (cfg.workspace.wallpaperBackground != null)
''desktop.writeConfig("${
if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then
"Blur"
else
else if
cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.blur != null
then
"Color"
else
throw "plasma-manager: wallpaperBackground is not null and has no option set"
}", "${
if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then
lib.boolToString cfg.workspace.wallpaperBackground.blur
else
else if
cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.color != null
then
cfg.workspace.wallpaperBackground.color
else
throw "plasma-manager: wallpaperBackground is not null and has no option set"
}");''
}
}
Expand Down

0 comments on commit a07762d

Please sign in to comment.