From 8159f0772494e5bdf0f6e7f260222f0bba977c58 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Wed, 5 Feb 2020 18:35:54 -0300 Subject: [PATCH] primary monitor parsing --- xrandroll/monitor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xrandroll/monitor.py b/xrandroll/monitor.py index 2059ede..73e57f7 100644 --- a/xrandroll/monitor.py +++ b/xrandroll/monitor.py @@ -61,6 +61,7 @@ class Monitor: pos_x = 0 pos_y = 0 enabled = False + primary = False def __init__(self, data): """Initialize a monitor object out of data from xrandr --verbose. @@ -70,6 +71,7 @@ class Monitor: self.header = data.pop(0) self.output = parse.search("{}{:s}", self.header)[0] + self.primary = "primary" in self.header self.replica_of = [] if "disconnected" in self.header: # No modes, no pos, no fields, no nothing.