Здравствуйте, уважаемые нокталийцы и нирийцы! Сейчас мы будем патчить Noctalia Shell 4.7.7. Если у вас другая версия Noctalia Shell, то всё равно можете посмотреть - возможно, патч применим и к ней.
Итак, недавно я заметил, что в Noctalia Shell 4.7.7 у меня заклинило погодный значок: и днём и ночью отображался значок «weather-moon-stars», который выглядит как «полумесяц и звёзды». В итоге я взял и пропатчил Noctalia Shell.
И вот он, этот патч:
--- LocationService.qml 2026-05-19 01:39:27.000000000 +0300
+++ /etc/xdg/quickshell/noctalia-shell/Services/Location/LocationService.qml 2026-09-25 21:58:05.423670345 +0300
@@ -325,8 +325,22 @@
}
// --------------------------------
+
+ function isDaytime() {
+ var w = data.weather;
+ if (!w)
+ return true;
+ if (w.current && w.current.is_day !== undefined)
+ return w.current.is_day === 1;
+ if (w.current_weather && w.current_weather.is_day !== undefined)
+ return w.current_weather.is_day === 1;
+ return true;
+ }
+
+ // --------------------------------
+
function weatherSymbolFromCode(code) {
- var isDay = data.weather ? data.weather.current_weather.is_day : true;
+ var isDay = isDaytime();
if (code === 0)
return isDay ? "weather-sun" : "weather-moon";
if (code === 1 || code === 2)
@@ -352,7 +366,7 @@
// --------------------------------
function taliaWeatherImageFromCode(code) {
- var isDay = data.weather ? data.weather.current_weather.is_day : true;
+ var isDay = isDaytime();
if (code >= 40 && code <= 49)
return Quickshell.shellDir + "/Assets/Talia/TaliaDazed.png";
if (code >= 95 && code <= 99)

