This commit is contained in:
Roberto Alsina 2020-02-05 13:47:20 -03:00
parent df6d63f9e8
commit 59a5da433b

16
xrandroll/xrandr.py Normal file
View File

@ -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()))