-
Notifications
You must be signed in to change notification settings - Fork 41
Description
I am on Hyprland, btw, and I have noticed that screeninfo is failing to properly parse my monitors if/when they are modified through an application like nwg-displays
If you run screeninfo in a separate project and call the get_monitors you receive and error such as the following.
[tahlon@yoru:~/projects/python/testScreeninfo]$ python ./testScreeninfo/__main__.py Traceback (most recent call last): File "/home/tahlon/projects/python/testScreeninfo/./testScreeninfo/__main__.py", line 4, in <module> MONITOR_OPTIONS: List[str] = [m.name for m in get_monitors()] ^^^^^^^^^^^^^^ File "/nix/store/sx3m1039r9n7brrb0799px6v3hh62qqp-python3-3.12.10-env/lib/python3.12/site-packages/screeninfo/screeninfo.py", line 32, in get_monitors raise ScreenInfoError("No enumerators available") screeninfo.common.ScreenInfoError: No enumerators available
I believe the same thing is happening in waypaper and it is monitors to display a wallpaper in their original resolution / position as everything works well without modifying those properties.
I have looked on the screeninfo GitHub and noticed that several other people experience this issue and that it has not been fixed in several years.
Would it be possible to look into another package to pull current monitors OR allow them to be specifically configured as an option.
I would be happy to make a pull request.