Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package waybar for openSUSE:Factory checked 
in at 2022-03-10 22:45:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/waybar (Old)
 and      /work/SRC/openSUSE:Factory/.waybar.new.2349 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "waybar"

Thu Mar 10 22:45:19 2022 rev:33 rq:960704 version:0.9.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/waybar/waybar.changes    2022-03-07 
17:47:10.407115817 +0100
+++ /work/SRC/openSUSE:Factory/.waybar.new.2349/waybar.changes  2022-03-11 
11:37:39.282364608 +0100
@@ -1,0 +2,16 @@
+Thu Mar 10 09:58:22 UTC 2022 - Michael Vetter <mvet...@suse.com>
+
+- Update to 0.9.12:
+  * Update network.cpp
+  * Fixed English mechanics: grammar, punctuation, and styling.
+
+-------------------------------------------------------------------
+Thu Mar 10 09:57:45 UTC 2022 - Michael Vetter <mvet...@suse.com>
+
+- Update to 0.9.11:
+  * Update waybar-sway-window.5.scd
+  * refactor: disable icon by default
+  * man: document icon in sway/window module
+  * Feature Clock: show list of time in other timezones in a tooltip
+
+-------------------------------------------------------------------

Old:
----
  0.9.10.tar.xz

New:
----
  0.9.12.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ waybar.spec ++++++
--- /var/tmp/diff_new_pack.QASglj/_old  2022-03-11 11:37:39.786365173 +0100
+++ /var/tmp/diff_new_pack.QASglj/_new  2022-03-11 11:37:39.794365182 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           waybar
-Version:        0.9.10
+Version:        0.9.12
 Release:        0
 Summary:        Customizable Wayland bar for Sway and Wlroots based compositors
 License:        MIT

++++++ 0.9.10.tar.xz -> 0.9.12.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.9.10/README.md new/Waybar-0.9.12/README.md
--- old/Waybar-0.9.10/README.md 2022-03-06 14:54:48.000000000 +0100
+++ new/Waybar-0.9.12/README.md 2022-03-10 09:53:25.000000000 +0100
@@ -2,7 +2,7 @@
 
 > Highly customizable Wayland bar for Sway and Wlroots based compositors.<br>
 > Available in Arch 
 > [community](https://www.archlinux.org/packages/community/x86_64/waybar/) or
-[AUR](https://aur.archlinux.org/packages/waybar-git/), 
[Gentoo](https://packages.gentoo.org/packages/gui-apps/waybar), 
[openSUSE](https://build.opensuse.org/package/show/X11:Wayland/waybar), and 
[Alpine Linux](https://pkgs.alpinelinux.org/packages?name=waybar)<br>
+[AUR](https://aur.archlinux.org/packages/waybar-git/), 
[Gentoo](https://packages.gentoo.org/packages/gui-apps/waybar), 
[openSUSE](https://build.opensuse.org/package/show/X11:Wayland/waybar), and 
[Alpine Linux](https://pkgs.alpinelinux.org/packages?name=waybar).<br>
 > *Waybar [examples](https://github.com/Alexays/Waybar/wiki/Examples)*
 
 #### Current features
@@ -20,7 +20,7 @@
 - MPD
 - Custom scripts
 - Multiple output configuration
-- And much more customizations
+- And many more customizations
 
 #### Configuration and Styling
 
@@ -81,7 +81,7 @@
 wayland-protocols
 ```
 
-On Ubuntu you can install all the relevant dependencies using this command 
(tested with 19.10 and 20.04):
+On Ubuntu, you can install all the relevant dependencies using this command 
(tested with 19.10 and 20.04):
 
 ```
 sudo apt install \
@@ -107,8 +107,9 @@
 ```
 
 
-Contributions welcome! - have fun :)<br>
-The style guidelines is 
[Google's](https://google.github.io/styleguide/cppguide.html)
+Contributions welcome!<br>
+Have fun :)<br>
+The style guidelines are 
[Google's](https://google.github.io/styleguide/cppguide.html)
 
 ## License
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.9.10/include/modules/clock.hpp 
new/Waybar-0.9.12/include/modules/clock.hpp
--- old/Waybar-0.9.10/include/modules/clock.hpp 2022-03-06 14:54:48.000000000 
+0100
+++ new/Waybar-0.9.12/include/modules/clock.hpp 2022-03-10 09:53:25.000000000 
+0100
@@ -11,6 +11,7 @@
 namespace modules {
 
 const std::string kCalendarPlaceholder = "calendar";
+const std::string KTimezonedTimeListPlaceholder = "timezoned_time_list";
 
 class Clock : public ALabel {
  public:
@@ -26,6 +27,7 @@
   date::year_month_day cached_calendar_ymd_ = date::January/1/0;
   std::string cached_calendar_text_;
   bool is_calendar_in_tooltip_;
+  bool is_timezoned_list_in_tooltip_;
 
   bool handleScroll(GdkEventScroll* e);
 
@@ -34,6 +36,7 @@
   auto first_day_of_week() -> date::weekday;
   const date::time_zone* current_timezone();
   bool is_timezone_fixed();
+  auto timezones_text(std::chrono::_V2::system_clock::time_point *now) -> 
std::string;
 };
 
 }  // namespace modules
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.9.10/man/waybar-clock.5.scd 
new/Waybar-0.9.12/man/waybar-clock.5.scd
--- old/Waybar-0.9.10/man/waybar-clock.5.scd    2022-03-06 14:54:48.000000000 
+0100
+++ new/Waybar-0.9.12/man/waybar-clock.5.scd    2022-03-10 09:53:25.000000000 
+0100
@@ -96,6 +96,7 @@
 # FORMAT REPLACEMENTS
 
 *{calendar}*: Current month calendar
+*{timezoned_time_list}*: List of time in the rest timezones, if more than one 
timezone is set in the config
 
 # EXAMPLES
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.9.10/man/waybar-sway-window.5.scd 
new/Waybar-0.9.12/man/waybar-sway-window.5.scd
--- old/Waybar-0.9.10/man/waybar-sway-window.5.scd      2022-03-06 
14:54:48.000000000 +0100
+++ new/Waybar-0.9.12/man/waybar-sway-window.5.scd      2022-03-10 
09:53:25.000000000 +0100
@@ -70,6 +70,11 @@
        typeof: object ++
        Rules to rewrite window title. See *rewrite rules*.
 
+*icon*: ++
+       typeof: bool ++
+       default: false ++
+       Option to hide the application icon.
+
 # REWRITE RULES
 
 *rewrite* is an object where keys are regular expressions and values are
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.9.10/meson.build 
new/Waybar-0.9.12/meson.build
--- old/Waybar-0.9.10/meson.build       2022-03-06 14:54:48.000000000 +0100
+++ new/Waybar-0.9.12/meson.build       2022-03-10 09:53:25.000000000 +0100
@@ -1,6 +1,6 @@
 project(
     'waybar', 'cpp', 'c',
-    version: '0.9.10',
+    version: '0.9.12',
     license: 'MIT',
     meson_version: '>= 0.49.0',
     default_options : [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.9.10/src/AIconLabel.cpp 
new/Waybar-0.9.12/src/AIconLabel.cpp
--- old/Waybar-0.9.10/src/AIconLabel.cpp        2022-03-06 14:54:48.000000000 
+0100
+++ new/Waybar-0.9.12/src/AIconLabel.cpp        2022-03-10 09:53:25.000000000 
+0100
@@ -22,7 +22,7 @@
 }
 
 bool AIconLabel::iconEnabled() const {
-  return config_["icon"].isBool() ? config_["icon"].asBool() : true;
+  return config_["icon"].isBool() ? config_["icon"].asBool() : false;
 }
 
 }  // namespace waybar
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.9.10/src/modules/clock.cpp 
new/Waybar-0.9.12/src/modules/clock.cpp
--- old/Waybar-0.9.10/src/modules/clock.cpp     2022-03-06 14:54:48.000000000 
+0100
+++ new/Waybar-0.9.12/src/modules/clock.cpp     2022-03-10 09:53:25.000000000 
+0100
@@ -23,7 +23,8 @@
 waybar::modules::Clock::Clock(const std::string& id, const Json::Value& config)
     : ALabel(config, "clock", id, "{:%H:%M}", 60, false, false, true),
       current_time_zone_idx_(0),
-      is_calendar_in_tooltip_(false)
+      is_calendar_in_tooltip_(false),
+      is_timezoned_list_in_tooltip_(false)
 {
   if (config_["timezones"].isArray() && !config_["timezones"].empty()) {
     for (const auto& zone_name: config_["timezones"]) {
@@ -64,6 +65,9 @@
     if (trimmed_format.find("{" + kCalendarPlaceholder + "}") != 
std::string::npos) {
       is_calendar_in_tooltip_ = true;
     }
+    if (trimmed_format.find("{" + KTimezonedTimeListPlaceholder + "}") != 
std::string::npos) {
+      is_timezoned_list_in_tooltip_ = true;
+    }
   }
 
   if (config_["locale"].isString()) {
@@ -108,11 +112,15 @@
   if (tooltipEnabled()) {
     if (config_["tooltip-format"].isString()) {
       std::string calendar_lines = "";
+      std::string timezoned_time_lines = "";
       if (is_calendar_in_tooltip_) {
         calendar_lines = calendar_text(wtime);
       }
+      if (is_timezoned_list_in_tooltip_) {
+        timezoned_time_lines = timezones_text(&now);
+      }
       auto tooltip_format = config_["tooltip-format"].asString();
-      text = fmt::format(tooltip_format, wtime, 
fmt::arg(kCalendarPlaceholder.c_str(), calendar_lines));
+      text = fmt::format(tooltip_format, wtime, 
fmt::arg(kCalendarPlaceholder.c_str(), calendar_lines), 
fmt::arg(KTimezonedTimeListPlaceholder.c_str(), timezoned_time_lines));
       label_.set_tooltip_markup(text);
     }
   }
@@ -211,6 +219,26 @@
   os << "\n";
 }
 
+auto 
waybar::modules::Clock::timezones_text(std::chrono::_V2::system_clock::time_point
 *now) -> std::string {
+  if (time_zones_.size() == 1) {
+    return "";
+  }
+  std::stringstream os;
+  waybar_time wtime;
+  for (size_t time_zone_idx = 0; time_zone_idx < time_zones_.size(); 
++time_zone_idx) {
+    if (static_cast<int>(time_zone_idx) == current_time_zone_idx_) {
+      continue;
+    }
+    const date::time_zone* timezone = time_zones_[time_zone_idx];
+    if (!timezone) {
+      timezone = date::current_zone();
+    }
+    wtime = {locale_, date::make_zoned(timezone, 
date::floor<std::chrono::seconds>(*now))};
+    os << fmt::format(format_, wtime) << "\n";
+  }
+  return os.str();
+}
+
 #ifdef HAVE_LANGINFO_1STDAY
 template <auto fn>
 using deleter_from_fn = std::integral_constant<decltype(fn), fn>;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Waybar-0.9.10/src/modules/network.cpp 
new/Waybar-0.9.12/src/modules/network.cpp
--- old/Waybar-0.9.10/src/modules/network.cpp   2022-03-06 14:54:48.000000000 
+0100
+++ new/Waybar-0.9.12/src/modules/network.cpp   2022-03-10 09:53:25.000000000 
+0100
@@ -78,7 +78,7 @@
       family_(config["family"] == "ipv6" ? AF_INET6 : AF_INET),
       efd_(-1),
       ev_fd_(-1),
-      want_route_dump_(true),
+      want_route_dump_(false),
       want_link_dump_(false),
       want_addr_dump_(false),
       dump_in_progress_(false),

Reply via email to