Correction of monitor detection

This commit is contained in:
Roman 2024-10-18 17:30:49 +09:00
parent f4d268b905
commit 4733dd3ec1
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ from PIL import Image
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, get_monitor_names, get_monitor_names_hyprctl, get_monitor_names_swww
from waypaper.common import get_image_paths, get_random_file, get_monitor_names
from waypaper.options import FILL_OPTIONS, SORT_OPTIONS, SORT_DISPLAYS, VIDEO_EXTENSIONS
from waypaper.translations import Chinese, English, French, German, Polish, Russian, Belarusian, Spanish

View File

@ -3,7 +3,7 @@
import subprocess
import time
from waypaper.config import Config
from waypaper.common import get_monitor_names_hyprctl
from waypaper.common import get_monitor_names
from waypaper.translations import Chinese, English, French, German, Polish, Russian, Belarusian
from pathlib import Path
import re
@ -152,7 +152,7 @@ def change_wallpaper(image_path: Path, cf: Config, monitor: str, txt: Chinese|En
# Decide which monitors are affected:
if monitor == "All":
monitors = get_monitor_names_hyprctl()
monitors = get_monitor_names()
else:
monitors: list = [monitor]