The hot key to trigger that command can be whatever you want. Or, if your keyboard macro program has a built-in “Sleep Display” or “Sleep Screen” action, you can use that as the action instead, as I did in the above screenshot. The configuration of my “Put Display to Sleep” keyboard macro in Keyboard MaestroĬonfigure your program to run the following shell script when the keyboard shortcut is pressed ( source): pmset displaysleepnow The program I use to define the global shortcut is Keyboard Maestro (costs money), but many other apps can do that, including the free program Quicksilver.
My current solution is to use a third-party program to assign a custom keyboard shortcut to an action that puts the display to sleep. I have stopped using the above custom Touch Bar button because I found it cumbersome to expand the BetterTouchTool Touch Bar when I needed it-I now use only my custom keyboard shortcut.) (See also my newer answer about creating a custom keyboard shortcut to put the display to sleep.
The action I assigned was BetterTouchTool’s predefined action “Sleep Display”. When configuring the button, I gave the button the name “Put Display to Sleep” and set the icon to this blank screen icon from Icons8. It behaves equivalently to the old Ctrl+ Shift+ Eject shortcut – it puts the display to sleep immediately, without locking the screen or putting the computer to sleep. I can press that button whenever the BetterTouchTool Touch Bar is expanded. See the button “Put Display to Sleep” in this screenshot: I couldn’t find an existing keyboard shortcut to put the screen to sleep, so I used the software BetterTouchTool (costs money) to create a custom Touch Bar button for it.
#CONTROL SHIFT EJECT MAC PRO#
On my 2018 MacBook Pro with Touch Bar, none of the key combinations mentioned that use the power button (now the Touch ID button) worked.