Skip to content

Dual Monitor Wallpaper Setter for macOS: A Python script designed to automatically set different wallpapers for two separate desktops on macOS. Ideal for users with dual monitor setups looking to customize their desktops individually. Leverages AppleScript commands executed via Python's subprocess module.

Notifications You must be signed in to change notification settings

kashfifahim/Change-macOS-Wallpaper-Using-Python3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Dual Monitor Wallpaper Setter

This Python script is designed to change the wallpapers on two separate desktops on macOS. It uses AppleScript executed via Python's subprocess module.

Author

Kashfi Fahim

Customizing Wallpapers

To customize the wallpapers for each desktop, you can edit the AppleScript commands in the Python script. Replace the file paths to the images with the paths to your own wallpaper images:

    script1 = """
    tell application "System Events"
        tell desktop 1
            set picture to "/path/to/your/image1.jpg"
        end tell
    end tell
    """

    script2 = """
    tell application "System Events"
        tell desktop 2
            set picture to "/path/to/your/image2.jpg"
        end tell
    end tell
    """

Usage

To run the script, use the following command in Terminal:

python3 change_wallpaper.py

License

This script is released under the MIT License.

About

Dual Monitor Wallpaper Setter for macOS: A Python script designed to automatically set different wallpapers for two separate desktops on macOS. Ideal for users with dual monitor setups looking to customize their desktops individually. Leverages AppleScript commands executed via Python's subprocess module.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages