From fda591d59c6ed5a50444c32cd5403260afd2d94b Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 23 Feb 2024 09:51:06 +0100 Subject: [PATCH] Fixing swaybg This fixes issue #34 --- setup.py | 2 +- waypaper/app.py | 4 ++-- waypaper/changer.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 617e184..d002365 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ setuptools.setup( ] }, install_requires=["PyGObject", "importlib_metadata", "platformdirs", "Pillow"], - version='2.1', + version='2.1.1', python_requires='>3.9', classifiers=[ "Development Status :: 4 - Beta", diff --git a/waypaper/app.py b/waypaper/app.py index 7052001..5b11e3f 100644 --- a/waypaper/app.py +++ b/waypaper/app.py @@ -12,7 +12,7 @@ from waypaper.aboutdata import AboutData from waypaper.changer import change_wallpaper from waypaper.config import Config from waypaper.common import get_image_paths, get_random_file -from waypaper.options import FILL_OPTIONS, BACKEND_OPTIONS, SORT_OPTIONS, SORT_DISPLAYS +from waypaper.options import FILL_OPTIONS, SORT_OPTIONS, SORT_DISPLAYS gi.require_version("Gtk", "3.0") from gi.repository import Gtk, GdkPixbuf, Gdk, GLib @@ -58,7 +58,7 @@ class App(Gtk.Window): self.about = AboutData() self.txt = txt self.check_backends() - self.set_default_size(780, 600) + self.set_default_size(820, 600) self.connect("delete-event", Gtk.main_quit) self.selected_index = 0 self.highlighted_image_row = 0 diff --git a/waypaper/changer.py b/waypaper/changer.py index bb43414..9c76b79 100644 --- a/waypaper/changer.py +++ b/waypaper/changer.py @@ -23,8 +23,8 @@ def change_wallpaper(image_path, cf, monitor, txt): # command.extend(["-o", monitor]) command.extend(["-i", image_path]) command.extend(["-m", fill, "-c", cf.color]) - # subprocess.Popen(command) - # print(f"{txt.msg_setwith} {cf.backend}") + subprocess.Popen(command) + print(f"{txt.msg_setwith} {cf.backend}") # swww backend: elif cf.backend == "swww":