Example #1
0
 def info(self):
     d = _SimpleLayoutBase.info(self)
     d.update(dict(
         master=[c.name for c in self.master_windows],
         slave=[c.name for c in self.slave_windows],
     ))
     return d
Example #2
0
 def info(self):
     d = _SimpleLayoutBase.info(self)
     focused = self.clients.current_client
     d["ratio"] = self.ratio
     d["focused"] = focused.name if focused else None
     d["layout_info"] = self.layout_info
     return d
Example #3
0
 def info(self):
     d = _SimpleLayoutBase.info(self)
     focused = self.clients.current_client
     d['ratio'] = self.ratio,
     d['focused'] = focused.name if focused else None,
     d['layout_info'] = self.layout_info
     return d
Example #4
0
 def info(self):
     d = _SimpleLayoutBase.info(self)
     d.update(
         dict(
             main=d["clients"][0] if self.clients else None,
             secondary=d["clients"][1::] if self.clients else [],
         ))
     return d
Example #5
0
 def info(self):
     d = _SimpleLayoutBase.info(self)
     d["rows"] = [
         [win.name for win in self.get_row(i)]
         for i in range(self.rows)
     ]
     d["current_window"] = self.column, self.row
     return d