Fixing swaybg

This fixes issue #34
This commit is contained in:
Roman 2024-02-23 09:51:06 +01:00
parent 47f59cd43b
commit fda591d59c
3 changed files with 5 additions and 5 deletions

View File

@ -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",

View File

@ -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

View File

@ -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":