Stop the power button from putting your Mac in stand-by (sleep) mode

power button

Since OS X 10.9 mavericks, the behavior of the power button has been changed. When you press the power button for about 2 seconds, it will put macOS (OS X) in stand-by (sleep) mode.

With the following command you can use the power button function as in previous versions of OS X. By showing a dialog box for turning off the Mac and more.

Read more

Reset OS X/macOS Dock to default settings

dock icon

There is a Terminal command that you can use to quickly make your dock look like new again. Do you experience problems with the Dock on your Mac? The best you can do is to reset it to default settings.

The following Terminal command will reset your dock by removing any icons that you’ve added and removed. It’ll also reset the size of the dock, magnification settings, and its location.

Read more