Browse Source
This module is meant to provide a wrapper around xrandr. + Pos enum added which is position of screens - commandline options should be applied to it.pull/2/head
Ali Hatami Tajik
2 years ago
1 changed files with 36 additions and 0 deletions
@ -0,0 +1,36 @@ |
|||
|
|||
"""RandR |
|||
|
|||
Author: Ali Hatami Tajik [hatam](mailto:a.hatam008@gmail.com) |
|||
Date: 2023 Mar 04 |
|||
|
|||
--- |
|||
This module provides a wrapper utility around xrandr. |
|||
|
|||
Classes: |
|||
Mode |
|||
Setting |
|||
Screen |
|||
Dir |
|||
Pos |
|||
|
|||
|
|||
Utilities: |
|||
get_screens |
|||
|
|||
""" |
|||
|
|||
from enum import Enum |
|||
from dataclasses import dataclass |
|||
|
|||
|
|||
class Pos(Enum): |
|||
"""Position types in xrandr |
|||
|
|||
Position the output relative to the position of another output. |
|||
""" |
|||
LEFT_OF = 0, |
|||
RIGHT_OF = 1, |
|||
ABOVE = 2, |
|||
BELOW = 3, |
|||
SAME_AS = 4 |
Loading…
Reference in new issue