mirror of
https://github.com/anufrievroman/waypaper.git
synced 2024-11-22 07:22:19 +03:00
Correction of monitor detection
This commit is contained in:
parent
f4d268b905
commit
4733dd3ec1
@ -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
|
||||
|
||||
|
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user