diff --git a/nixos/common/desktops/plasma6/default.nix b/nixos/common/desktops/plasma6/default.nix index eb3ed6e9..1b3a9d5d 100644 --- a/nixos/common/desktops/plasma6/default.nix +++ b/nixos/common/desktops/plasma6/default.nix @@ -56,7 +56,7 @@ whoami id source ~/.bashrc - TIME=`x /tmp/wttr.in .weather[0].astronomy[0].sunrise` + TIME=`cat /tmp/wttr.in | grep sunrise | head -n 1 | awk {'print $2" "$3'} | sed -e 's/"//g' | sed -e 's/,//'` echo "Time to run at: $TIME" echo "plasma-apply-colorscheme -platform offscreen Arc" | at $TIME ''; @@ -71,7 +71,7 @@ whoami id source ~/.bashrc - TIME=`fx /tmp/wttr.in .weather[0].astronomy[0].sunset` + TIME=`cat /tmp/wttr.in | grep sunset | head -n 1 | awk {'print $2" "$3'} | sed -e 's/"//g' | sed -e 's/,//'` echo "Time to run at: $TIME" echo "plasma-apply-colorscheme -platform offscreen ArcDark" | at $TIME '';