Exemple #1
0
 def __init__(self, groups, colormanager):
     self.groups = groups
     self.cm = colormanager
     self.vertical_layout(self.groups[0])
     self.matrix_layout(self.groups[9])
     self.default_layouts = [
         layout.Columns(
             num_columns=3,
             grow_amount=10,
             insert_position=0,
             split=True,
             border_focus_stack=self.cm.active_stack_border.get_hex_l(),
             border_normal_stack=self.cm.inactive_stack_border.get_hex_l(),
             **self.base_theme()
         ),
         layout.Max(**self.base_theme()),
         # layout.MonadTall(**layout_theme),
         # layout.Bsp(**layout_theme),
         # layout.Stack(num_stacks=3),
         # Try more layouts by unleashing below layouts.
         # layout.Matrix(columns=3, **layout_theme),
         # layout.MonadWide(),
         # layout.RatioTile(),
         # layout.Tile(shift_window=True, **layout_theme),
         # layout.TreeTab(),
         # layout.VerticalTile(),
         # layout.Zoomy(),
     ]
Exemple #2
0
class ColumnsConfig(Config):
    auto_fullscreen = True
    groups = [
        libqtile.config.Group("a"),
        libqtile.config.Group("b"),
        libqtile.config.Group("c"),
        libqtile.config.Group("d")
    ]
    layouts = [
        layout.Columns(num_columns=3),
        layout.Columns(margin_on_single=10),
        layout.Columns(margin_on_single=[10, 20, 30, 40]),
    ]
    floating_layout = libqtile.resources.default_config.floating_layout
    keys = []
    mouse = []
    screens = []
    follow_mouse_focus = False
Exemple #3
0
def init_layouts(): return  [
        layout.Max(),
        layout.Zoomy( **border_args),
        layout.MonadTall(ratio=0.65, **border_args),
        layout.Columns( **border_args),
]



def init_floating_layout():
Exemple #4
0
def init_layouts(num_screens):
    margin = 0
    if num_screens > 1:
        margin = 8
    kwargs = dict(margin=margin,
                  border_width=1,
                  border_normal="#111111",
                  border_focus=BLUE,
                  border_focus_stack=ORANGE)
    layouts.extend([layout.Columns(num_columns=2, grow_amount=5, **kwargs)])
Exemple #5
0
def init_layouts(layout_defaults):
	return [
	    layout.MonadTall(**layout_defaults),
	    layout.Columns(**layout_defaults, num_stacks=2),
	    # layout.Bsp(**layout_defaults),
	    # layout.Matrix(**layout_defaults),
	    # layout.RatioTile(**layout_defaults),
	    # layout.Slice(**layout_defaults),
	    layout.Max(**layout_defaults),
	    # layout.Zoomy(margin=4, columnwidth=200),
	]
Exemple #6
0
def init_layouts():
    margin = 0
    if len(qtile.conn.pseudoscreens) > 1:
        margin = 8
    l3liss = dict (margin=margin, border_width=3, border_normal="282a36",
                  border_focus="50fa7b", border_focus_stack="ffb86c")
    layouts = [
        layout.Max(),
        layout.Columns(border_on_single=True, num_columns=2, grow_amount=5, **l3liss)
    ]
    return layouts
Exemple #7
0
def create():
    """
    Initialize layouts for qtile
    """
    return [
        layout.Columns(
            border_focus=highlight,
            border_normal=colors_main["background"],
            margin=4,
        ),
        layout.Max(),
    ]
Exemple #8
0
 def vertical_layout(self, group):
     group.layouts = [
         layout.Columns(
             num_columns=1,
             grow_amount=10,
             insert_position=0,
             split=True,
             border_focus_stack=self.cm.active_stack_border.get_hex_l(),
             border_normal_stack=self.cm.inactive_stack_border.get_hex_l(),
             **self.base_theme()
         ),
         layout.Max(**self.base_theme(1, 2)),
     ]
Exemple #9
0
def get_layouts():
    return [
        layout.Columns(
            **layout_theme,
            border_normal_stack=colors.red[0],
            border_focus_stack=colors.blue[1],
            insert_position=1
        ),
        # BorderOnSingleBSP(
            # **layout_theme,
            # border_on_single=True,
            # fair=False,
            # grow_amount=5,
        # )
    ]
Exemple #10
0
class ColumnsConfig:
    auto_fullscreen = True
    groups = [
        libqtile.config.Group("a"),
        libqtile.config.Group("b"),
        libqtile.config.Group("c"),
        libqtile.config.Group("d")
    ]
    layouts = [
        layout.Columns(),
    ]
    floating_layout = libqtile.layout.floating.Floating()
    keys = []
    mouse = []
    screens = []
    follow_mouse_focus = False
Exemple #11
0
class ColumnsConfig(Config):
    auto_fullscreen = True
    groups = [
        libqtile.config.Group("a"),
        libqtile.config.Group("b"),
        libqtile.config.Group("c"),
        libqtile.config.Group("d")
    ]
    layouts = [
        layout.Columns(),
    ]
    floating_layout = libqtile.resources.default_config.floating_layout
    keys = []
    mouse = []
    screens = []
    follow_mouse_focus = False
Exemple #12
0
def init_layouts():
    margin = 0
    if len(qtile.conn.pseudoscreens) > 1:
        margin = 8
    kwargs = dict(margin=margin, border_width=1, border_normal=DARK_GREY,
                  border_focus=BLUE, border_focus_stack=ORANGE)
    layouts = [
        layout.Max(),
        layout.Columns(border_on_single=True, num_columns=2, grow_amount=5,
                       **kwargs)
    ]

    if DEBUG:
        layouts += [
            floating_layout, layout.Zoomy(), layout.Tile(), layout.Matrix(),
            layout.TreeTab(), layout.MonadTall(margin=10), layout.RatioTile(),
            layout.Stack()
        ]
    return layouts
Exemple #13
0
def get_layouts():
    layout_theme = {
        "border_width": 2,
        "margin": 4,
        "border_focus": "#F0F0F0",
        "border_normal": "#1D233F",
    }

    layouts = [
        # layout.Bsp(),
        # layout.MonadWide(),
        # layout.Tile(**layout_theme),
        # layout.VerticalTile(),
        # layout.Zoomy(),
        # layout.Max(**layout_theme),
        layout.Columns(**layout_theme),
        layout.Stack(num_stacks=2, **layout_theme),
        layout.Matrix(**layout_theme),
        layout.RatioTile(**layout_theme),
        layout.MonadTall(**layout_theme),
        layout.TreeTab(
            font="Source Code Pro",
            fontsize=10,
            sections=["FIRST", "SECOND", "THIRD", "FOURTH"],
            section_fontsize=10,
            border_width=2,
            bg_color="1c1f24",
            active_bg="2E7588",
            active_fg="000000",
            inactive_bg="a9a1e1",
            inactive_fg="1c1f24",
            padding_left=0,
            padding_x=0,
            padding_y=5,
            section_top=10,
            section_bottom=20,
            level_shift=8,
            vspace=3,
            panel_width=200,
        ),
    ]

    return layouts
Exemple #14
0
    keys.extend([
        # mod1 + letter of group = switch to group
        Key([mod], i.name, lazy.group[i.name].toscreen(),
            desc="Switch to group {}".format(i.name)),

        # mod1 + shift + letter of group = switch to & move focused window to group
        Key([mod, "shift"], i.name, lazy.window.togroup(i.name, switch_group=True),
            desc="Switch to & move focused window to group {}".format(i.name)),
        # Or, use below if you prefer not to switch to that group.
        # # mod1 + shift + letter of group = move focused window to group
        # Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
        #     desc="move focused window to group {}".format(i.name)),
    ])

layouts = [
    layout.Columns(border_focus_stack='#d75f5f'),
    layout.Max(),
    # Try more layouts by unleashing below layouts.
    # layout.Stack(num_stacks=2),
    # layout.Bsp(),
    # layout.Matrix(),
    # layout.MonadTall(),
    # layout.MonadWide(),
    # layout.RatioTile(),
    # layout.Tile(),
    # layout.TreeTab(),
    # layout.VerticalTile(),
    # layout.Zoomy(),
]

widget_defaults = dict(
Exemple #15
0
        # mod1 + shift + letter of group = switch to & move focused window to group
        Key([mod, "shift"],
            i.name,
            lazy.window.togroup(i.name, switch_group=True),
            desc="Switch to & move focused window to group {}".format(i.name)),
        # Or, use below if you prefer not to switch to that group.
        # # mod1 + shift + letter of group = move focused window to group
        # Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
        #     desc="move focused window to group {}".format(i.name)),
    ])

layouts = [
    #layout.Columns(border_focus_stack='#d75f5f'),
    layout.Columns(border_focus='#aa00aa',
                   border_focus_stack='#aa00aa',
                   border_wdth=1,
                   margin=1),
    layout.Max(),
    # Try more layouts by unleashing below layouts.
    layout.Stack(num_stacks=2),
    # layout.Bsp(),
    # layout.Matrix(),
    layout.MonadTall(),
    # layout.MonadWide(),
    # layout.RatioTile(),
    # layout.Tile(),
    # layout.TreeTab(),
    # layout.VerticalTile(),
    # layout.Zoomy(),
]
Exemple #16
0
shift = 'shift'
control = 'control'
alt_l = 'mod1'
alt_r = 'mod3'
super_l = 'mod4'
super_r = 'mod5'
mod = alt_r


def get_win_id(w):
    return w.info()['id']


layouts = [
    layout.Columns(),
    #  layout.MonadTall(),
    #  layout.tree.TreeTab(),
    layout.MonadWide(min_secondary_size=10, min_ratio=0.1, max_ratio=0.9),
    #  layout.bsp.Bsp(),
    layout.Max(),
]


##
# @brief toggle_layout 更改布局
#
# @param qtile this
#
# @return null
def toggle_layout(qtile):
Exemple #17
0
        # mod1 + shift + letter of group = switch to & move focused window to group
        Key([mod, "shift"], i.name, lazy.window.togroup(i.name, switch_group=True),
            desc="Switch to & move focused window to group {}".format(i.name)),
        # Or, use below if you prefer not to switch to that group.
        # # mod1 + shift + letter of group = move focused window to group
        # Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
        #     desc="move focused window to group {}".format(i.name)),
    ])


layouts = [
    layout.Columns(
         **layout_theme,
         grow_amount=5,
         insert_position=1,
         border_normal_stack=colors[4],
         border_focus_stack=colors[5],
         num_columns=2,
         ),
    # Try more layouts by unleashing below layouts.
    # layout.Stack(num_stacks=2),
    # layout.Bsp(),
    # layout.Matrix(),
    # layout.MonadTall(
    #   **layout_theme,
    #   ),
    # layout.MonadWide(),
    # layout.RatioTile(),
    # layout.Tile(),
    # layout.TreeTab(),
    layout.Max(**layout_theme),
Exemple #18
0
from libqtile import layout
from colors import colors

commonProperties = dict(
    border_focus = colors['color2'],
    border_normal = colors['color0'],
    border_width = 2,
    margin = 6,
)

layouts = [
    layout.MonadTall(**commonProperties, name = "﬿"),
    layout.MonadWide(**commonProperties, name = ""),
    layout.Columns(insert_position = 1, fair = True, num_columns=3, **commonProperties, name = "﩯"),
    layout.Max(name = ""),
    layout.Floating(**commonProperties, name = ""),
]
Exemple #19
0
    keys.extend([
        # mod1 + letter of group = switch to group
        Key([mod], i.name, lazy.group[i.name].toscreen(),
            desc="Switch to group {}".format(i.name)),

        # mod1 + shift + letter of group = switch to & move focused window to group
        Key([mod, "shift"], i.name, lazy.window.togroup(i.name, switch_group=True),
            desc="Switch to & move focused window to group {}".format(i.name)),
        # Or, use below if you prefer not to switch to that group.
        # # mod1 + shift + letter of group = move focused window to group
        # Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
        #     desc="move focused window to group {}".format(i.name)),
    ])

layouts = [
    layout.Columns(border_focus='#4C7899', border_width=4),
    layout.Max(),
    # Try more layouts by unleashing below layouts.
    #layout.Stack(border_focus='$4C7899', border_width=4, num_stacks=2),
    layout.Bsp(border_focus='#4C7899', border_width=4),
    layout.Matrix(border_focus='#4C7899', border_width=4),
    layout.MonadTall(border_focus='#4C7899', border_width=4),
    layout.MonadWide(border_focus='#4C7899', border_width=4),
    layout.RatioTile(border_focus='#4C7899', border_width=4),
    layout.Tile(border_focus='#4C7899', border_width=4),
    layout.TreeTab(border_focus='#4C7899', border_width=4),
    layout.VerticalTile(border_focus='#4C7899', border_width=4),
    layout.Zoomy(),
]

widget_defaults = dict(
Exemple #20
0
        # mod1 + shift + letter of group = switch to & move focused window to group
        Key([mod, "shift"],
            i.name,
            lazy.window.togroup(i.name, switch_group=True),
            desc="Switch to & move focused window to group {}".format(i.name)),
        # Or, use below if you prefer not to switch to that group.
        # # mod1 + shift + letter of group = move focused window to group
        # Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
        #     desc="move focused window to group {}".format(i.name)),
    ])

layouts = [
    layout.Tile(margin=2),
    layout.Columns(
        border_focus_stack='#d75f5f',
        margin=2,
    ),
    layout.Max(),
    # Try more layouts by unleashing below layouts.
    layout.Stack(num_stacks=2),
    layout.Bsp(margin=2),
    layout.Matrix(margin=2),
    layout.MonadTall(margin=2),
    layout.MonadWide(margin=2),
    layout.RatioTile(margin=2),
    layout.TreeTab(),
    layout.VerticalTile(margin=2),
    layout.Zoomy(),
]

widget_defaults = dict(
Exemple #21
0
    ["#4D7EA8", "#4D7EA8"],
    ["#AFAFAF", "#AFAFAF"]
]  # gray

layout_theme = {
    "border_width": 2,
    "margin": 16,
    "border_focus": "#B0D7FF",
    "border_normal": "1D2330"
}

layouts = [
    # Try more layouts by unleashing below layouts.
    layout.MonadTall(ratio=0.60, **layout_theme),
    layout.Tile(shift_windows=True, **layout_theme),
    layout.Columns(fair=True, **layout_theme),
    layout.Max(**layout_theme),
    layout.Floating(**layout_theme)
]

widget_defaults = dict(
    font='sans',
    fontsize=28,
    padding=10,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        top=bar.Bar(
            [
Exemple #22
0
        Key([mod], key_groups[i], lazy.group[name].toscreen())
    )  # Switch to another group
    keys.append(
        Key([mod, "shift"], key_groups[i], lazy.window.togroup(name))
    )  # Send current window to another group

layout_theme = {
    "border_width": 2,
    "margin": 10,
    "border_focus": "#bf616a",  # colors list cannot come before this. layouts break.
    "border_normal": "#2e3440",
}

layouts = [
    layout.Columns(
        # border_focus_stack='#d75f5f',
        **layout_theme
    ),
    layout.Max(),
    # Try more layouts by unleashing below layouts.
    # layout.Stack(
        # **layou t_theme,
        # num_stacks=2),
    # layout.Bsp(**layout_theme),
    # layout.Matrix(**layout_theme),
    # layout.MonadTall(
    #     change_size=20,
    #     change_ratio=0.05,
    #     **layout_theme,
    # ),
    # layout.MonadWide(**layout_theme),
    # layout.RatioTile(**layout_theme),
Exemple #23
0
            Key([mod, "shift"],
                str(i),
                lazy.window.togroup(name, switch_group=True),
                desc="Switch to & move focused window to group {}".format(name)
                ),
        ])

# ============================================================================
# =============================      LAYOUTS     =============================
# ============================================================================
layouts = [
    layout.Max(name="fullscreen"),
    layout.Columns(name="columns",
                   border_focus=palette_colors["secondary"][0],
                   border_width=3,
                   border_on_single=True,
                   grow_amount=10,
                   fair=False,
                   num_columns=2,
                   margin=3)
    # layout.MonadTall(),
    # layout.Stack(num_stacks=2),
    # layout.Bsp(),
    # layout.Matrix(),
    # layout.MonadWide(),
    # layout.RatioTile(),
    # layout.Tile(),
    # layout.TreeTab(),
    # layout.VerticalTile(),
    # layout.Zoomy(),
]
Exemple #24
0
layouts = [
    layout.MonadTall(margin=16,
                     border_width=2,
                     border_focus="#ff00ff",
                     border_normal="#f4c2c2"),
    layout.MonadWide(margin=16,
                     border_width=2,
                     border_focus="#ff00ff",
                     border_normal="#f4c2c2"),
    layout.Matrix(**layout_theme),
    layout.Bsp(**layout_theme),
    layout.Floating(**layout_theme),
    layout.RatioTile(**layout_theme),
    layout.Max(**layout_theme),
    layout.Columns(**layout_theme),
    layout.Stack(**layout_theme),
    layout.Tile(**layout_theme),
    layout.TreeTab(sections=['FIRST', 'SECOND'],
                   bg_color='#141414',
                   active_bg='#0000ff',
                   inactive_bg='#1e90ff',
                   padding_y=5,
                   section_top=10,
                   panel_width=280),
    layout.VerticalTile(**layout_theme),
    layout.Zoomy(**layout_theme)
]

# COLORS FOR THE BAR
Exemple #25
0
        # mod1 + shift + letter of group = switch to & move focused window to group
        Key(
            [mod, "shift"],
            _group_keys[i],
            lazy.window.togroup(group.name, switch_group=True),
            desc="Switch to & move focused window to group {}".format(
                group.name),
        ),
        # Or, use below if you prefer not to switch to that group.
        # # mod1 + shift + letter of group = move focused window to group
        # Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
        #     desc="move focused window to group {}".format(i.name)),
    ])

layouts = [
    layout.Columns(border_focus_stack=["#d75f5f", "#8f3d3d"], border_width=1),
    layout.Max(),
    # Try more layouts by unleashing below layouts.
    # layout.Stack(num_stacks=2),
    # layout.Bsp(),
    # layout.Matrix(),
    # layout.MonadTall(),
    # layout.MonadWide(),
    # layout.RatioTile(),
    # layout.Tile(),
    # layout.TreeTab(),
    # layout.VerticalTile(),
    # layout.Zoomy(),
]

widget_defaults = dict(
Exemple #26
0
    "margin": 4,
    "border_focus": ac_color,
    "border_normal": bg_color
}

layouts = [
    # Try more layouts by unleashing below layouts.
    layout.MonadTall(ratio=0.65, **layout_defaults),
    # layout.Tile(**layout_defaults),
    # layout.TreeTab(
    #     **layout_defaults
    # ),
    layout.Max(**layout_defaults),
    layout.Floating(),
    # layout.Bsp(**layout_defaults),
    layout.Columns(border_focus_stack=ac_color, **layout_defaults),
    # layout.Stack(num_stacks=2),
    # layout.Matrix(),
    # layout.MonadWide(),
    # layout.RatioTile(),
    # layout.VerticalTile(),
    # layout.Zoomy(**layout_defaults),
]

widget_defaults = dict(
    font='FiraCode Nerd Font',
    fontsize=12,
    padding=0,
    background=bg_color,
    foreground=fg_color,
)
Exemple #27
0
        Key([mod], i.name, lazy.group[i.name].toscreen(),
            desc="Switch to group {}".format(i.name)),

        # mod1 + shift + letter of group = switch to & move focused window to group
        Key([mod, "shift"], i.name, lazy.window.togroup(i.name, switch_group=True),
            desc="Switch to & move focused window to group {}".format(i.name)),
        # Or, use below if you prefer not to switch to that group.
        # # mod1 + shift + letter of group = move focused window to group
        # Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
        #     desc="move focused window to group {}".format(i.name)),
    ])

layouts = [
    layout.Columns(border_focus_stack='#d75f5f',
                   border_focus="#00ffff",
                   margin=3,
                   margin_on_single=0,
                   border_width=1,
                   name='columns'),
    layout.Max(),
    # Try more layouts by unleashing below layout - did't really like any.
    # layout.Stack(num_stacks=2),
    # layout.Bsp(),
    # layout.Matrix(),
    # layout.MonadTall(),
    # layout.MonadWide(),
    # layout.RatioTile(),
    # layout.Tile(),
    # layout.TreeTab(),
    # layout.VerticalTile(),
    # layout.Zoomy(),
]
Exemple #28
0
    keys.extend([
        # mod1 + letter of group = switch to group
        Key([mod], i.name, lazy.group[i.name].toscreen(),
            desc="Switch to group {}".format(i.name)),

        # mod1 + shift + letter of group = switch to & move focused window to group
        Key([mod, "shift"], i.name, lazy.window.togroup(i.name, switch_group=True),
            desc="Switch to & move focused window to group {}".format(i.name)),
        # Or, use below if you prefer not to switch to that group.
        # # mod1 + shift + letter of group = move focused window to group
        # Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
        #     desc="move focused window to group {}".format(i.name)),
    ])

layouts = [
    layout.Columns(border_focus_stack=['#d75f5f', '#8f3d3d'], border_width=4),
    layout.Max(),
    # Try more layouts by unleashing below layouts.
    # layout.Stack(num_stacks=2),
    # layout.Bsp(),
    # layout.Matrix(),
    # layout.MonadTall(),
    # layout.MonadWide(),
    # layout.RatioTile(),
    # layout.Tile(),
    # layout.TreeTab(),
    # layout.VerticalTile(),
    # layout.Zoomy(),
]

widget_defaults = dict(
Exemple #29
0
            },
        foreground=YELLOW, selected_background=YELLOW))),
]

groups = [Group(i) for i in "1234567890"]

for i in groups:
    keys.extend([
        Key("M-%s" % i.name, lazy.group[i.name].toscreen()),
        Key("M-S-%s" % i.name, lazy.window.togroup(i.name)),
    ])

layouts = [
    layout.Max(),
    layout.MonadTall(border_focus=RED, new_at_current=True),
    layout.Columns(border_focus=RED),
    layout.Bsp(border_focus=RED),
]

widget_defaults = dict(
    font=FONT,
    fontsize=FONT_SIZE,
    padding=3,
    foreground=WHITE,
    background=BLACK
)
extension_defaults = dict(
    dmenu_prompt=">",
    dmenu_font=FONT + '-8',
    background=BLACK,
    foreground=GREEN,
Exemple #30
0
            desc="Switch to & move focused window to group {}".format(i.name)),
        # Or, use below if you prefer not to switch to that group.
        # # mod1 + shift + letter of group = move focused window to group
        # Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
        #     desc="move focused window to group {}".format(i.name)),
    ])

layout_conf = {'border_focus': "#a151d3", 'border_width': 3, 'margin': 5}

layouts = [
    layout.MonadTall(**layout_conf),
    layout.Max(**layout_conf),
    # layout.Stack(**layout_conf, num_stacks=3),
    # Try more layouts by unleashing below layouts.
    # layout.Bsp(),
    layout.Columns(**layout_conf, num_columns=3),
    # layout.Matrix(),
    # layout.MonadTall(),
    # layout.MonadWide(),
    # layout.RatioTile(),
    # layout.Tile(),
    # layout.TreeTab(),
    # layout.VerticalTile(),
    # layout.Zoomy(),
]

widget_defaults = dict(
    font='UbuntuMono Nerd Font',
    fontsize=17,
    padding=0,
)