Skip to content

How to Disable Screensaver on Mac using the CLI

If you want to disable the Screensaver on your Mac, by using the Command Line Interface (CLI), then you can do the following:

Step 1 – See what is currently set

defaults read com.apple.screensaver
Code language: Bash (bash)

Step 2 – Set the idleTime

defaults -currentHost write com.apple.screensaver idleTime 0
Code language: Bash (bash)

Step 3 – (Optional) – Undo the change

defaults -currentHost delete com.apple.screensaver idleTime
Code language: Bash (bash)

See also  How to Change the Timestamp of a File on Mac/Linux
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x