示例#1
0
    def _makeOne(self):
        from layouts import Layouts

        inst = Layouts()
        return inst
示例#2
0
    def init_groups(self):

        layout = Layouts()

        return [
            Group("SYS",
                  layouts=[
                      layout.max(),
                      layout.two_stackWide(),
                      layout.two_stackTall()
                  ]),
            Group("CLI",
                  layouts=[
                      layout.two_stackTall(),
                      layout.monadTall(),
                      layout.ten_monadWide()
                  ],
                  matches=[Match(title=["Irssi", "Mpsyt"])]),
            Group("TYP",
                  layouts=[
                      layout.five_monadTall(),
                      layout.two_stackTall(),
                      layout.two_stackWide()
                  ],
                  matches=[Match(wm_class=["Subl3", "Howl", "Geany"])]),
            Group("VRT",
                  layouts=[layout.floating()],
                  matches=[
                      Match(wm_class=[
                          "Xephyr", "Virt-manager",
                          re.compile("VirtualBox")
                      ])
                  ]),
            Group("MNG",
                  layouts=[layout.max()],
                  matches=[Match(wm_class=["Nemo"])]),
            Group("AUX", layouts=[layout.max(),
                                  layout.ten_monadWide()]),
            Group("DOC",
                  layouts=[
                      layout.two_stackTall(),
                      layout.max(),
                      layout.two_stackWide(),
                  ],
                  matches=[Match(wm_class=["Zathura", "Evince"])]),
            Group(
                "OFC",
                layouts=[layout.max(), layout.two_stackWide()],
                matches=[
                    Match(
                        wm_class=["calibre", re.compile("NetBeans")]),
                    Match(title=[re.compile("LibreOffice")])
                ]),
            Group("GPX",
                  layouts=[layout.max(), layout.two_stackWide()],
                  matches=[
                      Match(wm_class=[
                          "Glade", "Inkscape", "mpv",
                          re.compile("Gimp")
                      ])
                  ]),
            Group("TCM",
                  layouts=[layout.max(), layout.two_stackTall()],
                  matches=[
                      Match(wm_class=[
                          "Tor Browser", "firefox", "qutebrowser", "Chromium",
                          "Links"
                      ]),
                      Match(title=["Links"])
                  ]),
            Group("", layouts=[layout.floating()])
        ]
示例#3
0
    def init_groups(self):

        layout = Layouts()

        if Function.screen_count() > 1:
            return [
                Group("",
                      layouts=[
                          layout.monadTall(),
                          layout.monadWide(),
                          layout.tabbed()
                      ],
                      screen_affinity=0,
                      spawn="alacritty -e tmux"),
                Group("",
                      layouts=[
                          layout.monadTall(),
                          layout.monadWide(),
                      ],
                      screen_affinity=0,
                      matches=[Match(wm_class=[
                          "emacs",
                      ])]),
                Group("",
                      layouts=[
                          layout.max(),
                          layout.monadTall(),
                      ],
                      screen_affinity=2,
                      matches=[Match(wm_class=[
                          "firefox",
                      ])],
                      spawn="firefox"),
                Group("",
                      layouts=[
                          layout.max(),
                          layout.monadTall(),
                      ],
                      screen_affinity=2,
                      matches=[Match(wm_class=[
                          "chromium",
                      ])]),
                Group("",
                      layouts=[
                          layout.monadTall(),
                          layout.monadWide(),
                      ],
                      screen_affinity=1),
                Group("",
                      layouts=[
                          layout.monadTall(),
                          layout.monadWide(),
                      ],
                      screen_affinity=1),
            ]
        else:
            return [
                Group("",
                      layouts=[layout.monadTall(),
                               layout.tabbed()],
                      screen_affinity=0,
                      spawn="alacritty -e tmux"),
                Group("",
                      layouts=[
                          layout.max(),
                          layout.monadTall(),
                      ],
                      screen_affinity=0,
                      matches=[Match(wm_class=[
                          "firefox",
                      ])],
                      spawn="firefox"),
                Group("",
                      layouts=[
                          layout.monadTall(),
                          layout.monadWide(),
                      ],
                      screen_affinity=0),
                Group("",
                      layouts=[
                          layout.monadTall(),
                          layout.monadWide(),
                      ],
                      screen_affinity=0),
                Group("",
                      layouts=[
                          layout.max(),
                          layout.monadTall(),
                      ],
                      screen_affinity=0,
                      matches=[Match(wm_class=[
                          "chromium",
                      ])]),
            ]
示例#4
0
from widgets import MyWidgets
from layouts import Layouts
from groups import CreateGroups
from icons import group_icons

###### MAIN ######
if __name__ in ["config", "__main__"]:
    # Initializes objects

    # Initializes keybindings
    obj_keys = Keybindings()

    # Mouse
    obj_mouse = Mouse()
    obj_widgets = MyWidgets()
    obj_layouts = Layouts()
    obj_groups = CreateGroups()

    # Initializes qtile variables
    keys = obj_keys.init_keys()
    mouse = obj_mouse.init_mouse()
    layouts = obj_layouts.init_layouts()
    groups = obj_groups.init_groups()

    # Append group keys for groups
    keys += obj_keys.init_keys_groups(group_icons)

    ### DISPLAYS WIDGETS IN THE SCREEN ####

    screens = obj_widgets.init_screen()
    main_widgets_list = obj_widgets.init_widgets_list()