Skip to content

ggets/sublime-screeninfo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sublime-screeninfo

Sublime Text dependency of screeninfo for retrieving screen information.

Requirements:

Screeninfo itself uses the following dependencies:

  • enum
  • typing

Original Package:

Because of the lack of dataclasses in python 3.3, it returns a lambda instead.

Usage

from screeninfo import get_monitors, Enumerator
print("Native:")
for m in get_monitors():
	print(("\tMonitor "+m.name+" Position:"),m.x,"x",m.y)
	print(("\tMonitor "+m.name+" Size:"),m.width,"x",m.height)
	print(("\tMonitor "+m.name+" Size (mm):"),m.width_mm,"x",m.height_mm)
	print(("\tMonitor "+m.name+" DPI:"),m.dpiX,"x",m.dpiY)
print("Alternative driver:")
for m in get_monitors(Enumerator.Cygwin):
	print(("\tMonitor "+m.name+" Position:"),m.x,"x",m.y)
	print(("\tMonitor "+m.name+" Size:"),m.width,"x",m.height)
	print(("\tMonitor "+m.name+" Size (mm):"),m.width_mm,"x",m.height_mm)
	print(("\tMonitor "+m.name+" DPI:"),m.dpiX,"x",m.dpiY)

Output:

Native:
Monitor \.\DISPLAY1 Position: 0 x 0
Monitor \.\DISPLAY1 Size: 1366 x 768
Monitor \.\DISPLAY1 Size (mm): 293 x 165
Monitor \.\DISPLAY1 DPI: 96 x 96
Alternative driver:
Monitor \.\DISPLAY1 Position: 0 x 0
Monitor \.\DISPLAY1 Size: 1366 x 768
Monitor \.\DISPLAY1 Size (mm): 293 x 165
Monitor \.\DISPLAY1 DPI: 96 x 96

About

Fetch location and size of physical screens.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%