diff --git a/konawall/environments/darwin.py b/konawall/environments/darwin.py index 2d7471c..a6ee87b 100644 --- a/konawall/environments/darwin.py +++ b/konawall/environments/darwin.py @@ -10,5 +10,5 @@ This sets wallpapers on Darwin. def set_wallpapers(files: list, displays: list): for i, file in enumerate(files): # Run osascript to set the wallpaper for each monitor - command = f'tell application "System Events" to set picture of desktop {i} to "{file}"' + command = f'tell application "System Events" to set picture of desktop {i-1} to "{file}"' subprocess.run(["osascript", "-e", command]) \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 5b5e2a8..a8c373f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ packages = [ ] [tool.poetry.scripts] -gui = "konawall.gui" +gui = "konawall.gui:main" [tool.poetry.dependencies] python = "^3.11"