test
This commit is contained in:
parent
a33367727d
commit
acb771edb9
1 changed files with 5 additions and 1 deletions
|
@ -35,8 +35,10 @@
|
|||
enable = true;
|
||||
path = [ pkgs.curl ];
|
||||
script = ''
|
||||
echo "Activating get-theme-times systemd service"
|
||||
curl -s wttr.in/?format=%S > /tmp/wttr.sunrise
|
||||
curl -s wttr.in/?format=%s > /tmp/wttr.sunset
|
||||
echo "get-theme-times - complete"
|
||||
'';
|
||||
after = [ "networking-online.target" ];
|
||||
serviceConfig.Type = "oneshot";
|
||||
|
@ -45,6 +47,7 @@
|
|||
set-theme = {
|
||||
enable = true;
|
||||
script = ''
|
||||
echo "set-theme.service - Checking for theme settings"
|
||||
if [ ! -f /tmp/wttr.sunrise ] ; then
|
||||
systemctl --user start get-theme-times.service
|
||||
fi
|
||||
|
@ -56,6 +59,7 @@
|
|||
else
|
||||
/run/current-system/sw/bin/plasma-apply-colorscheme -platform offscreen ArcDark
|
||||
fi
|
||||
echo "set-theme.service - Complete"
|
||||
'';
|
||||
serviceConfig.Type = "oneshot";
|
||||
};
|
||||
|
@ -65,7 +69,7 @@
|
|||
"get-theme-times" = {
|
||||
enable = true;
|
||||
partOf = [ "get-theme-times.service" ];
|
||||
timerConfig.OnCalendar = ["*:37"];
|
||||
timerConfig.OnCalendar = ["*:40"];
|
||||
timerConfig.OnBootSec= [ "2 min" ];
|
||||
};
|
||||
"set-theme" = {
|
||||
|
|
Loading…
Add table
Reference in a new issue