Debian Codegraph @

README.md

raw symbols SCIP
1 screeninfo
2 ----------
3
4 Fetch location and size of physical screens.
5
6 ### Supported environments
7
8 - MS Windows
9 - MS Windows: Cygwin
10 - GNU/Linux: X11 (through Xinerama)
11 - GNU/Linux: DRM (experimental)
12 - OSX: (through PyOBJus)
13
14 I don't plan on testing OSX or other environments myself. For this reason,
15 I strongly encourage pull requests.
16
17 ### Installation
18
19 ```
20 pip install screeninfo
21 ```
22
23 If you install it from sources:
24
25 ```
26 python3 setup.py install
27 ```
28
29 ### Usage
30
31 ```python
32 from screeninfo import get_monitors
33 for m in get_monitors():
34 print(str(m))
35 ```
36
37 **Output**:
38
39 >Monitor(x=1920, y=0, width=1920, height=1080, name=None)
40 >Monitor(x=0, y=0, width=1920, height=1080, name=None)
41
42 ### Forcing environment
43
44 In some cases (emulating X server on Cygwin etc.) you might want to specify the
45 driver directly. You can do so by passing extra parameter to `get_monitors()`
46 like this:
47
48 ```python
49 from screeninfo import get_monitors, Enumerator
50 for m in get_monitors(Enumerator.OSX):
51 print(str(m))
52 ```
53
54 Available drivers: `windows`, `cygwin`, `x11`, `osx`.