Testing at jobs for setting themes

This commit is contained in:
iFargle 2024-01-02 21:26:44 +09:00
parent 010d4876cc
commit a4d10d8ce3
2 changed files with 13 additions and 4 deletions

View file

@ -34,4 +34,15 @@
plasma-theme-switcher
tailscale-systray
];
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''
''@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` ''
];
};
}

View file

@ -33,7 +33,7 @@
''@daily root docker exec mastodon-web tootctl media remove-orphans''
];
};
}
# Old crontab:
# # At reboot, apply the ip_tables modprobe so Wireguard works
# @reboot /usr/sbin/modprobe ip_tables
@ -80,5 +80,3 @@
# # Set up DERP relay certs for headscale-derp:
# DONE @hourly cp /Storage/Data/Docker/letsencrypt/certs/certs/\*.sysctl.io.crt /Storage/Data/Docker/letsencrypt/certs/certs/derp.sysctl.io.crt
# DONE @hourly cp /Storage/Data/Docker/letsencrypt/certs/private/\*.sysctl.io.key /Storage/Data/Docker/letsencrypt/certs/private/derp.sysctl.io.key
}