diff --git a/xrandroll/xrandr.py b/xrandroll/xrandr.py new file mode 100644 index 0000000..97269c1 --- /dev/null +++ b/xrandroll/xrandr.py @@ -0,0 +1,16 @@ +"""Read/Write system display state using xrandr.""" + +import subprocess + + +def read_data(): + data = subprocess.check_output(["xrandr", "--verbose"]) + return data + + +def parse_data(data): + print(data) + + +if __name__ == "__main__": + print(parse_data(read_data()))