Beispiel #1
0
class SliceConfig:
    auto_fullscreen = True
    main = None
    groups = [
        libqtile.config.Group("a"),
    ]
    layouts = [
        layout.Slice(side='left',
                     width=200,
                     wname='slice',
                     fallback=layout.Stack(num_stacks=1, border_width=0)),
        layout.Slice(side='right',
                     width=200,
                     wname='slice',
                     fallback=layout.Stack(num_stacks=1, border_width=0)),
        layout.Slice(side='top',
                     width=200,
                     wname='slice',
                     fallback=layout.Stack(num_stacks=1, border_width=0)),
        layout.Slice(side='bottom',
                     width=200,
                     wname='slice',
                     fallback=layout.Stack(num_stacks=1, border_width=0)),
    ]
    floating_layout = libqtile.layout.floating.Floating()
    keys = []
    mouse = []
    screens = []
    follow_mouse_focus = False
Beispiel #2
0
class SliceConfig:
    main = None
    groups = [
        libqtile.manager.Group("a"),
    ]
    layouts = [
        layout.Slice('left',
                     200,
                     wname='slice',
                     fallback=layout.Stack(stacks=1, border_width=0)),
        layout.Slice('right',
                     200,
                     wname='slice',
                     fallback=layout.Stack(stacks=1, border_width=0)),
        layout.Slice('top',
                     200,
                     wname='slice',
                     fallback=layout.Stack(stacks=1, border_width=0)),
        layout.Slice('bottom',
                     200,
                     wname='slice',
                     fallback=layout.Stack(stacks=1, border_width=0)),
    ]
    floating_layout = libqtile.layout.floating.Floating()
    keys = []
    mouse = []
    screens = []
    follow_mouse_focus = False
class SliceConfig(Config):
    auto_fullscreen = True
    groups = [
        libqtile.config.Group("a"),
    ]

    layouts = [
        layout.Slice(side='left',
                     width=200,
                     match=Match(title='slice'),
                     fallback=layout.Stack(num_stacks=1, border_width=0)),
        layout.Slice(side='right',
                     width=200,
                     match=Match(title='slice'),
                     fallback=layout.Stack(num_stacks=1, border_width=0)),
        layout.Slice(side='top',
                     width=200,
                     match=Match(title='slice'),
                     fallback=layout.Stack(num_stacks=1, border_width=0)),
        layout.Slice(side='bottom',
                     width=200,
                     match=Match(title='slice'),
                     fallback=layout.Stack(num_stacks=1, border_width=0)),
    ]
    floating_layout = libqtile.resources.default_config.floating_layout
    keys = []
    mouse = []
    screens = []
    follow_mouse_focus = False
Beispiel #4
0
def init_layouts():
    return [
        layout.Max(**layout_theme),
        layout.MonadTall(**layout_theme),
        layout.Stack(stacks=2, **layout_theme),
        layout.RatioTile(**layout_theme),
        layout.Tile(shift_windows=True, **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,
                       **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.Floating(**layout_theme)
    ]
Beispiel #5
0
class MultipleBordersConfig(BareConfig):
    layouts = [
        layout.Stack(
            border_focus=["#000000", "#111111", "#222222", "#333333", "#444444"],
            border_width=5,
        )
    ]
Beispiel #6
0
class MultipleBordersConfig(BareConfig):
    layouts = [
        layout.Stack(
            border_focus=['#000000', '#111111', '#222222', '#333333', '#444444'],
            border_width=5,
        )
    ]
Beispiel #7
0
def init_layouts():
    layouts = [
        layout.xmonad.MonadTall(
            border_normal=BORDER_NORMAL,
            border_focus=BORDER_FOCUS,
            border_width=BORDER_WIDTH,
            ratio=0.60,
            margin=MARGIN,
            single_border_width=2,
        ),
        layout.Max(
            border_normal=BORDER_NORMAL,
            border_focus=BORDER_FOCUS,
            border_width=BORDER_WIDTH,
            margin=MARGIN,
            single_border_width=2,
        ),
        layout.Stack(
            num_stacks=2,
            border_normal=BORDER_NORMAL,
            border_focus=BORDER_FOCUS,
            border_width=BORDER_WIDTH,
            margin=MARGIN,
            single_border_width=2,
        ),
    ]
    return layouts
Beispiel #8
0
class WindowTabsConfig(Config):
    auto_fullscreen = True
    groups = [libqtile.config.Group("a"), libqtile.config.Group("b")]
    layouts = [layout.Stack()]
    floating_layout = libqtile.resources.default_config.floating_layout
    keys = []
    mouse = []
    fake_screens = [
        Screen(
            top=bar.Bar(
                [
                    widget.WindowTabs(),
                ],
                24,
            ),
            bottom=bar.Bar(
                [
                    widget.WindowTabs(selected="!!"),
                ],
                24,
            ),
            x=0,
            y=0,
            width=900,
            height=960,
        ),
    ]
    screens = []
Beispiel #9
0
class StackConfig:
    auto_fullscreen = True
    groups = [
        libqtile.config.Group("a"),
        libqtile.config.Group("b"),
        libqtile.config.Group("c"),
        libqtile.config.Group("d")
    ]
    layouts = [
        layout.Stack(num_stacks=2),
        layout.Stack(num_stacks=1),
    ]
    floating_layout = libqtile.layout.floating.Floating()
    keys = []
    mouse = []
    screens = []
    follow_mouse_focus = False
Beispiel #10
0
class StackConfig(Config):
    auto_fullscreen = True
    groups = [
        libqtile.config.Group("a"),
        libqtile.config.Group("b"),
        libqtile.config.Group("c"),
        libqtile.config.Group("d"),
    ]
    layouts = [
        layout.Stack(num_stacks=2),
        layout.Stack(num_stacks=1),
    ]
    floating_layout = libqtile.resources.default_config.floating_layout
    keys = []
    mouse = []
    screens = []
    follow_mouse_focus = False
Beispiel #11
0
class StackConfig:
    main = None
    groups = [
        libqtile.manager.Group("a"),
        libqtile.manager.Group("b"),
        libqtile.manager.Group("c"),
        libqtile.manager.Group("d")
    ]
    layouts = [
        layout.Stack(stacks=2),
        layout.Stack(stacks=1),
    ]
    floating_layout = libqtile.layout.floating.Floating()
    keys = []
    mouse = []
    screens = []
    follow_mouse_focus = False
Beispiel #12
0
class SelectorConfig:
    main = None
    groups = [
        libqtile.manager.Group("a"),
        libqtile.manager.Group("b"),
        libqtile.manager.Group("c"),
        libqtile.manager.Group("d")
    ]
    layouts = [layout.Max(), layout.Stack()]
    floating_layout = libqtile.layout.floating.Floating()
    keys = []
    mouse = []
    screens = []
Beispiel #13
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),##
    ]
Beispiel #14
0
def layouts():
    return [
        layout.Max(name="[ ]"),
        layout.Stack(num_stacks=1, name="[|]", border_width=4),
        # Try more layouts by unleashing below layouts.
        # layout.Bsp(),
        # layout.Columns(),
        # layout.Matrix(),
        # layout.MonadTall(),
        # layout.MonadWide(),
        # layout.RatioTile(),
        # layout.Tile(),
        # layout.TreeTab(),
        # layout.VerticalTile(),
        # layout.Zoomy(),
    ]
Beispiel #15
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
Beispiel #16
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
Beispiel #17
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
Beispiel #18
0
        layout = "floating"
    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, switch_group=True)),
        # 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)),
    ])

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

floating_layout = layout.Floating(
Beispiel #19
0
    local_bin = os.path.expanduser("~") + "/.local/bin"
    if local_bin not in os.environ["PATH"]:
        os.environ["PATH"] = "{}:{}".format(local_bin, os.environ["PATH"])

    mod = "mod4"
    browser = "google-chrome"
    terminal = "roxterm"
    screenlocker = "i3lock -d"
    hostname = socket.gethostname()
    cursor_warp = False

    keys = init_keys()
    mouse = init_mouse()
    groups = init_groups()
    floating_layout = init_floating_layout()
    layouts = [layout.Max()]
    screens = [Screen(top=init_top_bar())]
    widget_defaults = init_widgets_defaults()

    if DEBUG:
        layouts += [
            floating_layout,
            layout.Zoomy(),
            layout.Tile(),
            layout.Matrix(),
            layout.TreeTab(),
            layout.MonadTall(margin=10),
            layout.RatioTile(),
            layout.Stack()
        ]
Beispiel #20
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

Beispiel #21
0
layout_theme = dict(
    border_width=dpi(2),
    margin=dpi(48),
    border_focus='ffaed0',
    border_normal='202020',
)

layouts = [
    layout.MonadTall(
        align=layout.MonadTall._right,
        **layout_theme,
    ),
    layout.Stack(
        name='single',
        num_stacks=1,
        **layout_theme,
    ),
]

floating_layout = layout.Floating(float_rules=[
    *layout.Floating.default_float_rules,
], )

widget_defaults = dict(
    font='Fira Sans Condensed,',
    fontsize=dpi(13),
    padding=dpi(8),
)

extension_defaults = widget_defaults.copy()
Beispiel #22
0
from libqtile import layout

layout_conf = {'border_focus': '#ffffff', 'border_width': 1, 'margin': 3}

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

floating_layout = layout.Floating(float_rules=[
    # Run the utility of `xprop` to see the wm class and name of an X client.
    {
        'wmclass': 'confirm'
    },
    {
        'wmclass': 'dialog'
    },
    {
        'wmclass': 'download'
    },
    {
Beispiel #23
0
dgroups_key_binder = simple_key_binder(MOD_KEY)

border_args = {
    'border_width': 1,
}

layouts = [
    layout.VerticalTile(name='vtile'),
    layout.Matrix(name='matrix'),
    # layout.Slice('top', 192, name='im', role='irssi',
    #     fallback=layout.Slice('bottom', 256, role='buddy_list',
    #         fallback=layout.Stack(stacks=1))),
    layout.Slice('left', 192, name='gimp',
        fallback=layout.Slice('right', 256,
           fallback=layout.Stack(num_stacks=1, **border_args))),
]

# Override default behavior to support gimp layout
floating_layout = layout.Floating(auto_float_types=[
    'notification',
    'toolbar',
    'splash',
    'dialog',
])

@hook.subscribe.startup
def autostart():
    subprocess.call([os.path.expanduser('~') + '/.config/qtile/autostart.sh'])

Beispiel #24
0
                    lazy.group[name].toscreen()))  # Switch to another group
    keys.append(
        Key([mod, "shift"], keybinding,
            lazy.window.togroup(name)))  # Send current window to another group

layout_theme = {
    "border_width": 2,
    "margin": 12,
    "border_focus": "e1acff",
    "border_normal": "1D2330"
}

layouts = [
    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.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",
Beispiel #25
0
    mod = "mod4"
    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)))
        ]
Beispiel #26
0
keys = [
    KeyChord([], 'Super_L', chain_root),
    KeyChord([], 'Super_R', chain_root),
]

mouse = [
    Drag([mod], "Button1", lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
    Drag([mod], "Button3", lazy.window.set_size_floating(),
         start=lazy.window.get_size()),
    Click([mod], "Button2", lazy.window.bring_to_front())
]

layouts = [
    layout.Max(),
    layout.Stack(border_width=2, num_stacks=2, border_focus=current_style['tetriary']),
    # Try more layouts by unleashing below layouts.
    layout.Bsp(),
    # layout.Columns(),
    # layout.Matrix(),
    layout.MonadTall(border_width=2, margin=5, border_focus=current_style['secondary']),
    layout.MonadWide(border_width=2, margin=10, border_focus=current_style['secondary']),
    # layout.RatioTile(),
    # layout.Tile(),
    # layout.TreeTab(),
    # 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.
Beispiel #27
0
    Group("s",
          layouts=[layout.MonadTall(border_width=1, ratio=0.65),
                   layout.Max()],
          matches=[
              Match(wm_class=[
                  "jetbrains-pycharm-ce", "jetbrains-idea-ce", "dota2"
              ])
          ]),
    Group("d",
          layouts=[
              layout.MonadTall(border_width=1, ratio=0.5),
              layout.Matrix(border_focus='#ff0000')
          ],
          matches=[Match(wm_class=["Skype", "Steam", "discord"])]),
    Group("f",
          layouts=[layout.Stack(num_stacks=2, border_focus='#ff0000')],
          matches=[Match(wm_class=["Clementine", "Deluge"])]),
    Group("z", matches=[Match(wm_class=["exe.Wine"])]),
    Group("x", matches=[Match(wm_class=[""])]),
    Group("c", layouts=[layout.Floating()], matches=[Match(wm_class=["FTL"])]),
    Group("v", matches=[Match(role=["playall"])]),
]

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

    if i.name is not "f":
        # mod1 + shift + letter of group = switch to & move focused window to group
        keys.append(
            Key([mod, "shift"], i.name, lazy.window.togroup(i.name),
Beispiel #28
0
        Key("M-%d" % int(g.name), focus_or_switch(g.name)),
        Key("M-S-%d" % int(g.name), lazy.window.togroup(g.name))
    ])

#layouts

LAYOUT_PARAMS = {
    'border_normal': GRAY,
    'border_focus': WHITE,
    'border_width': 2,
    'margin': 7
}

layouts = [
    layout.Max(),
    layout.Stack(num_stacks=2, **LAYOUT_PARAMS),
    layout.VerticalTile(**LAYOUT_PARAMS),
    layout.Bsp(**LAYOUT_PARAMS),
    layout.TreeTab(),
    layout.MonadTall(**LAYOUT_PARAMS),
    layout.MonadWide(**LAYOUT_PARAMS)
]

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

extension_defaults = widget_defaults.copy()

#bar initialization

main_bar = bar.Bar([
    widget.GroupBox(background=GRAY,
Beispiel #29
0
                height=0.10,
                width=0.20,
            ),
        ]), )

keys.extend([
    Key([mod], 't', lazy.group['scratchpad'].dropdown_toggle('telegram')),
])

layouts = [
    layout.MonadTall(margin=0,
                     border_width=2,
                     border_focus="#66d9ef",
                     border_normal="#000000"),
    layout.Max(),
    layout.Stack(num_stacks=2),
    # Try more layouts by unleashing below layouts.
    # layout.Bsp(),
    # layout.Columns(),
    # layout.Matrix(),
    layout.MonadWide(),
    # layout.RatioTile(),
    # layout.Tile(),
    # layout.TreeTab(),
    # layout.VerticalTile(),
    # layout.Zoomy(),
    layout.Floating(),
]

colors = [
    ["#272822", "#272822"],  # panel background
Beispiel #30
0
            start=lazy.window.get_position()),
        Drag([mod], "Button3", lazy.window.set_size_floating(),
            start=lazy.window.get_size()),
        Click([mod], "Button2", lazy.window.bring_to_front())
    ]

    # Border settings for layouts
    border = dict(
        border_normal='#808080',
        border_width=4,
    )

    # Two basic layouts.
    layouts = [
        # 30in monitor
        layout.Stack(stacks=[40, 40, 20], name='s404020', **border),
        layout.Stack(stacks=[60, 40], name='s6040', **border),
        layout.Stack(stacks=[80, 20], name='s8020', **border),
        layout.Max(),

        # # 23in monitor
        # layout.Stack(stacks=[50, 50], **border),
        # layout.Stack(stacks=[40, 60], **border),
        # layout.Max(),
    ]

    @hook.subscribe.client_new
    def idle_dialogues(window):
        if window.window.get_name() in (
            'NVIDIA X Server Settings',
            'Really quit?',