예제 #1
0
def init_layouts():
    return [
        layout.MonadTall(**layout_theme),
        layout.MonadWide(**layout_theme),
        layout.Max(**layout_theme),
        layout.Floating(**layout_theme),
        layout.Matrix(**layout_theme),
        layout.RatioTile(**layout_theme),
        layout.VerticalTile(**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.Zoomy(**layout_theme),
        layout.Tile(shift_windows=True, **layout_theme)
    ]
예제 #2
0
파일: config.py 프로젝트: rschwalk/dotfiles
def init_layouts():
    return [
        layout.Max(**layout_theme),
        layout.MonadTall(**layout_theme),
        layout.MonadWide(**layout_theme),
        layout.Bsp(**layout_theme),
        #layout.TreeTab(
        #    font = "Noto Sans ",
        #    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.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)
    ]
예제 #3
0
class RatioTileConfig:
    main = None
    groups = [
        libqtile.manager.Group("a"),
        libqtile.manager.Group("b"),
        libqtile.manager.Group("c"),
        libqtile.manager.Group("d")
    ]
    layouts = [
        layout.RatioTile(ratio=.5),
        layout.RatioTile(),
    ]
    floating_layout = libqtile.layout.floating.Floating()
    keys = []
    mouse = []
    screens = []
    follow_mouse_focus = False
예제 #4
0
class RatioTileConfig:
    auto_fullscreen = True
    groups = [
        libqtile.config.Group("a"),
        libqtile.config.Group("b"),
        libqtile.config.Group("c"),
        libqtile.config.Group("d")
    ]
    layouts = [
        layout.RatioTile(ratio=.5),
        layout.RatioTile(),
    ]
    floating_layout = libqtile.layout.floating.Floating()
    keys = []
    mouse = []
    screens = []
    follow_mouse_focus = False
예제 #5
0
class RatioTileConfig(Config):
    auto_fullscreen = True
    groups = [
        libqtile.config.Group("a"),
        libqtile.config.Group("b"),
        libqtile.config.Group("c"),
        libqtile.config.Group("d")
    ]
    layouts = [
        layout.RatioTile(ratio=.5),
        layout.RatioTile(),
    ]
    floating_layout = libqtile.resources.default_config.floating_layout
    keys = []
    mouse = []
    screens = []
    follow_mouse_focus = False
예제 #6
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),##
    ]
예제 #7
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
예제 #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(self):
     """"""
     layouts = [
         layout.Max(),
         layout.Bsp(border_focus=self.theme["border"], border_normal=self.theme["active"], border_width=self.theme["border-width"]),
         # layout.Columns(),
         # layout.Stack(num_stacks=2, border_focus=self.theme["border"]),
         layout.Matrix(border_focus=self.theme["border"], border_normal=self.theme["active"], border_width=self.theme["border-width"]),
         layout.MonadTall(border_focus=self.theme["border"], border_normal=self.theme["active"], border_width=self.theme["border-width"]),
         layout.MonadWide(border_focus=self.theme["border"], border_normal=self.theme["active"], border_width=self.theme["border-width"]),
         layout.Floating(border_focus=self.theme["border"], border_normal=self.theme["active"], border_width=self.theme["border-width"]),
         #layout.TreeTab(active_bg=self.theme["border"], font=self.theme["font-family"], sections=[""]),
         # layout.Zoomy(columnwidth=300, property_small="0.5", property_big="1.5"),
         layout.RatioTile(border_focus=self.theme["border"], border_normal=self.theme["active"], border_width=self.theme["border-width"], fancy=True),
         # layout.Slice(),
         #layout.Tile(border_focus=self.theme["border"], border_width=self.theme["border-width"]),
         # layout.Wmii(),
     ]
     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
     margin=3,
     single_border_width=0,
     single_margin=0,
 ),
 layout.MonadWide(
     border_focus=COLORS.LIGHT_PRIMARY,
     border_normal=COLORS.DARK_PRIMARY,
     border_width=1,
     change_size=4,
     margin=2,
     single_border_width=0,
     single_margin=0,
 ),
 layout.RatioTile(
     border_focus=COLORS.LIGHT_PRIMARY,
     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,
예제 #12
0
    '#b7efcd'
]  # border line color for other tab and odd widgets

layout_theme = {
    "border_focus": colors[3],
    "margin": 2,
    "border_width": 3,
}

layouts = [
    layout.Tile(add_after_last=True, add_on_top=False,
                **layout_theme),  # I want this
    layout.Max(),
    layout.MonadTall(**layout_theme),  # I want this
    layout.MonadWide(**layout_theme),  # I want this
    layout.RatioTile(**layout_theme),  # I want this
    layout.Matrix(**layout_theme),  # I want this
    # layout.Stack(num_stacks=2),
    # layout.Bsp(),
    # layout.Columns(),
    # layout.TreeTab(),
    # layout.VerticalTile(),
    # layout.Zoomy(),
]

widget_defaults = dict(
    font='DejaVu',
    fontsize=12,
    padding=3,
)
extension_defaults = widget_defaults.copy()
예제 #13
0
from libqtile import layout
from libqtile.config import Match
from settings.theme import colors

layouts = [
    layout.Max(),
    layout.MonadTall(margin=3, border_focus=colors['black']),
    layout.MonadWide(margin=3, border_focus=colors['black']),
    layout.RatioTile(border_focus=colors['black'])
]

float_settings = layout.Floating()
예제 #14
0
                widget.Clock(fmt='%a %d %b %I:%M %p'),
            ],
            **bar_defaults), ),
    Screen(top=bar.Bar(widgets=[
        widget.GroupBox(**Widget.groupbox),
        widget.WindowName(),
        widget.CurrentLayout(),
    ],
                       **bar_defaults), )
]

# Layouts
layouts = (
    layout.Tile(ratio=0.5, **layout_defaults),
    layout.Max(**layout_defaults),
    layout.RatioTile(**layout_defaults),
    layout.Matrix(**layout_defaults),
    layout.MonadTall(**layout_defaults),
    layout.Stack(**layout_defaults),
    layout.Zoomy(**layout_defaults),
)

floating_layout = layout.floating.Floating(
    auto_float_types=(
        'notification',
        'toolbar',
        'splash',
        'dialog',
    ),
    float_rules=[
        {
예제 #15
0
    ])

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(
    font='sans',
    fontsize=12,
    padding=3,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        top=bar.Bar(
예제 #16
0
    ])
    layout_style = {
        'margin': 0,
        'border_width': 1,
        'border_normal': '#002B36',
        #'border_focus': '#FF2AA198',
        'border_focus': '#859900',
        'single_border_width': 0,
        'single_margin': 0,
    }

    layouts = [
        layout.MonadTall(**layout_style),
        layout.Max(),
        layout.MonadWide(**layout_style),
        layout.RatioTile(**layout_style),
        layout.VerticalTile(**layout_style),
        layout.Floating(**layout_style),
        #    layout.Stack(num_stacks=2),
        #    layout.Bsp(),
        #    layout.Columns(),
        #    layout.Matrix(),
        #    layout.Tile(),
        #    layout.TreeTab(),
        #    layout.Zoomy(),
    ]

    widget_defaults = dict(
        #foreground='#93A1A1',
        #foreground='#DFD9B6',
        foreground='#DAD4B1',
예제 #17
0
        # 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)),
    ])

gaps_width = 8
layouts = [
    # layout.Stack(num_stacks=2),
    # Try more layouts by unleashing below layouts.
    # layout.Bsp(),
    # layout.Columns(),
    # layout.Matrix(),
    layout.MonadTall(margin=gaps_width, border_focus="#203C2B", single_margin=0),
    layout.MonadWide(margin=gaps_width, border_focus="#203C2B", single_margin=0),
    # layout.Max(),
    layout.RatioTile(margin=int(gaps_width/2), border_focus="#203C2B", single_margin=0),
    # layout.RatioTile(),
    # layout.Tile(),
    # layout.TreeTab(),
    # layout.VerticalTile(),
    # layout.Zoomy(),
]

widget_defaults = dict(
    font='Hasklig',
    fontsize=15,
    padding=3,
)
extension_defaults = widget_defaults.copy()

background_color = "#000000" #111D13
예제 #18
0
                "border_focus": "ff78c5",
                "border_normal": "1e1f28"
                }

layouts = [
    #layout.MonadWide(**layout_theme),
    layout.Bsp(**layout_theme,
                 lower_right = True,
                  fair = False  ),
                   
    #layout.Stack(stacks=2, **layout_theme),
    #layout.Columns(**layout_theme),
    layout.RatioTile(border_width = 2,
                     margin = 0,
                     ratio_increment = 0.2,
                     border_focus ="ff78c5",  
                     border_normal = "1e1f28", 

                      ),
                                               
    #layout.Tile(shift_windows=True,
    #ratio = "0,5",  **layout_theme),
    #layout.VerticalTile(**layout_theme),
    #layout.Matrix(**layout_theme),
    #layout.Zoomy(**layout_theme),
    layout.MonadTall(**layout_theme),
    layout.Max(**layout_theme),
    layout.Stack(num_stacks=2,
                border_focus = "ff78c5",
                border_normal = "1e1f28",
                autosplit = False,
예제 #19
0
layout_theme = init_layout_theme()

layouts = [
    layout.MonadTall(margin=8,
                     border_width=2,
                     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.Max(**layout_theme)
]

# COLORS FOR THE BAR


def init_colors():
    return [
        ["#2F343F", "#2F343F"],  # color 0
        ["#2F343F", "#2F343F"],  # color 1
        ["#c0c5ce", "#c0c5ce"],  # color 2
        ["#fba922", "#fba922"],  # color 3
        ["#3384d0", "#3384d0"],  # color 4
        ["#f3f4f5", "#f3f4f5"],  # color 5
        ["#cd1f3f", "#cd1f3f"],  # color 6
예제 #20
0
class FakeScreenConfig(Config):
    auto_fullscreen = True
    groups = [
        libqtile.config.Group("a"),
        libqtile.config.Group("b"),
        libqtile.config.Group("c"),
        libqtile.config.Group("d")
    ]
    layouts = [
        layout.Max(),
        layout.RatioTile(),
        layout.Tile(),
    ]
    floating_layout = libqtile.resources.default_config.floating_layout
    keys = []
    mouse = []
    fake_screens = [
        Screen(bottom=bar.Bar([
            widget.GroupBox(this_screen_border=CHAM3,
                            borderwidth=1,
                            fontsize=FONTSIZE,
                            padding=1,
                            margin_x=1,
                            margin_y=1),
            widget.AGroupBox(),
            widget.Prompt(),
            widget.Sep(),
            widget.WindowName(fontsize=FONTSIZE, margin_x=6),
            widget.Sep(),
            widget.CPUGraph(**GRAPH_KW),
            widget.MemoryGraph(**GRAPH_KW),
            widget.SwapGraph(foreground='20C020', **GRAPH_KW),
            widget.Sep(),
            widget.Clock(format='%H:%M:%S %d.%manager.%Y',
                         fontsize=FONTSIZE,
                         padding=6),
        ],
                              24,
                              background="#555555"),
               left=bar.Gap(16),
               right=bar.Gap(20),
               x=0,
               y=0,
               width=500,
               height=340),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               bottom=bar.Gap(24),
               left=bar.Gap(12),
               x=500,
               y=0,
               width=300,
               height=380),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               bottom=bar.Gap(16),
               right=bar.Gap(40),
               x=0,
               y=340,
               width=450,
               height=220),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               left=bar.Gap(20),
               right=bar.Gap(24),
               x=450,
               y=380,
               width=350,
               height=220),
    ]
    screens = []
예제 #21
0
     border_width=2,
     change_ratio=0.05,
     change_size=20,
     margin=10,
     max_ratio=0.75,
     min_ratio=0.25,
     min_secondary_size=85,
     new_client_position='after_current',
     ratio=0.5,
     single_border_width=2,
     single_margin=20,
 ),
 layout.RatioTile(
     border_width=2,
     fancy=True,
     margin=([50, 10, 30, 10]),
     ratio=1.618,
     ratio_increment=0.1,
 ),
 layout.Tile(
     add_after_last=False,
     add_on_top=True,
     border_width=2,
     expand=True,
     margin=([50, 10, 30, 10]),
     master_length=1,
     master_match=None,
     ratio=0.618,
     ration_increment=0.05,
     shift_windows=False,
 ),
예제 #22
0
파일: config.py 프로젝트: Asgavar/test
    # mod + letter of group = switch to group
    # a tak dokladniej to 1. znak
    keys.append(Key([mod], i.name[0], lazy.group[i.name].toscreen()))

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

dgroups_key_binder = None
dgroups_app_rules = []

# Layouts
layouts = [
    #layout.Max(),
    #layout.Stack(num_stacks=2),
    #layout.Tile(),
    layout.RatioTile(border_focus="#f5f5f5"),
    #layout.Matrix(),
]

floating_layout = layout.Floating()

# Screens and widget options
screens = [
    Screen(
        bottom=bar.Bar(
            widgets=[
                widget.GroupBox(highlight_method='block', inactive='999999'),
                widget.Prompt(),
                widget.WindowName(),
                widget.Systray(),
                widget.Clock(format='%a %d %b %H:%M %p'),
예제 #23
0
class FakeScreenConfig:
    auto_fullscreen = True
    main = None
    groups = [
        libqtile.config.Group("a"),
        libqtile.config.Group("b"),
        libqtile.config.Group("c"),
        libqtile.config.Group("d")
    ]
    layouts = [
        layout.Max(),
        layout.RatioTile(),
        layout.Tile(),
    ]
    floating_layout = libqtile.layout.floating.Floating()
    keys = []
    mouse = []
    fake_screens = [Screen(
        bottom=bar.Bar(
            [
                widget.GroupBox(this_screen_border=CHAM3,
                                borderwidth=1,
                                fontsize=FONTSIZE,
                                padding=1, margin_x=1, margin_y=1),
                widget.AGroupBox(),
                widget.Prompt(),
                widget.Sep(),
                widget.WindowName(
                    fontsize=FONTSIZE, margin_x=6),
                widget.Sep(),
                widget.CPUGraph(**GRAPH_KW),
                widget.MemoryGraph(**GRAPH_KW),
                widget.SwapGraph(foreground='20C020', **GRAPH_KW),
                widget.Sep(),
                widget.Systray(),
                widget.Sep(),
                widget.Clock(format='%H:%M:%S %d.%m.%Y',
                             fontsize=FONTSIZE, padding=6),
            ],
                    24,
            background="#555555"
        ),
        x=0, y=0, width=600, height=480
    ),
    Screen(
        top=bar.Bar(
            [
                        widget.GroupBox(),
                widget.WindowName(),
                widget.Clock()
            ],
                    30,
        ),
        x=600, y=0, width=300, height=580
    ),
    Screen(
        top=bar.Bar(
            [
                        widget.GroupBox(),
                widget.WindowName(),
                widget.Clock()
            ],
                    30,
        ),
           x=0, y=480, width=500, height=400),
                    Screen(
                        bottom=bar.Bar(
                            [
                        widget.GroupBox(),
                                widget.WindowName(),
                                widget.Clock()
                            ],
                    30,
                        ),
           x=500, y=580, width=400, height=400),
    ]

    screens = fake_screens
예제 #24
0
        ])
    else:
        keys.extend([

            # switch to group
            Key([mod], str(index + 1), lazy.group[grp.name].toscreen()),

            # send to group
            Key([mod, "shift"], str(index + 1), lazy.window.togroup(grp.name)),

            # swap with group
            Key([mod, "shift"], str(index + 1), lazy.group.swap_groups(grp.name))
        ])

layouts = [
    layout.RatioTile(border_width=2, margin=6),
    layout.Stack(stacks=2),
    layout.Tile(ratio=0.25),
]

widget_defaults = dict(
    font='ttf-droid',
    fontsize=14,
    padding=5,
)

default_data = dict(fontsize=12, foreground="FF6600", background="1D1D1D", font="ttf-droid")

screens = [
    Screen(
        bottom=bar.Bar(
예제 #25
0
    keys.append(Key([mod, "shift"], i.name, lazy.window.togroup(i.name)))

fonts = {'font': 'Envy Code R', 'fontsize': 10}
fontcolors = fonts.copy()

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,
)
예제 #26
0
        # 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(border_width=20), # something like Expose
    # layout.Tile(),
    # layout.TreeTab(),
    # layout.VerticalTile(),
    # layout.Zoomy(),
    # layout.Floating2(),
    # layout.Expose(),
]

widget_defaults = dict(
    font='sans',
    fontsize=14,
    padding=3,
)
extension_defaults = widget_defaults.copy()
예제 #27
0
        # 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(
    font='sans',
    fontsize=12,
    padding=3,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
예제 #28
0
# Layouts and layout rules

layout_conf = {
    'border_focus': colors['focus'][0],
    'border_width': 3,
    'margin': 17
}

layouts = [
    layout.MonadTall(**layout_conf),
    layout.Bsp(**layout_conf),
    layout.Max(),
    layout.MonadWide(**layout_conf),
    layout.Matrix(columns=2, **layout_conf),
    layout.RatioTile(**layout_conf),
    layout.Floating(float_rules=[
        *layout.Floating.default_float_rules,
        Match(title='branchdialog'),
        Match(title='pinentry'),
    ],
                    border_focus=colors["color4"][0])
    # layout.Columns(),
    # layout.Tile(),
    # layout.TreeTab(),
    # layout.VerticalTile(),
    # layout.Zoomy(),
]

floating_layout = layout.Floating(
    float_rules=[
예제 #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
layout_default={
    "margin":10,
    "border_normal":colors["*.background"],
    "border_focus":colors["*.color4"],
    "border_width":2
        }
layouts = [
    layout.MonadTall(
        name="monad-tall",
        **layout_default),
    layout.MonadWide(
        name="monad-wide",
        **layout_default),
    layout.RatioTile(
        name="ratio",
        **layout_default),
    layout.Max( name = "max" ),
   ]

# }}}

# BAR {{{

widget_defaults = dict(
    font='Open Sans Condensed Bold',
    fontsize=11,
    padding=3,
)

extension_defaults = widget_defaults.copy()