diff --git a/nixos/common/desktops/plasma6/default.nix b/nixos/common/desktops/plasma6/default.nix index b0bf34a5..62ba2fe8 100644 --- a/nixos/common/desktops/plasma6/default.nix +++ b/nixos/common/desktops/plasma6/default.nix @@ -50,13 +50,21 @@ light-theme = { enable = true; path = [ pkgs.at pkgs.fx pkgs.nodejs ]; - script = ''echo "plasma-apply-colorscheme -platform offscreen Arc" | at `${pkgs.fx}/bin/fx /tmp/wttr.in .weather[0].astronomy[0].sunrise`''; + script = '' + uid + whoami + echo "plasma-apply-colorscheme -platform offscreen Arc" | at `${pkgs.fx}/bin/fx /tmp/wttr.in .weather[0].astronomy[0].sunrise` + ''; serviceConfig.Type = "oneshot"; }; dark-theme = { enable = true; path = [ pkgs.at pkgs.fx pkgs.nodejs ]; - script = ''echo "plasma-apply-colorscheme -platform offscreen ArcDark" | at `${pkgs.fx}/bin/fx /tmp/wttr.in .weather[0].astronomy[0].sunset`''; + script = '' + uid + whoami + echo "plasma-apply-colorscheme -platform offscreen ArcDark" | at `${pkgs.fx}/bin/fx /tmp/wttr.in .weather[0].astronomy[0].sunset` + ''; serviceConfig.Type = "oneshot"; }; }; @@ -73,4 +81,4 @@ timerConfig.OnCalendar = [ "*-*-* *:*:00" ]; }; }; -} +} \ No newline at end of file