Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package azote for openSUSE:Factory checked 
in at 2021-04-01 14:17:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azote (Old)
 and      /work/SRC/openSUSE:Factory/.azote.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "azote"

Thu Apr  1 14:17:02 2021 rev:10 rq:881838 version:1.9.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/azote/azote.changes      2021-03-15 
10:56:35.777373911 +0100
+++ /work/SRC/openSUSE:Factory/.azote.new.2401/azote.changes    2021-04-01 
14:18:18.124072529 +0200
@@ -1,0 +2,7 @@
+Mon Mar 29 11:08:58 UTC 2021 - Michael Vetter <[email protected]>
+
+- Update to 1.9.1:
+  * [sway] Added the "Use generic display names" preferences
+    switch (#143).
+
+-------------------------------------------------------------------

Old:
----
  azote-1.9.0.tar.gz

New:
----
  azote-1.9.1.tar.gz

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

Other differences:
------------------
++++++ azote.spec ++++++
--- /var/tmp/diff_new_pack.fdkBnc/_old  2021-04-01 14:18:18.640073332 +0200
+++ /var/tmp/diff_new_pack.fdkBnc/_new  2021-04-01 14:18:18.640073332 +0200
@@ -18,7 +18,7 @@
 
 %{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
 Name:           azote
-Version:        1.9.0
+Version:        1.9.1
 Release:        0
 Summary:        Wallpaper manager for Sway, i3 and some other WMs
 License:        GPL-3.0-only

++++++ azote-1.9.0.tar.gz -> azote-1.9.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azote-1.9.0/CHANGELOG.md new/azote-1.9.1/CHANGELOG.md
--- old/azote-1.9.0/CHANGELOG.md        2021-03-13 01:46:52.000000000 +0100
+++ new/azote-1.9.1/CHANGELOG.md        2021-03-28 03:08:24.000000000 +0200
@@ -1,5 +1,10 @@
 # CHANGELOG
 
+## v1.9.1 (2021.03.28)
+
+- Added the "Use generic display names" preferences switch.
+See [#143](https://github.com/nwg-piotr/azote/issues/143).
+
 ## v1.9.0 (2021.03.13)
 
 - Restore wallpapers in use on startup;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azote-1.9.0/README.md new/azote-1.9.1/README.md
--- old/azote-1.9.0/README.md   2021-03-13 01:46:52.000000000 +0100
+++ new/azote-1.9.1/README.md   2021-03-28 03:08:24.000000000 +0200
@@ -219,6 +219,11 @@
 
 ## Troubleshooting
 
+### [sway] My outputs use random names, wallpapers get lost after restart
+
+Turn the "Use generic display names" preferences switch on (since v1.9.1).
+See [#143](https://github.com/nwg-piotr/azote/issues/143).
+
 ### No pictures in thumbnails / display preview
 
 As well thumbnails, as displays preview inherit from the Gtk.Button class. In 
case you don't see images inside them,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azote-1.9.0/azote/languages/de_DE 
new/azote-1.9.1/azote/languages/de_DE
--- old/azote-1.9.0/azote/languages/de_DE       2021-03-13 01:46:52.000000000 
+0100
+++ new/azote-1.9.1/azote/languages/de_DE       2021-03-28 03:08:24.000000000 
+0200
@@ -61,4 +61,5 @@
 thumbnail_tooltip = Einfach-Klicken zum Ausw??hlen, Doppel-Klicken zum 
sofortigen Verwenden, Rechts-Klick f??r mehr Optionen
 thumbnails_in_cache = {} Vorschaubilder im Zwischenspeicher ({})
 track_file_changes = Datei??nderungen ??berwachen
+use_display_names = Verwend generische Anzeigenamen
 width = Breite
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azote-1.9.0/azote/languages/en_EN 
new/azote-1.9.1/azote/languages/en_EN
--- old/azote-1.9.0/azote/languages/en_EN       2021-03-13 01:46:52.000000000 
+0100
+++ new/azote-1.9.1/azote/languages/en_EN       2021-03-28 03:08:24.000000000 
+0200
@@ -62,4 +62,5 @@
 thumbnail_tooltip = Click to select, double to set, right for menu
 thumbnails_in_cache = {} thumbnails in cache ({})
 track_file_changes = Track file changes
+use_display_names = Use generic display names
 width = Width
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azote-1.9.0/azote/languages/fr_FR 
new/azote-1.9.1/azote/languages/fr_FR
--- old/azote-1.9.0/azote/languages/fr_FR       2021-03-13 01:46:52.000000000 
+0100
+++ new/azote-1.9.1/azote/languages/fr_FR       2021-03-28 03:08:24.000000000 
+0200
@@ -61,4 +61,5 @@
 thumbnail_tooltip = Click to select, double to set, right for menu
 thumbnails_in_cache = {} miniatures en cache ({})
 track_file_changes = Suivre les modifications du fichier
+use_display_names = Utiliser des noms d'affichage g??n??riques
 width = Largeur
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azote-1.9.0/azote/languages/pl_PL 
new/azote-1.9.1/azote/languages/pl_PL
--- old/azote-1.9.0/azote/languages/pl_PL       2021-03-13 01:46:52.000000000 
+0100
+++ new/azote-1.9.1/azote/languages/pl_PL       2021-03-28 03:08:24.000000000 
+0200
@@ -61,4 +61,5 @@
 thumbnail_tooltip = Kliknij by wybra??, podw??jnie by ustawi??, prawym dla menu
 thumbnails_in_cache = {} miniatur w cache ({})
 track_file_changes = ??led?? zmiany w plikach
+use_display_names = U??ywaj og??lnych nazw wy??wietlaczy
 width = Szeroko????
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azote-1.9.0/azote/main.py 
new/azote-1.9.1/azote/main.py
--- old/azote-1.9.0/azote/main.py       2021-03-13 01:46:52.000000000 +0100
+++ new/azote-1.9.1/azote/main.py       2021-03-28 03:08:24.000000000 +0200
@@ -453,8 +453,17 @@
                 # if a color chosen, the wallpaper won't appear
                 batch_content.append("swaybg -o {} -c{} 
&".format(box.display_name, box.color))
             elif box.wallpaper_path:
+                # see: https://github.com/nwg-piotr/azote/issues/143
+                if common.settings.generic_display_names:
+                    display_name = ""
+                    for item in common.displays:
+                        if item["name"] == box.display_name:
+                            display_name = item["generic-name"]
+                else:
+                    display_name = box.display_name
+
                 batch_content.append(
-                    "swaybg -o {} -i '{}' -m {} &".format(box.display_name, 
box.wallpaper_path, box.mode))
+                    "swaybg -o '{}' -i '{}' -m {} &".format(display_name, 
box.wallpaper_path, box.mode))
 
                 # build the json file content
                 if 
box.wallpaper_path.startswith("{}/backgrounds-sway/flipped-".format(common.data_home)):
@@ -1084,6 +1093,11 @@
     item.connect('activate', switch_tracking_files)
     menu.append(item)
 
+    item = Gtk.CheckMenuItem.new_with_label(common.lang['use_display_names'])
+    item.set_active(common.settings.generic_display_names)
+    item.connect('activate', switch_generic_display_names)
+    menu.append(item)
+
     menu.show_all()
     menu.popup_at_widget(button, Gdk.Gravity.CENTER, Gdk.Gravity.NORTH_WEST, 
None)
 
@@ -1212,6 +1226,15 @@
         common.indicator.switch_indication(item)
 
 
+def switch_generic_display_names(item):
+    if item.get_active():
+        common.settings.generic_display_names = True
+        common.settings.save()
+    else:
+        common.settings.generic_display_names = False
+        common.settings.save()
+
+
 class ColorPaletteDialog(Gtk.Window):
     def __init__(self, thumb_file, filename, palette):
         super().__init__()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azote-1.9.0/azote/tools.py 
new/azote-1.9.1/azote/tools.py
--- old/azote-1.9.0/azote/tools.py      2021-03-13 01:46:52.000000000 +0100
+++ new/azote-1.9.1/azote/tools.py      2021-03-28 03:08:24.000000000 +0200
@@ -86,7 +86,8 @@
                                'x': output['rect']['x'],
                                'y': output['rect']['y'],
                                'width': output['rect']['width'],
-                               'height': output['rect']['height']}
+                               'height': output['rect']['height'],
+                               'generic-name': "{} {} 
{}".format(output["make"], output["model"], output["serial"])}
                     displays.append(display)
                     log("Output found: {}".format(display), common.INFO)
                 try:
@@ -754,6 +755,7 @@
         self.color_dictionary = False
         self.image_menu_button = False
         self.track_files = True
+        self.generic_display_names = False
 
         # Runtime config (json) location
         self.rc_file = os.path.join(common.azote_config_home, "azoterc")
@@ -818,6 +820,11 @@
         except AttributeError:
             save_needed = True
 
+        try:
+            self.generic_display_names = settings.generic_display_names
+        except AttributeError:
+            save_needed = True
+
         self.load_rc()
         # overwrite self.old_thumb_width with self.thumb_width if changed in 
azoterc
         if self.old_thumb_width != self.thumb_width:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azote-1.9.0/setup.py new/azote-1.9.1/setup.py
--- old/azote-1.9.0/setup.py    2021-03-13 01:46:52.000000000 +0100
+++ new/azote-1.9.1/setup.py    2021-03-28 03:08:24.000000000 +0200
@@ -8,7 +8,7 @@
 
 setup(
     name='azote',
-    version='1.9.0',
+    version='1.9.1',
     description='Wallpaper manager for Sway, i3 and some other WMs',
     packages=['azote'],
     include_package_data=True,

Reply via email to