public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/waybar] rawhide: Update to 0.16.0 (#2387223)
@ 2026-11-07  7:17 Aleksei Bavshin
  0 siblings, 0 replies; only message in thread
From: Aleksei Bavshin @ 2026-11-07  7:17 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/waybar
Branch : rawhide
Commit : 96442b81b4a6eab4fbe7ce05d06ebbf3ea584801
Author : Aleksei Bavshin <alebastr@fedoraproject.org>
Date   : 2026-11-06T20:18:01-08:00
Stats  : +35/-166 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/waybar/c/96442b81b4a6eab4fbe7ce05d06ebbf3ea584801?branch=rawhide

Log:
Update to 0.16.0 (#2387223)

---
diff --git a/fix-treat-missing-interval-as-once.patch b/fix-treat-missing-interval-as-once.patch
deleted file mode 100644
index b0fd018..0000000
--- a/fix-treat-missing-interval-as-once.patch
+++ /dev/null
@@ -1,142 +0,0 @@
-From c9a7cbbdb385521f992d60539daa6a94d403d253 Mon Sep 17 00:00:00 2001
-From: Austin Horstman <khaneliman12@gmail.com>
-Date: Mon, 9 Feb 2026 15:26:23 -0600
-Subject: [PATCH 1/2] fix(image): treat missing interval as once
-
-PR #4390 enabled millisecond intervals but changed image interval parsing so a missing interval could resolve to 1ms. That creates a hot update loop and can spike CPU and destabilize rendering in drawer/group setups (issue #4835).
-
-Use explicit semantics: missing, null, non-numeric, or <=0 interval is treated as "once" (max sleep), while positive numeric values still support ms precision with a 1ms floor. This keeps the intended feature (sub-second polling when requested) without defaulting to busy looping.
-
-Also align waybar-image(5) docs with runtime behavior.
-
-Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
----
- man/waybar-image.5.scd |  3 ++-
- src/modules/image.cpp  | 27 ++++++++++++++++-----------
- 2 files changed, 18 insertions(+), 12 deletions(-)
-
-diff --git a/man/waybar-image.5.scd b/man/waybar-image.5.scd
-index 8c991265e..8be182a6f 100644
---- a/man/waybar-image.5.scd
-+++ b/man/waybar-image.5.scd
-@@ -26,7 +26,8 @@ The *image* module displays an image from a path.
- *interval*: ++
- 	typeof: integer or float ++
- 	The interval (in seconds) to re-render the image. ++
--	Minimum value is 0.001 (1ms). Values smaller than 1ms will be set to 1ms. ++
-+	If set to a positive value, the minimum is 0.001 (1ms). Values smaller than 1ms will be set to 1ms. ++
-+	Zero or negative values are treated as "once". ++
- 	This is useful if the contents of *path* changes. ++
- 	If no *interval* is defined, the image will only be rendered once.
- 
-diff --git a/src/modules/image.cpp b/src/modules/image.cpp
-index 189deee6a..98bf3c46f 100644
---- a/src/modules/image.cpp
-+++ b/src/modules/image.cpp
-@@ -14,22 +14,27 @@ waybar::modules::Image::Image(const std::string& id, const Json::Value& config)
- 
-   size_ = config["size"].asInt();
- 
--  interval_ = config_["interval"] == "once"
--                  ? std::chrono::milliseconds::max()
--                  : std::chrono::milliseconds(std::max(
--                        1L,  // Minimum 1ms due to millisecond precision
--                        static_cast<long>(
--                            (config_["interval"].isNumeric() ? config_["interval"].asDouble() : 0) *
--                            1000)));
-+  const auto once = std::chrono::milliseconds::max();
-+  if (!config_.isMember("interval") || config_["interval"].isNull() ||
-+      config_["interval"] == "once") {
-+    interval_ = once;
-+  } else if (config_["interval"].isNumeric()) {
-+    const auto interval_seconds = config_["interval"].asDouble();
-+    if (interval_seconds <= 0) {
-+      interval_ = once;
-+    } else {
-+      interval_ =
-+          std::chrono::milliseconds(std::max(1L,  // Minimum 1ms due to millisecond precision
-+                                             static_cast<long>(interval_seconds * 1000)));
-+    }
-+  } else {
-+    interval_ = once;
-+  }
- 
-   if (size_ == 0) {
-     size_ = 16;
-   }
- 
--  if (interval_.count() == 0) {
--    interval_ = std::chrono::milliseconds::max();
--  }
--
-   delayWorker();
- }
- 
-
-From 3b478ee6a53f153f35f35729c26bf11b15f692a2 Mon Sep 17 00:00:00 2001
-From: Austin Horstman <khaneliman12@gmail.com>
-Date: Mon, 9 Feb 2026 15:53:44 -0600
-Subject: [PATCH 2/2] chore: format
-
-Some unrelated files failed formatting.
-
-Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
----
- include/util/command.hpp             | 4 +---
- src/modules/hyprland/window.cpp      | 4 +---
- src/modules/hyprland/windowcount.cpp | 6 ++----
- 3 files changed, 4 insertions(+), 10 deletions(-)
-
-diff --git a/include/util/command.hpp b/include/util/command.hpp
-index 58c59a965..89d4372a1 100644
---- a/include/util/command.hpp
-+++ b/include/util/command.hpp
-@@ -172,8 +172,6 @@ inline int32_t forkExec(const std::string& cmd, const std::string& output_name)
-   return pid;
- }
- 
--inline int32_t forkExec(const std::string& cmd) {
--  return forkExec(cmd, "");
--}
-+inline int32_t forkExec(const std::string& cmd) { return forkExec(cmd, ""); }
- 
- }  // namespace waybar::util::command
-diff --git a/src/modules/hyprland/window.cpp b/src/modules/hyprland/window.cpp
-index e02a76917..197ed0920 100644
---- a/src/modules/hyprland/window.cpp
-+++ b/src/modules/hyprland/window.cpp
-@@ -237,9 +237,7 @@ void Window::queryActiveWorkspace() {
-   }
- }
- 
--void Window::onEvent(const std::string& ev) {
--  dp.emit();
--}
-+void Window::onEvent(const std::string& ev) { dp.emit(); }
- 
- void Window::setClass(const std::string& classname, bool enable) {
-   if (enable) {
-diff --git a/src/modules/hyprland/windowcount.cpp b/src/modules/hyprland/windowcount.cpp
-index 487b00834..d881a3616 100644
---- a/src/modules/hyprland/windowcount.cpp
-+++ b/src/modules/hyprland/windowcount.cpp
-@@ -38,7 +38,7 @@ WindowCount::~WindowCount() {
- 
- auto WindowCount::update() -> void {
-   std::lock_guard<std::mutex> lg(mutex_);
--  
-+
-   queryActiveWorkspace();
- 
-   std::string format = config_["format"].asString();
-@@ -125,9 +125,7 @@ void WindowCount::queryActiveWorkspace() {
-   }
- }
- 
--void WindowCount::onEvent(const std::string& ev) {
--  dp.emit();
--}
-+void WindowCount::onEvent(const std::string& ev) { dp.emit(); }
- 
- void WindowCount::setClass(const std::string& classname, bool enable) {
-   if (enable) {

diff --git a/sources b/sources
index d2ab3a6..c838af2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (waybar-0.15.0.tar.gz) = f267c1ad2af1e4e74c3d8c966009a013c0b5c2849bfaf312b3b91e9d6f6856dc5466118f308208948118ea1de0cf70986cc3b592cc830f84d634b8518c5b8c9e
+SHA512 (waybar-0.16.0.tar.gz) = 24e3cc0c2bc2c3c967b5dd74eb62d34b28af1b9a74d4a3e649253668a722b394e444b9fc2987482e79392b0f2c1ff2bee077ca03025f414376143c8c17c787ee

diff --git a/waybar-fedora-config-changes.patch b/waybar-fedora-config-changes.patch
index 3d93c6c..d02ded9 100644
--- a/waybar-fedora-config-changes.patch
+++ b/waybar-fedora-config-changes.patch
@@ -1,4 +1,4 @@
-From f1f103b0ef6c1567103dc8f8cf0925c8fe3645ad Mon Sep 17 00:00:00 2001
+From c724f49bc2deaf0efdaa8ace8a09296669bef226 Mon Sep 17 00:00:00 2001
 From: Aleksei Bavshin <alebastr89@gmail.com>
 Date: Sat, 24 Feb 2024 18:21:39 -0800
 Subject: [PATCH 1/3] style: update font configuration
@@ -14,7 +14,7 @@ Subject: [PATCH 1/3] style: update font configuration
  1 file changed, 1 insertion(+), 2 deletions(-)
 
 diff --git a/resources/style.css b/resources/style.css
-index 7e830285..e0310372 100644
+index 86396cd2..6624adef 100644
 --- a/resources/style.css
 +++ b/resources/style.css
 @@ -1,6 +1,5 @@
@@ -26,10 +26,10 @@ index 7e830285..e0310372 100644
  }
  
 -- 
-2.45.2
+2.56.0
 
 
-From fdcf3c74ad6167a4addf68388945d0cbf496bda3 Mon Sep 17 00:00:00 2001
+From 396ba87f95f4d242b656dfacf8f94eac769d6b5b Mon Sep 17 00:00:00 2001
 From: Aleksei Bavshin <alebastr@fedoraproject.org>
 Date: Sat, 10 Feb 2024 16:22:19 -0800
 Subject: [PATCH 2/3] config: use moon phase emojis insted of symbols
@@ -41,23 +41,23 @@ installation.
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/resources/config.jsonc b/resources/config.jsonc
-index 7e0771f5..d8c7adfb 100644
+index eb92feb4..aabaea64 100644
 --- a/resources/config.jsonc
 +++ b/resources/config.jsonc
-@@ -129,7 +129,7 @@
+@@ -154,7 +154,7 @@
      "backlight": {
          // "device": "acpi_video1",
          "format": "{percent}% {icon}",
--        "format-icons": ["", "", "", "", "", "", "", "", ""]
-+        "format-icons": ["🌑", "🌘", "🌗", "🌖", "🌕"]
+-        "format-icons": ["", "", "", "", "", "", "", "", ""],
++        "format-icons": ["🌑", "🌘", "🌗", "🌖", "🌕"],
+         "min-brightness": 1
      },
      "battery": {
-         "states": {
 -- 
-2.45.2
+2.56.0
 
 
-From f2a91ea2d7ae00fc1c14eed3702ab37eb0585feb Mon Sep 17 00:00:00 2001
+From c8f9c9653e96d41d76cee9807d0d53df66894b23 Mon Sep 17 00:00:00 2001
 From: Aleksei Bavshin <alebastr89@gmail.com>
 Date: Sat, 24 Feb 2024 18:56:01 -0800
 Subject: [PATCH 3/3] config: remove several modules from the default
@@ -72,7 +72,7 @@ defaults.
  1 file changed, 2 insertions(+), 7 deletions(-)
 
 diff --git a/resources/config.jsonc b/resources/config.jsonc
-index d8c7adfb..e7a89240 100644
+index aabaea64..64ee303b 100644
 --- a/resources/config.jsonc
 +++ b/resources/config.jsonc
 @@ -9,14 +9,12 @@
@@ -107,5 +107,5 @@ index d8c7adfb..e7a89240 100644
      // Modules configuration
      // "sway/workspaces": {
 -- 
-2.45.2
+2.56.0
 

diff --git a/waybar-fedora-systemd-target-conflicts.patch b/waybar-fedora-systemd-target-conflicts.patch
index f277e2e..340fd97 100644
--- a/waybar-fedora-systemd-target-conflicts.patch
+++ b/waybar-fedora-systemd-target-conflicts.patch
@@ -1,4 +1,4 @@
-From f67dcce02d02ef1dc8e78efc565647b6fe8656d4 Mon Sep 17 00:00:00 2001
+From 149cf8fcb4232d7e10b5d82451a598baf8a2f0af Mon Sep 17 00:00:00 2001
 From: Aleksei Bavshin <alebastr89@gmail.com>
 Date: Sat, 4 Jul 2026 22:51:31 -0700
 Subject: [PATCH] systemd: declare known incompatible desktop environments
@@ -35,5 +35,5 @@ index 18bac54c..9a54e5ba 100644
  ExecReload=kill -SIGUSR2 $MAINPID
  Restart=on-failure
 -- 
-2.55.0
+2.56.0
 

diff --git a/waybar.spec b/waybar.spec
index 60ff304..2a0cf88 100644
--- a/waybar.spec
+++ b/waybar.spec
@@ -1,6 +1,6 @@
 Name:           waybar
-Version:        0.15.0
-Release:        6%{?dist}
+Version:        0.16.0
+Release:        1%{?dist}
 Summary:        Highly customizable Wayland bar for Sway and Wlroots based compositors
 # Source files/overall project licensed as MIT, but
 # - BSL-1.0
@@ -25,11 +25,6 @@ Patch:          waybar-fedora-config-changes.patch
 #  - Check that the environment is Wayland and is not listed as unsupported
 Patch:          waybar-fedora-systemd-target-conflicts.patch
 
-# Fix for hot update loop that can spike CPU and
-# destabilize rendering in drawer/group setups
-# https://github.com/Alexays/Waybar/pull/4838
-Patch:          fix-treat-missing-interval-as-once.patch
-
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
 BuildRequires:  meson >= 0.59.0
@@ -54,6 +49,7 @@ BuildRequires:  pkgconfig(libnl-genl-3.0)
 BuildRequires:  pkgconfig(libpipewire-0.3)
 BuildRequires:  pkgconfig(libpulse)
 BuildRequires:  pkgconfig(libudev)
+BuildRequires:  pkgconfig(mm-glib)
 BuildRequires:  pkgconfig(playerctl)
 BuildRequires:  pkgconfig(sigc++-2.0)
 BuildRequires:  pkgconfig(spdlog) >= 1.10.0
@@ -77,6 +73,13 @@ Recommends:     font(fontawesome7brands)
 %description
 %{summary}.
 
+%package        module-gps
+Summary:        GPS module for Waybar
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    module-gps
+%{summary}.
+
 %prep
 %autosetup -p1 -n Waybar-%{version}
 
@@ -106,10 +109,18 @@ Recommends:     font(fontawesome7brands)
 %config(noreplace) %{_sysconfdir}/xdg/%{name}/config.jsonc
 %config(noreplace) %{_sysconfdir}/xdg/%{name}/style.css
 %{_bindir}/%{name}
-%{_mandir}/man5/%{name}*
+%{_mandir}/man5/%{name}*.5*
+%exclude %{_mandir}/man5/%{name}-gps.5*
 %{_userunitdir}/%{name}.service
 
+%files module-gps
+%{_libdir}/%{name}/%{name}-gps.so
+%{_mandir}/man5/%{name}-gps.5*
+
 %changelog
+* Thu Nov 05 2026 Aleksei Bavshin <alebastr@fedoraproject.org> - 0.16.0-1
+- Update to 0.16.0 (#2387223)
+
 * Sun Aug 02 2026 Aleksei Bavshin <alebastr@fedoraproject.org> - 0.15.0-6
 - systemd: declare known incompatible desktop environments
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-07  7:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07  7:17 [rpms/waybar] rawhide: Update to 0.16.0 (#2387223) Aleksei Bavshin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox