Skip to content

Instantly share code, notes, and snippets.

@tedserbinski
Last active June 7, 2024 20:59
Show Gist options
  • Save tedserbinski/4bfbf0f64d78eeafc39a806a8a9ed465 to your computer and use it in GitHub Desktop.
Save tedserbinski/4bfbf0f64d78eeafc39a806a8a9ed465 to your computer and use it in GitHub Desktop.
Script to turn off “Click wallpaper to reveal desktop” setting in macOS Sonoma that can be run from Mosyle
# Credit goes to the blog post for the command:
# https://derflounder.wordpress.com/2023/09/26/managing-the-click-wallpaper-to-reveal-desktop-setting-in-macos-sonoma/
#!/bin/bash
# Get the logged-in user's username
loggedInUser=$(stat -f%Su /dev/console)
# Write the default value for the logged-in user
sudo -u "$loggedInUser" /usr/bin/defaults write com.apple.WindowManager EnableStandardClickToShowDesktop -bool false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment