mirror of
https://github.com/ralsina/xrandroll.git
synced 2024-11-21 10:32:23 +00:00
Dummy
This commit is contained in:
parent
df6d63f9e8
commit
59a5da433b
16
xrandroll/xrandr.py
Normal file
16
xrandroll/xrandr.py
Normal 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()))
|
Loading…
Reference in New Issue
Block a user