test
This commit is contained in:
parent
f45e26b839
commit
9ecd4a4467
1 changed files with 5 additions and 7 deletions
|
@ -41,7 +41,7 @@
|
|||
path = [ pkgs.curl ];
|
||||
script = "curl wttr.in?format=j1 > /tmp/wttr.in";
|
||||
after = [ "networking-online.target" ];
|
||||
serviceConfig.Type = "simple";
|
||||
serviceConfig.Type = "oneshot";
|
||||
onSuccess = [
|
||||
"light-theme.service"
|
||||
"dark-theme.service"
|
||||
|
@ -51,19 +51,17 @@
|
|||
enable = true;
|
||||
path = [ pkgs.at pkgs.fx pkgs.nodejs ];
|
||||
script = ''
|
||||
source ~/.bashrc
|
||||
echo "/run/current-system/sw/bin/plasma-apply-colorscheme -platform offscreen Arc" | at `${pkgs.fx}/bin/fx /tmp/wttr.in .weather[0].astronomy[0].sunrise`
|
||||
echo "/run/current-system/sw/bin/plasma-apply-colorscheme -platform offscreen Arc" | ${pkgs.at}/bin/at `${pkgs.fx}/bin/fx /tmp/wttr.in .weather[0].astronomy[0].sunrise`
|
||||
'';
|
||||
serviceConfig.Type = "simple";
|
||||
serviceConfig.Type = "oneshot";
|
||||
};
|
||||
dark-theme = {
|
||||
enable = true;
|
||||
path = [ pkgs.at pkgs.fx pkgs.nodejs ];
|
||||
script = ''
|
||||
source ~/.bashrc
|
||||
echo "/run/current-system/sw/bin/plasma-apply-colorscheme -platform offscreen ArcDark" | at `${pkgs.fx}/bin/fx /tmp/wttr.in .weather[0].astronomy[0].sunset`
|
||||
echo "/run/current-system/sw/bin/plasma-apply-colorscheme -platform offscreen ArcDark" | ${pkgs.at}/bin/at `${pkgs.fx}/bin/fx /tmp/wttr.in .weather[0].astronomy[0].sunset`
|
||||
'';
|
||||
serviceConfig.Type = "simple";
|
||||
serviceConfig.Type = "oneshot";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue