From b839dbb22a4a13857ce9f96cddeb13d78505f0d7 Mon Sep 17 00:00:00 2001 From: ferrreo Date: Fri, 1 Sep 2023 21:57:30 +0100 Subject: [PATCH] Update lib.js --- pika-hyprland-settings/etc/skel/.config/ags/lib.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pika-hyprland-settings/etc/skel/.config/ags/lib.js b/pika-hyprland-settings/etc/skel/.config/ags/lib.js index 89824ee..6ec3810 100644 --- a/pika-hyprland-settings/etc/skel/.config/ags/lib.js +++ b/pika-hyprland-settings/etc/skel/.config/ags/lib.js @@ -10,7 +10,7 @@ export const getTemp = (temp) => { export const getWeatherSymbol = (weatherCode) => { const dt = new Date(); const hour = dt.getHours(); - if (hour < 7 || hour > 21) { + if (hour <= 7 || hour >= 20) { return NIGHT_WEATHER_SYMBOL[WWO_CODE[weatherCode]]; } return WEATHER_SYMBOL[WWO_CODE[weatherCode]]; @@ -160,4 +160,4 @@ const NIGHT_WEATHER_SYMBOL = { "ThunderyShowers": "thunderstorm", "ThunderySnowShowers": "thunderstorm", "VeryCloudy": "cloud", -} \ No newline at end of file +}