From 453383440d794a294242137ec6dc24bc72b6781a Mon Sep 17 00:00:00 2001 From: iFargle Date: Tue, 2 Jan 2024 21:33:57 +0900 Subject: [PATCH] Test --- nixos/common/desktops/plasma6/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/common/desktops/plasma6/default.nix b/nixos/common/desktops/plasma6/default.nix index ae447927..70ae719c 100644 --- a/nixos/common/desktops/plasma6/default.nix +++ b/nixos/common/desktops/plasma6/default.nix @@ -34,12 +34,16 @@ plasma-theme-switcher tailscale-systray ]; - + + # Schedule cronjobs for changing the theme services.cron = { enable = true; systemCronJobs = [ # Set the 'at' jobs for changing the theme ''0 12 * * * albert curl -s wttr.in?format=j1 > /tmp/wttr.in'' + ''0 * * * * albert sleep 10; echo "plasma-apply-colorscheme -platform offscreen Arc" | at `fx /tmp/wttr.in .weather[0].astronomy[0].sunrise`'' + ''0 * * * * albert sleep 10; echo "plasma-apply-colorscheme -platform offscreen ArcDark" | at `fx /tmp/wttr.in .weather[0].astronomy[0].sunset` '' + # At reboot as well ''@reboot albert curl -s wttr.in?format=j1 > /tmp/wttr.in'' ''@reboot albert sleep 10; echo "plasma-apply-colorscheme -platform offscreen Arc" | at `fx /tmp/wttr.in .weather[0].astronomy[0].sunrise`'' ''@reboot albert sleep 10; echo "plasma-apply-colorscheme -platform offscreen ArcDark" | at `fx /tmp/wttr.in .weather[0].astronomy[0].sunset` ''