Fix darwin math and pyproject.toml

This commit is contained in:
Kat Inskip 2023-11-15 11:09:54 -08:00
parent 3cd50fe831
commit bfb74c7aca
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -12,7 +12,7 @@ packages = [
]
[tool.poetry.scripts]
gui = "konawall.gui"
gui = "konawall.gui:main"
[tool.poetry.dependencies]
python = "^3.11"