diff --git a/nixos/common/desktops/plasma6/default.nix b/nixos/common/desktops/plasma6/default.nix index 84b685dd..b68ee960 100644 --- a/nixos/common/desktops/plasma6/default.nix +++ b/nixos/common/desktops/plasma6/default.nix @@ -50,10 +50,14 @@ echo "set-theme.service - Checking for theme settings" if [ ! -f /tmp/wttr.sunrise ] ; then systemctl --user start get-theme-times.service - fi + fi + echo "Getting dates:" SUNRISE=`date -d \`cat /tmp/wttr.sunrise\` +%s` + echo "Sunrise: $SUNRISE" SUNSET=`date -d \`cat /tmp/wttr.sunset\` +%s` + echo "Sunset: $SUNSET" CURRENT=`date +%s` + echo "Current: $CURRENT" if [ $CURRENT -gt $SUNRISE -a $CURRENT -lt $SUNSET ] ; then # /run/current-system/sw/bin/plasma-apply-colorscheme -system offscreen Arc /run/current-system/sw/bin/plasma-apply-colorscheme Arc