Browse Source

Add randr module

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
parent
commit
14c0b143fa
  1. 36
      src/scripts/python/xutil/randr.py

36
src/scripts/python/xutil/randr.py

@ -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…
Cancel
Save