Ejemplo n.º 1
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
Ejemplo n.º 2
0
def init_layouts():
    return [  #layout.MonadWide(**layout_theme),
        #layout.Bsp(**layout_theme),
        #layout.Stack(stacks=2, **layout_theme),
        #layout.Columns(**layout_theme),
        #layout.RatioTile(**layout_theme),
        #layout.VerticalTile(**layout_theme),
        #layout.Tile(shift_windows=True, **layout_theme),
        layout.Matrix(**layout_theme),
        #layout.Zoomy(**layout_theme),
        layout.MonadTall(max_ratio=0.70, ratio=0.70, **layout_theme),
        #layout.Max(**layout_theme),
        layout.TreeTab(sections=["Tabs"],
                       section_fontsize=15,
                       bg_color=colors[0],
                       active_bg=colors[7],
                       active_fg=colors[0],
                       inactive_bg=colors[0],
                       inactive_fg=colors[7],
                       padding_y=5,
                       panel_width=250,
                       **layout_theme),
        layout.Floating(**layout_theme)
    ]
Ejemplo n.º 3
0
                  change_size=10,
                  **window_defaults),
 layout.MonadWide(ratio=0.5,
                  min_ratio=0.05,
                  max_ratio=0.95,
                  change_ratio=0.02,
                  change_size=10,
                  **window_defaults),
 layout.Tile(add_after_last=True,
             ratio=0.55,
             ratio_increment=0.02,
             shift_windows=True,
             **window_defaults),
 # layout.Bsp(grow_amount=0.02, ratio=1.6, lower_right=False,
 #            **window_defaults),
 layout.Matrix(columns=2, margin=0, name='matrix2', **window_defaults),
 layout.Matrix(columns=3, margin=0, name='matrix3', **window_defaults),
 layout.TreeTab(level_shift=4,
                panel_width=250,
                section_fontsize=widget_defaults['fontsize'],
                fontsize=widget_defaults['fontsize'],
                previous_on_rm=True,
                section=['Default'],
                border_width=window_defaults.get('border_width', 1),
                margin_left=4,
                margin_y=4,
                padding_left=4,
                padding_x=4,
                padding_y=2,
                vspace=2,
                section_bottom=4,
Ejemplo n.º 4
0
 def matrix_layout(self, group):
     group.layouts = [
         layout.Matrix(colums=3, **self.base_theme(1, 2)),
         layout.Max(**self.base_theme(1, 2)),
     ]
Ejemplo n.º 5
0
		Key([KeyboardKey.SUPER.value, KeyboardKey.SHIFT.value], i.name, lazy.window.togroup(i.name) , lazy.group[i.name].toscreen()),
	])

# LAYOUT

default_layout_config = dict(
	margin = 6,
	border_width = 3,
	border_focus = "#5e81ac",
	border_normal = "#4c566a"
)

layouts = [
	layout.MonadTall(single_border_width = 0, ratio = 0.6, single_margin = 0, **default_layout_config),
	layout.MonadWide(**default_layout_config),
	layout.Matrix(**default_layout_config),
	layout.Bsp(**default_layout_config),
	layout.Floating(**default_layout_config),
	layout.RatioTile(**default_layout_config),
	layout.Max(margin = 0, border_width = 0)
]

# COLORS FOR THE BAR

def init_colors():
	return [["#222222", "#222222"], # color 0
			["#222222", "#222222"], # color 1 (bar color)
			["#aaaaaa", "#aaaaaa"], # color 2
			["#fba922", "#fba922"], # color 3 (yellow)
			["#3366cc", "#3366cc"], # color 4 (blue)
			["#f3f4f5", "#f3f4f5"], # color 5
Ejemplo n.º 6
0
groups = [Group(i) for i in "1234567890"]

for i in groups:
    keys.extend([
        # mod1 + letter of group = switch to group
        Key([mod], i.name, lazy.group[i.name].toscreen()),

        # mod1 + shift + letter of group = switch to & move focused window to group
        Key([mod, "shift"], i.name, lazy.window.togroup(i.name)),
    ])

cnf = [("border_focus", "#00ff00", "Border colour for the focused window."),
       ("border_width", 3, "Border width.")]

layouts = [
    layout.Matrix(columns=4, config=cnf)
    #layout.Stack(num_stacks=2)
]

widget_defaults = dict(
    font='sans',
    fontsize=12,
    padding=3,
)

screens = [
    Screen(
        #bottom=bar.Bar(
        #    [
        #        widget.GroupBox(),
        #        widget.Prompt(),