Retrieve information about macOS displays
Project description
Fetch information about macOS displays given a display ID, which is available from nsscreen.deviceDescription()["NSScreenNumber"] using pyobjc.
Get the user-visible display name from an id:
>>> import macos_display >>> macos_display.display_name(69732928) 'Color LCD'
List all display names:
>>> from AppKit import NSScreen >>> import macos_display >>> screens = NSScreen.screens() >>> for screen in screens: ... screen_id = screen.deviceDescription()["NSScreenNumber"] ... name = macos_display.display_name(screen_id) ... print(name) ... Color LCD SAMSUNG LCD1970NXp
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
macos_display-1.1.1.tar.gz
(3.8 kB
view hashes)
Built Distributions
Close
Hashes for macos_display-1.1.1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 999669ad14078d3ee4611bf94d81e2de4ce074f8c03de67bd00447d725743fc5 |
|
MD5 | 4d3216f9cd4111f2b6022e1efdfa0d83 |
|
BLAKE2b-256 | 35e21e93888915a474ecc5e4e47937d625e9cff9669d964efb9e7831ec62fddb |
Close
Hashes for macos_display-1.1.1-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4035875b631bfff35ca478c9dedb120fa42484ff7886b5e5b7d16dadd8a683d6 |
|
MD5 | 2d05556b293b0a96a0739b3332c30b64 |
|
BLAKE2b-256 | f6ff1c49315a157f8d753f6e4a47a23b45eee6da3a08f10bf6b6702d0eadc854 |