Skip to content

🖥️ Get information of macOS displays from the command-line

License

Notifications You must be signed in to change notification settings

importre/macos-displays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

macos-displays

Installation

brew install importre/core/displays

Usage

displays -h
USAGE: displays [--output <output>]

OPTIONS:
  -o, --output <output>   Write to file instead of stdout.
  -h, --help              Show help information.

Output

[
  {
    "isDeepest" : true,
    "isMain" : true,
    "name" : "LG UltraFine",
    "resolution" : {
      "height" : 1296,
      "width" : 2304
    },
    "safeAreaInsets" : {
      "bottom" : 0,
      "left" : 0,
      "right" : 0,
      "top" : 0
    }
  },
  {
    "isDeepest" : false,
    "isMain" : false,
    "name" : "Built-in Retina Display",
    "resolution" : {
      "height" : 1117,
      "width" : 1728
    },
    "safeAreaInsets" : {
      "bottom" : 0,
      "left" : 0,
      "right" : 0,
      "top" : 32
    }
  },
  {
    "isDeepest" : false,
    "isMain" : false,
    "name" : "Sidecar Display (AirPlay)",
    "resolution" : {
      "height" : 1024,
      "width" : 1366
    },
    "safeAreaInsets" : {
      "bottom" : 0,
      "left" : 0,
      "right" : 0,
      "top" : 0
    }
  }
]

About

🖥️ Get information of macOS displays from the command-line

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published