示例#1
0
 def __init__(self, stacks=2, **config):
     """
         - stacks: Number of stacks to start with.
     """
     Layout.__init__(self, **config)
     self.stacks = [_WinStack() for i in range(stacks)]
     self.add_defaults(Stack.defaults)
示例#2
0
 def __init__(self, **config):
     Layout.__init__(self, **config)
     self.add_defaults(Stack.defaults)
     self.stacks = [_WinStack() for i in range(self.num_stacks)]
     for stack in self.stacks:
         if self.autosplit:
             stack.split = True
示例#3
0
文件: stack.py 项目: Echota/qtile
 def __init__(self, stacks=2, **config):
     """
         - stacks: Number of stacks to start with.
     """
     Layout.__init__(self, **config)
     self.stacks = [_WinStack() for i in range(stacks)]
     self.add_defaults(Stack.defaults)
示例#4
0
文件: tile.py 项目: bavardage/qtile
 def __init__(self, ratio=0.618, masterWindows = 1, expand=True):
     Layout.__init__(self)
     self.clients = []
     self.ratio = ratio
     self.master = masterWindows
     self.focused = None
     self.expand = expand
示例#5
0
文件: tile.py 项目: bl4ckb1rd/qtile
 def __init__(self, ratio=0.618, masterWindows=1, expand=True, ratio_increment=0.05, **config):
     Layout.__init__(self, **config)
     self.clients = []
     self.ratio = ratio
     self.master = masterWindows
     self.focused = None
     self.expand = expand
     self.ratio_increment = ratio_increment
示例#6
0
 def __init__(self, ratio=GOLDEN_RATIO, ratio_increment=0.1, fancy=False, **config):
     Layout.__init__(self, **config)
     self.windows = []
     self.ratio_increment = ratio_increment
     self.ratio = ratio
     self.focused = None
     self.dirty = True # need to recalculate
     self.layout_info = []
     self.last_size = None
     self.fancy = fancy
示例#7
0
 def __init__(self, ratio=GOLDEN_RATIO, ratio_increment=0.1, fancy=False, **config):
     Layout.__init__(self, **config)
     self.windows = []
     self.ratio_increment = ratio_increment
     self.ratio = ratio
     self.focused = None
     self.dirty = True # need to recalculate
     self.layout_info = []
     self.last_size = None
     self.fancy = fancy
示例#8
0
文件: stack.py 项目: yannicklm/qtile
 def __init__(self, stacks=2, wmii_style=False, **config):
     """
         - stacks: Number of stacks to start with.
         - wmii_style: if True, when trying to move a client to a non-existing
         stack, a new stak will be created to contain the client.
         (off by default)
     """
     Layout.__init__(self, **config)
     self.wmii_style = wmii_style
     self.stacks = [_WinStack() for i in range(stacks)]
示例#9
0
文件: tile.py 项目: Cadair/qtile
 def __init__(self, ratio=0.618, masterWindows=1, expand=True,
     ratio_increment=0.05, add_on_top=True, shift_windows=False, **config):
     Layout.__init__(self, **config)
     self.clients = []
     self.ratio = ratio
     self.master = masterWindows
     self.focused = None
     self.expand = expand
     self.ratio_increment = ratio_increment
     self.add_on_top = add_on_top
     self.shift_windows = shift_windows
示例#10
0
 def __init__(self, ratio=0.618, masterWindows=1, expand=True,
     ratio_increment=0.05, add_on_top=True, shift_windows=False, **config):
     Layout.__init__(self, **config)
     self.clients = []
     self.ratio = ratio
     self.master = masterWindows
     self.focused = None
     self.expand = expand
     self.ratio_increment = ratio_increment
     self.add_on_top = add_on_top
     self.shift_windows = shift_windows
示例#11
0
 def __init__(self, ratio=GOLDEN_RATIO, ratio_increment=0.1,
              fancy=False, **config):
     Layout.__init__(self, **config)
     self.add_defaults(RatioTile.defaults)
     self.clients = []
     self.ratio_increment = ratio_increment
     self.ratio = ratio
     self.focused = None
     self.dirty = True  # need to recalculate
     self.layout_info = []
     self.last_size = None
     self.last_screen = None
     self.fancy = fancy
示例#12
0
 def __init__(self,
              ratio=GOLDEN_RATIO,
              ratio_increment=0.1,
              fancy=False,
              **config):
     Layout.__init__(self, **config)
     self.add_defaults(RatioTile.defaults)
     self.clients = []
     self.ratio_increment = ratio_increment
     self.ratio = ratio
     self.focused = None
     self.dirty = True  # need to recalculate
     self.layout_info = []
     self.last_size = None
     self.last_screen = None
     self.fancy = fancy
示例#13
0
 def info(self):
     d = Layout.info(self)
     d["rows"] = [[win.name for win in self.get_row(i)]
                  for i in xrange(self.get_num_rows())]
     d["current_window"] = self.current_window
     d["clients"] = [x.name for x in self.clients]
     return d
示例#14
0
 def clone(self, group):
     c = Layout.clone(self, group)
     # These are mutable
     c.stacks = [_WinStack() for i in self.stacks]
     for stack in c.stacks:
         if self.autosplit:
             stack.split = True
     return c
示例#15
0
 def info(self):
     d = Layout.info(self)
     d["rows"] = [
         [win.name for win in self.get_row(i)]
         for i in xrange(self.get_num_rows())
     ]
     d["current_window"] = self.current_window
     d["clients"] = [x.name for x in self.clients]
     return d
示例#16
0
    def __init__(self, float_rules=None, **config):
        """
        If you have certain apps that you always want to float you can
        provide ``float_rules`` to do so.
        ``float_rules`` is a list of dictionaries containing:
        
        {wmname: WM_NAME, wmclass: WM_CLASS
        role: WM_WINDOW_ROLE}

        The keys must be specified as above.  You only need one, but
        you need to provide the value for it.  When a new window is
        opened it's ``match`` method is called with each of these
        rules.  If one matches, the window will float.  The following
        will float gimp and skype:

        float_rules=[dict(wmclass="skype"), dict(wmclass="gimp")]

        Specify these in the ``floating_layout`` in your config.
        """
        Layout.__init__(self, **config)
        self.clients = []
        self.focused = None
        self.float_rules = float_rules or []
示例#17
0
    def __init__(self, float_rules=None, **config):
        """
        If you have certain apps that you always want to float you can
        provide ``float_rules`` to do so.
        ``float_rules`` is a list of dictionaries containing:

        {wmname: WM_NAME, wmclass: WM_CLASS
        role: WM_WINDOW_ROLE}

        The keys must be specified as above.  You only need one, but
        you need to provide the value for it.  When a new window is
        opened it's ``match`` method is called with each of these
        rules.  If one matches, the window will float.  The following
        will float gimp and skype:

        float_rules=[dict(wmclass="skype"), dict(wmclass="gimp")]

        Specify these in the ``floating_layout`` in your config.
        """
        Layout.__init__(self, **config)
        self.clients = []
        self.focused = None
        self.float_rules = float_rules or []
示例#18
0
 def clone(self, group):
     c = Layout.clone(self, group)
     c.windows = []
     return c
示例#19
0
 def clone(self, group):
     c = Layout.clone(self, group)
     c.windows = []
     return c
示例#20
0
文件: slice.py 项目: 0x64746b/qtile
 def clone(self, group):
     res = Layout.clone(self, group)
     res._slice = self._slice.clone(group)
     res._fallback = self._fallback.clone(group)
     res._window = None
     return res
示例#21
0
文件: tree.py 项目: bl4ckb1rd/qtile
 def info(self):
     d = Layout.info(self)
     d["clients"] = [i.name for i in self._nodes]
     d["sections"] = [i.title for i in self._tree.children]
     return d
示例#22
0
文件: stack.py 项目: Dieterbe/qtile
 def clone(self, group):
     c = Layout.clone(self, group)
     # These are mutable
     c.stacks = [_WinStack() for i in self.stacks]
     return c
示例#23
0
 def clone(self, group):
     c = Layout.clone(self, group)
     # These are mutable
     c.stacks = [_WinStack() for i in self.stacks]
     return c
示例#24
0
 def info(self):
     d = Layout.info(self)
     d["stacks"] = [i.info() for i in self.stacks]
     d["current_stack"] = self.currentStackOffset
     return d
示例#25
0
文件: max.py 项目: bavardage/qtile
 def __init__(self):
     Layout.__init__(self)
     self.clients = []
示例#26
0
 def info(self):
     d = Layout.info(self)
     d["clients"] = [x.name for x in self.clients]
     return d
示例#27
0
 def clone(self, group):
     res = Layout.clone(self, group)
     res._slice = self._slice.clone(group)
     res._fallback = self._fallback.clone(group)
     res._window = None
     return res
示例#28
0
 def clone(self, group):
     c = Layout.clone(self, group)
     c.clients = []
     return c
示例#29
0
文件: floating.py 项目: Echota/qtile
 def info(self):
     d = Layout.info(self)
     d["clients"] = [i.name for i in self.clients]
     return d
示例#30
0
 def __init__(self, gap=50):
     Layout.__init__(self)
     self.clients = []
     self.gap = gap
示例#31
0
文件: tree.py 项目: bl4ckb1rd/qtile
 def clone(self, group):
     c = Layout.clone(self, group)
     c._focused = None
     c._panel = None
     c._tree = Root(self.sections)
     return c
示例#32
0
 def info(self):
     d = Layout.info(self)
     d["stacks"] = [i.info() for i in self.stacks]
     d["current_stack"] = self.currentStackOffset
     d["clients"] = [c.name for c in self.clients]
     return d
示例#33
0
文件: tree.py 项目: bl4ckb1rd/qtile
 def __init__(self, **config):
     Layout.__init__(self, **config)
     self._focused = None
     self._panel = None
     self._tree = Root(self.sections)
     self._nodes = {}
示例#34
0
文件: matrix.py 项目: Echota/qtile
 def __init__(self, columns=2, **config):
     Layout.__init__(self, **config)
     self.add_defaults(Matrix.defaults)
     self.current_window = None
     self.columns = columns
     self.windows = []
示例#35
0
文件: tile.py 项目: andrelaszlo/qtile
 def clone(self, group):
     c = Layout.clone(self, group)
     c.clients = []
     return c
示例#36
0
 def __init__(self, **config):
     Layout.__init__(self, **config)
     self.clients = []
     self.focused = None
示例#37
0
文件: stack.py 项目: Dieterbe/qtile
 def info(self):
     d = Layout.info(self)
     d["stacks"] = [i.info() for i in self.stacks]
     d["current_stack"] = self.currentStackOffset
     return d
示例#38
0
 def __init__(self, columns=2, **config):
     Layout.__init__(self, **config)
     self.add_defaults(Matrix.defaults)
     self.current_window = None
     self.columns = columns
     self.clients = []