This commit is contained in:
iFargle 2024-01-02 23:31:44 +09:00
parent c9a4e6e010
commit 901e67adbd

View file

@ -54,9 +54,9 @@
whoami
id
source ~/.bashrc
TIME=`${pkgs.fx}/bin/fx /tmp/wttr.in .weather[0].astronomy[0].sunrise`
${pkgs.bash}/bin/echo "Time to run at: $TIME"
${pkgs.bash}/bin/echo "plasma-apply-colorscheme -platform offscreen Arc" | ${pkgs.at}/bin/at $TIME
TIME=`x /tmp/wttr.in .weather[0].astronomy[0].sunrise`
echo "Time to run at: $TIME"
echo "plasma-apply-colorscheme -platform offscreen Arc" | at $TIME
'';
serviceConfig.Type = "oneshot";
};
@ -67,9 +67,9 @@
whoami
id
source ~/.bashrc
TIME=`${pkgs.fx}/bin/fx /tmp/wttr.in .weather[0].astronomy[0].sunset`
${pkgs.bash}/bin/echo "Time to run at: $TIME"
${pkgs.bash}/bin/echo "plasma-apply-colorscheme -platform offscreen ArcDark" | ${pkgs.at}/bin/at $TIME
TIME=`fx /tmp/wttr.in .weather[0].astronomy[0].sunset`
echo "Time to run at: $TIME"
echo "plasma-apply-colorscheme -platform offscreen ArcDark" | at $TIME
'';
serviceConfig.Type = "oneshot";
};