Skip to content

Commit

Permalink
finally a fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN committed Dec 5, 2024
1 parent a07762d commit 7521d04
Showing 1 changed file with 12 additions and 24 deletions.
36 changes: 12 additions & 24 deletions modules/workspace.nix
Original file line number Diff line number Diff line change
Expand Up @@ -463,20 +463,16 @@ in
${
lib.optionalString (cfg.workspace.wallpaperBackground != null)
''desktop.writeConfig("${
if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then
if cfg.workspace.wallpaperBackground.blur != null then
"Blur"
else if
cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.blur != null
then
else if 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
if cfg.workspace.wallpaperBackground.blur != null then
lib.boolToString cfg.workspace.wallpaperBackground.blur
else if
cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.color != null
then
else if 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 @@ -509,20 +505,16 @@ in
${
lib.optionalString (cfg.workspace.wallpaperBackground != null)
''desktop.writeConfig("${
if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then
if cfg.workspace.wallpaperBackground.blur != null then
"Blur"
else if
cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.blur != null
then
else if 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
if cfg.workspace.wallpaperBackground.blur != null then
lib.boolToString cfg.workspace.wallpaperBackground.blur
else if
cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.color != null
then
else if 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 @@ -576,20 +568,16 @@ in
${
lib.optionalString (cfg.workspace.wallpaperBackground != null)
''desktop.writeConfig("${
if cfg.workspace.wallpaperBackground ? blur && cfg.workspace.wallpaperBackground.blur != null then
if cfg.workspace.wallpaperBackground.blur != null then
"Blur"
else if
cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.blur != null
then
else if 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
if cfg.workspace.wallpaperBackground.blur != null then
lib.boolToString cfg.workspace.wallpaperBackground.blur
else if
cfg.workspace.wallpaperBackground ? color && cfg.workspace.wallpaperBackground.color != null
then
else if 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 7521d04

Please sign in to comment.