mirror of
https://github.com/kittywitch/konawall-py.git
synced 2026-02-09 04:19:19 -08:00
Fix darwin math and pyproject.toml
This commit is contained in:
parent
3cd50fe831
commit
bfb74c7aca
2 changed files with 2 additions and 2 deletions
|
|
@ -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])
|
||||
Loading…
Add table
Add a link
Reference in a new issue