Skip to content

alin23/mac-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mac-utils

Small utilities for macOS

runfg

Run any command ensuring that the process won't be sent to the Apple Silicon efficiency cores.


runbg

Run any command pinned to the Apple Silicon efficiency cores.


VerticalMonitorLayout

Arrange the external monitor above the MacBook display.

add to shortcuts button

vertical monitor layout in Display preferences


HorizontalMonitorLayout

Arrange the external monitor to the left or right of the MacBook display.


SwapMonitors

In a MacBook with 2 monitors setup, swap the external monitors around.

add to shortcuts button

swap monitor layout in Display preferences


MirrorMacBookToMonitor

In a MacBook with 1 monitor setup, mirror the MacBook display contents to the external monitor.

add to shortcuts button

mirrored MacBook in Display preferences


ToggleHDR

Enable/disable HDR for a monitor where the High Dynamic Range checkbox is available in Display Preferences.

add to shortcuts button

hdr checkbox in Display preferences


RotateDisplay

Change rotation of a display from the command line.


SetNativeBrightness

Set brightness for Apple native displays from the command line.

Works for the built-in MacBook and iMac screen, and Apple vendored displays like:

  • Studio Display
  • Pro Display XDR
  • LG Ultrafine for Mac
  • LED Cinema
  • Thunderbolt Display

SetKeyboardBacklight

Set keyboard backlight brightness from the command line.


IsNowPlaying

Prints true (or exits with code 0 on -q) if the Mac is currently playing any media.


IsCameraOn

Prints true (or exits with code 0 on -q) if the Mac camera is in use by any application.


ReferencePreset

Activate presets for reference monitors like the Pro Display XDR or the MacBook Pro 2021 screen.

reference presets in Display preferences

ApplyColorProfile

Apply .icc color profiles to any display. It works even if the display does not have a color profile setting in System Settings.