示例#1
0
def init_layouts():
    return [layout.Max(**layout_theme),
            layout.MonadTall(**layout_theme),
            layout.MonadWide(**layout_theme),
            layout.Bsp(**layout_theme),
            layout.TreeTab(
                font = "Ubuntu",
                fontsize = 10,
                sections = ["FIRST", "SECOND"],
                section_fontsize = 11,
                bg_color = "141414",
                active_bg = "90C435",
                active_fg = "000000",
                inactive_bg = "384323",
                inactive_fg = "a0a0a0",
                padding_y = 5,
                section_top = 10,
                panel_width = 320,
                **layout_theme
                ),
            layout.Slice(side="left", width=192, name="gimp", role="gimp-toolbox",
                fallback=layout.Slice(side="right", width=256, role="gimp-dock",
                fallback=layout.Stack(num_stacks=1, **border_args))),
            #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.Floating(**layout_theme)]
示例#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(**layout_theme),
            layout.Max(**layout_theme),
            layout.TreeTab(
                font = "Ubuntu",
                fontsize = 10,
                sections = ["FIRST", "SECOND"],
                section_fontsize = 11,
                bg_color = "#141414",
                active_bg = "#90C435",
                active_fg = "#000000",
                inactive_bg = "#384323",
                inactive_fg = "#a0a0a0",
                padding_y = 5,
                section_top = 10,
                panel_width = 320,
                **layout_theme
                ),
            layout.Floating(**layout_theme)]
示例#3
0
def init_layouts():
    return [
        layout.MonadTall(**layout_theme),
        layout.TreeTab(**layout_theme),
        layout.Max(**layout_theme),
        layout.Floating(**layout_theme),
    ]
示例#4
0
文件: layouts.py 项目: mwip/.dotfiles
 def init_layouts(self, my_gaps):
     return [
         layout.MonadTall(
             border_width=2,
             single_border_width=2,
             margin=my_gaps,
         ),
         layout.MonadWide(
             border_width=2,
             single_border_width=2,
             margin=my_gaps,
         ),
         layout.TreeTab(),
     ]
示例#5
0
class TreeTabConfig(Config):
    auto_fullscreen = True
    groups = [
        libqtile.config.Group("a"),
        libqtile.config.Group("b"),
        libqtile.config.Group("c"),
        libqtile.config.Group("d")
    ]
    layouts = [
        layout.TreeTab(sections=["Foo", "Bar"]),
    ]
    floating_layout = libqtile.resources.default_config.floating_layout
    keys = []
    mouse = []
    screens = []
    follow_mouse_focus = False
示例#6
0
class TreeTabConfig:
    auto_fullscreen = True
    groups = [
        libqtile.config.Group("a"),
        libqtile.config.Group("b"),
        libqtile.config.Group("c"),
        libqtile.config.Group("d")
    ]
    layouts = [
        layout.TreeTab(sections=["Foo", "Bar"]),
    ]
    floating_layout = libqtile.layout.floating.Floating()
    keys = []
    mouse = []
    screens = []
    follow_mouse_focus = False
示例#7
0
def init_layouts(layout_defaults):
    return [
        layout.Max(**layout_defaults),
        layout.Stack(**layout_defaults, num_stacks=2),
        # Try more layouts by unleashing below layouts.
        # layout.Bsp(**layout_defaults),
        # layout.Columns(**layout_defaults),
        # layout.Matrix(**layout_defaults),
        layout.MonadTall(**layout_defaults),  ##
        # layout.MonadWide(**layout_defaults),
        layout.RatioTile(**layout_defaults),  ##
        # layout.Tile(**layout_defaults),
        layout.TreeTab(**layout_defaults),  ##
        # layout.VerticalTile(**layout_defaults),
        ### layout.Zoomy(**layout_defaults),##
    ]
示例#8
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
示例#9
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
示例#10
0
 def init_layouts(self):
     """
     Returns the layouts variable
     """
     layouts = [
         layout.Max(**self.default),
         layout.MonadTall(**self.default),
         layout.floating.Floating(**self.default),
         layout.Stack(num_stacks=2),
         layout.RatioTile(**self.default),
         layout.TreeTab(
             font="JetBrains Mono",
             fontsize=9,
             sections=["FIRST", "SECOND", "THIRD", "FOURTH"],
             section_fontsize=9,
             border_width=3,
             bg_color="1c1f24",
             active_bg="c678dd",
             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
         ),
         # layout.Stack(num_stacks=2),
         # Try more layouts by unleashing below layouts.
         # layout.Bsp(),
         # layout.Columns(),
         # layout.Matrix(),
         # layout.MonadWide(**self.default),
         # layout.RatioTile(),
         # layout.Tile(),
         # layout.VerticalTile(),
         # layout.Zoomy(),
     ]
     return layouts
示例#11
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)
    ]
示例#12
0
    layout.Stack(stacks=2, **layout_theme),
    layout.Columns(**layout_theme),
    #layout.RatioTile(**layout_theme),
    #layout.VerticalTile(**layout_theme),
    #layout.Matrix(**layout_theme),
    #layout.Zoomy(**layout_theme),
    layout.MonadTall(**layout_theme),
    layout.Max(**layout_theme),
    layout.Tile(shift_windows=True, **layout_theme),
    layout.Stack(num_stacks=2),
    layout.TreeTab(font="Inconsolata Nerd Font",
                   fontsize=13,
                   sections=["FIRST", "SECOND"],
                   section_fontsize=15,
                   bg_color="141414",
                   active_bg="90C435",
                   active_fg="000000",
                   inactive_bg="384323",
                   inactive_fg="a0a0a0",
                   padding_y=10,
                   section_top=15,
                   panel_width=320),
    layout.Floating(**layout_theme)
]

widget_defaults = dict(
    font='Inconsolata Nerd Font',
    fontsize=16,
    padding=10,
)
extension_defaults = widget_defaults.copy()
示例#13
0
    'border_focus': '#999999',
    'border_normal': '#000000',
}

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

# }}}
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#                                    Widgets
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# {{{

widget_defaults = dict(
    font='victor mono',
    fontsize=12,
    padding=3,
)
示例#14
0
borders = {
    'border_normal': '#ffffff',
    'border_focus': '#FFBF00',
    'border_width': 2,
    'margin': 1,
}

layouts = [
    layout.Tile(ratio=0.33, **borders),
    layout.Max(),
    layout.RatioTile(**borders),
    layout.MonadTall(**borders),
    layout.Stack(num_stacks=2, **borders),
    layout.TreeTab(active_bg="#A59461",
                   active_fg="#000000",
                   inactive_bg="#000000",
                   sections=['Files'],
                   **fontcolors),
    #    layout.Float(),
]

widget_defaults = dict(
    font='Envy CodeR',
    fontsize=12,
    padding=2,
)

screens = [
    Screen(
        top=bar.Bar(
            [
示例#15
0
                'border_normal': colors['gray']
                }

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

floating_layout = layout.Floating(float_rules=[
    # Run the utility of `xprop` to see the wm class and name of an X client.
    *layout.Floating.default_float_rules,
#    {'wmclass': 'confirm'},
#    {'wmclass': 'dialog'},
#    {'wmclass': 'download'},
#    {'wmclass': 'error'},
#    {'wmclass': 'file_progress'},
#    {'wmclass': 'notification'},
#    {'wmclass': 'splash'},
#    {'wmclass': 'toolbar'},
示例#16
0
     border_width=6,
     single_border_width=2,
     margin=extension_defaults.layout_margin,
     border_normal=extension_defaults.border_normal,
     border_focus=extension_defaults.border_focus,
 ),
 layout.MonadWide(
     name='GapsWide',
     new_at_current=True,
     border_width=6,
     single_border_width=2,
     margin=extension_defaults.layout_margin,
     border_normal=extension_defaults.border_normal,
     border_focus=extension_defaults.border_focus,
 ),
 layout.TreeTab(name='Max'),
 layout.MonadTall(
     name='Tall',
     new_at_current=True,
     border_width=6,
     single_border_width=2,
     border_normal=extension_defaults.border_normal,
     border_focus=extension_defaults.border_focus,
 ),
 layout.MonadWide(
     name='Wide',
     new_at_current=True,
     border_width=6,
     single_border_width=2,
     border_normal=extension_defaults.border_normal,
     border_focus=extension_defaults.border_focus,
示例#17
0
    "border_normal": "fafafa",
    "font": "FiraCode Nerd Font",
    "ratio": 0.65,
    "new_client_position": "after_current",
}

layouts = [
    # layout.Bsp(**layout_theme, fair=False),
    CustomBsp(**layout_theme, fair=False),
    layout.Max(**layout_theme),
    layout.TreeTab(
        **layout_theme,
        active_bg=colors[1],
        active_fg=colors[0],
        bg_color=colors[1],
        fontsize=16,
        inactive_bg=colors[1],
        inactive_fg=colors[0],
        sections=["", "", ""],
        section_fontsize=18,
        section_fg=colors[0],
    ),
    layout.MonadTall(**layout_theme),
    layout.MonadWide(**layout_theme),
    layout.Floating(float_rules=[
        Match(wm_type='utility'),
        Match(wm_type='notification'),
        Match(wm_type='toolbar'),
        Match(wm_type='splash'),
        Match(wm_type='dialog'),
        Match(wm_class='file_progress'),
        Match(wm_class='confirm'),
示例#18
0
    #    layout.Stack(num_stacks=2),
    # Try more layouts by unleashing below layouts.
    layout.Bsp(border_width=2,
               border_focus=theme.bg_active,
               border_normal=theme.bg,
               margin=theme.margin),
    layout.Max(),

    #     layout.Columns(),
    # layout.Matrix(),
    layout.MonadTall(),
    layout.MonadWide(),
    #     layout.RatioTile(),
    # layout.Tile(),
    layout.TreeTab(border_width=0,
                   vspace=0,
                   active_fg="000000",
                   active_bg="ffffff"),
    # layout.VerticalTile(),
    #     layout.Zoomy(columnwidth=500),
]

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

FONT_SIZE = 12

screens = [
示例#19
0
}

layouts = [
    #layout.Tile(shift_windows=True, **layout_theme),
    # layout.VerticalTile(**layout_theme),
    layout.MonadTall(**layout_theme),
    layout.Max(**layout_theme),
    layout.TreeTab(font="Cantarell",
                   fontsize=10,
                   sections=["FIRST", "SECOND", "THIRD", "FOURTH"],
                   section_fontsize=10,
                   border_width=2,
                   bg_color=colors['color0'],
                   active_bg=colors['color5'],
                   active_fg=colors['color0'],
                   inactive_bg=colors['color0'],
                   inactive_fg=colors['color7'],
                   padding_left=0,
                   padding_x=0,
                   padding_y=5,
                   section_top=10,
                   section_bottom=20,
                   level_shift=8,
                   vspace=3,
                   panel_width=200),
    layout.Floating(**layout_theme)
]

##### DEFAULT WIDGET SETTINGS #####
widget_defaults = dict(font="Inconsolata Bold",
                       fontsize=15,
                       padding=3,
示例#20
0
    #layout.Stack(stacks=2, **layout_theme),
    #layout.Columns(**layout_theme),
    #layout.RatioTile(**layout_theme),
    #layout.VerticalTile(**layout_theme),
    #layout.Matrix(**layout_theme),
    #layout.Zoomy(**layout_theme),
    layout.MonadTall(**layout_theme),
    layout.Max(**layout_theme),
    layout.Tile(shift_windows=True, **layout_theme),
    layout.Stack(num_stacks=2),
    layout.TreeTab(font="Ubuntu",
                   fontsize=10,
                   sections=["FIRST", "SECOND"],
                   section_fontsize=11,
                   bg_color="141414",
                   active_bg="90C435",
                   active_fg="000000",
                   inactive_bg="384323",
                   inactive_fg="a0a0a0",
                   padding_y=5,
                   section_top=10,
                   panel_width=320),
    layout.Floating(**layout_theme)
]

##### COLORS #####
colors = [
    ["#282a36", "#282a36"],  # panel background
    ["#434758", "#434758"],  # background for current screen tab
    ["#ffffff", "#ffffff"],  # font color for group names
    ["#ff5555", "#ff5555"],  # border line color for current tab
    ["#8d62a9", "#8d62a9"],  # border line color for other tab and odd widgets
示例#21
0
from libqtile import layout

layout_theme = {
    "border_width": 1,
    "margin": 5,
    "border_focus": colors.get('yellow')[0],
    "border_normal": "777777"
}

layouts = [
    layout.Columns(**layout_theme),
    layout.Max(),
    layout.MonadTall(**layout_theme),
    layout.TreeTab(panel_width=80,
                   bg_color=colors.get('black')[0],
                   active_bg=colors.get('yellow')[0],
                   inactive_bg=colors.get('black')[1],
                   sections=["Searches"]),
    # Try more layouts by unleashing below layouts.
    # layout.Stack(num_stacks=2),
    # layout.Bsp(),
    # layout.Matrix(),
    # layout.MonadWide(),
    # layout.RatioTile(),
    # layout.Tile(),
    # layout.VerticalTile(),
    # layout.Zoomy(),
]

floating_layout = layout.Floating(float_rules=[
    # Run the utility of `xprop` to see the wm class and name of an X client.
示例#22
0
from libqtile import layout

defaults = dict(border_focus='#00ffff',
                border_width=3,
                margin=10)
layouts = [layout.MonadTall(**defaults),
           layout.TreeTab(**defaults),
           layout.Matrix(**defaults),
           layout.Max()]

示例#23
0
 #       top/bottom of the main window
 layout.MonadWide(
     border_normal=BORDER_NORMAL,
     border_focus=BORDER_FOCUS,
     border_width=BORDER_WIDTH,
     margin=MARGIN,
     ratio=0.9,
 ),
 # XXX : Good for browser style flipping between windows when working on
 #       large coding projects (beats constant buffer/tab swaps in Vim!)
 layout.TreeTab(
     inactive_fg=COLS["light_0"],
     inactive_bg=BORDER_NORMAL,
     active_bg=COLS["light_3"],
     active_fg=BORDER_NORMAL,
     sections=["    .: Windows :."],
     # Want a consistant font w. the terminal here
     foreground=FONT_PARAMS["foreground"],
     fontsize=FONT_PARAMS["fontsize"],
     font="ProFontWindows Nerd Font Mono Book",
 ),
 # XXX : Emulate Wmii tiling: each new window adds to the focused
 #       column. Moving a window "out" of the current colmun creates
 #       a new column.
 layout.Wmii(
     border_normal=BORDER_NORMAL,
     border_focus=BORDER_FOCUS,
     border_width=BORDER_WIDTH,
     margin=MARGIN,
 ),
 # XXX : A simple grid fill of the screen aiming for square number tilings
示例#24
0
 # layout.Stack(num_stacks=2),
 #layout.Columns(margin=7, border_width=4, border_focus="#ffffff", border_normal="#4c566a", ),
 # layout.Matrix(),
 # layout.RatioTile(margin=7)
 # layout.Tile(margin=7, border_width=3, border_focus="#ffffff", border_normal="#4c566a", new_client_position='top', ratio=0.55),
 # layout.VerticalTile(),
 #layout.Zoomy(
 #   margin=7,
 # columnwidth=100,
 #),
 layout.TreeTab(active_bg='ffffff',
                active_fg='000000',
                bg_color='293136',
                font='novamono for powerline',
                fontsize=13,
                panel_width=130,
                inactive_bg='a1acff',
                inactive_fg='000000',
                sections=['Qtile'],
                section_fontsize=13,
                section_fg='ffffff',
                section_left=10),
 layout.MonadTall(margin=15,
                  border_width=3,
                  border_focus="#bc7cf7",
                  border_normal="#4c566a",
                  new_client_position='after current',
                  align=1),
 #new_at_current=True, align=1),
 #layout.MonadWide(margin=15, border_width=3, border_focus="#bc7cf7", border_normal="#4c566a"),
 #layout.MonadTall(**layout_theme, new_client_position='after current', align=1),
 #layout.Bsp      (margin=10, border_width=3, border_focus="#bc7cf7", border_normal="#4c566a", fair=True),
示例#25
0
    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


def init_colors():
    return [
        ["#2F343F", "#2F343F"],  # color 0
        ["#2F343F", "#2F343F"],  # color 1
        ["#c0c5ce", "#c0c5ce"],  # color 2
示例#26
0
    #layout.Matrix(**layout_theme),
    #layout.Zoomy(**layout_theme),
    layout.MonadTall(**layout_theme),
    layout.Max(**layout_theme),
    layout.Stack(num_stacks=2),
    layout.RatioTile(**layout_theme),
    layout.TreeTab(
         font = "Fira Code",
         fontsize = 10,
         sections = ["FIRST", "SECOND", "THIRD", "FOURTH"],
         section_fontsize = 10,
         border_width = 2,
         bg_color = "1c1f24",
         active_bg = "c678dd",
         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
         ),
    layout.Floating(**layout_theme)
]

colors = [["#282c34", "#282c34"], # panel background
          ["#3d3f4b", "#434758"], # background for current screen tab
          ["#ffffff", "#ffffff"], # font color for group names
示例#27
0
        # 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(
    font='sans',
    fontsize=12,
    padding=3,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        bottom=bar.Bar(
            [
示例#28
0
                     border_focus="#5e81ac",
                     border_normal="#4c566a"),
    layout.MonadWide(margin=8,
                     border_width=2,
                     border_focus="#5e81ac",
                     border_normal="#4c566a"),
    layout.Matrix(**layout_theme),
    layout.Bsp(**layout_theme),
    layout.Floating(**layout_theme),
    layout.RatioTile(**layout_theme),
    layout.TreeTab(font="Mono",
                   fontsize=12,
                   panel_width=175,
                   bg_color="#1c1b1c",
                   active_bg="#606060",
                   inactive_bg="#404040",
                   border_width=2,
                   padding_left=6,
                   padding_x=6,
                   padding_y=2,
                   vspace=2),
    layout.Max(**layout_theme)
]

# COLORS FOR THE BAR


def init_colors():
    return [
        ["#62FF00", "#62FF00"],  # color 0
        ["#2C7873", "#2C7873"],  # color 1
示例#29
0
    lock = "i3lock -d -c000000"
    term = "gnome-terminal"

    colors = init_colors()
    keys = init_keys()
    mouse = init_mouse()
    groups = init_groups()
    floating_layout = init_floating_layout()
    layouts = init_layouts()
    screens = init_screens()
    widget_defaults = init_widgets_defaults()

    if DEBUG:
        layouts += [
            layout.Stack(),
            layout.Zoomy(),
            layout.Matrix(),
            layout.TreeTab(),
            layout.MonadTall(),
            layout.RatioTile(),
            layout.Slice('left',
                         192,
                         name='slice-test',
                         role='gnome-terminal',
                         fallback=layout.Slice(
                             'right',
                             256,
                             role='gimp-dock',
                             fallback=layout.Stack(stacks=1)))
        ]
示例#30
0
        border_normal=COLORS.DARK_PRIMARY,
        border_width=1,
        margin=1,
    ),
    layout.TreeTab(
        active_bg=COLORS.LIGHT_PRIMARY,
        active_fg=COLORS.DARK_FONT,
        bg_color=COLORS.BACKGROUND + f".{widget_trans + 1}",
        border_width=1,
        inactive_bg=COLORS.DARK_PRIMARY,
        inactive_fg=COLORS.LIGHT_FONT,
        level_shift=4,
        margin_y=18,
        padding_left=0,
        padding_y=9,
        pannel_width=199,
        previous_on_rm=True,
        sections=["Main", "Extra"],
        section_bottom=9,
        section_fg=COLORS.BACKGROUND,
        section_fontsize=14,
        section_left=19,
        section_padding=19,
        section_top=19,
        urgent_bg=COLORS.URGENT,
        urgent_fg=COLORS.LIGHT_FONT,
        vspace=4,
    ),
]

floating_layout = layout.Floating(
    float_rules=floating_rules,