예제 #1
0
if __name__ in ["config", "__main__"]:
    if HOME + ".local/bin" not in os.environ["PATH"]:
        os.environ["PATH"] = HOME + ".local/bin:{}".format(os.environ["PATH"])

    mod = "mod4"
    browser = "firefox"
    terminal = "xfce4-terminal"
    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()), Screen(top=init_top_bar())]
    widget_defaults = init_widgets_defaults()

    if DEBUG:
        layouts += [
            floating_layout,
            layout.Stack(),
            layout.Zoomy(),
            layout.Matrix(),
            layout.TreeTab(),
            layout.MonadTall(),
            layout.RatioTile(),
            layout.Slice('left',
                         192,
                         name='slice-test',
예제 #2
0
            **bar_defaults), ),
    Screen(
        top=bar.Bar(
            widgets=[
                widget.GroupBox(**Widget.groupbox),
                widget.WindowName(),
                widget.CurrentLayout(),
                #  Widget.Battery(),
            ],
            **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',
),
                                           **layout_defaults)
예제 #3
0
            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(),
]

colors = [
    ['#022b3a', '#022b3a'],  # 0, Gunmetal
예제 #4
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"),
               left=bar.Gap(16),
               right=bar.Gap(20),
               x=0,
               y=0,
               width=600,
               height=480),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               bottom=bar.Gap(24),
               left=bar.Gap(12),
               x=600,
               y=0,
               width=300,
               height=580),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               bottom=bar.Gap(16),
               right=bar.Gap(40),
               x=0,
               y=480,
               width=500,
               height=400),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               left=bar.Gap(20),
               right=bar.Gap(24),
               x=500,
               y=580,
               width=400,
               height=400),
    ]
    screens = []
예제 #5
0
    Key([], "XF86AudioRaiseVolume",
        lazy.spawn("amixer -D pulse sset Master 10%+")),
]

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

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)),
    ])

layouts = [layout.Max(), layout.Stack(num_stacks=2)]

widget_defaults = dict(
    font='mono',
    fontsize=14,
    padding=1,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        bottom=bar.Bar(
            [
                widget.GroupBox(),
                widget.Prompt(),
                widget.WindowName(),
예제 #6
0
	return lsMultiply(hls, 1.0, 1.5)

# Define layout color settings
layout_color = dict(
	border_focus  = toHexColor(fade(screenColor(0))),
	border_normal = toHexColor(fade(fade(white))),
	border_width  = 1,
)

# Define layouts
layouts = [
	layout.MonadTall(name="Tall",    **layout_color),
	layout.Matrix(   name="Matrix",  **layout_color),
	layout.Wmii(     name="Stack",   **layout_color),
	layout.Zoomy(    name="Zoomy",   **layout_color),
	layout.Max(      name="Full",    **layout_color),
]

def groupColors(screen, focus, windows, urgents):
	if urgents:           return white,       (0, 0.6, 0)
	if screen and focus:  return white,       screenColor(screen.index)
	if screen:            return fade(white), fade(screenColor(screen.index))
	if windows and focus: return black,       (0.0, 0.6, 0.0)
	if windows:           return black,       fade((0.0, 0.6, 0.0))
	return (0.0, 0.7, 0.0), (0.0, 0.2, 0.0)

def formatGroup(widget, group, qtile):
	screen = widget.bar.screen
	focus = qtile.currentScreen == screen
	urgents = filter(lambda x: x.urgent, group.windows)
	fg, bg = groupColors(group.screen, focus, len(group.windows), 0)
예제 #7
0
import color_themes
theme_colors = color_themes.solarized()

layout_theme = {
        "border_width": 1,
        "margin": 5,
        "border_focus": theme_colors["r"],
        "border_normal": theme_colors["g"],
        }

#arrays for group parameters
groups = [
    Group("a", label="term", spawn=terminal),
    Group("s", label="media", spawn=browser),
    Group("d", label="social", spawn="discord"),
    Group("f", label="misc", layouts=[layout.Floating(**layout_theme), layout.Max(**layout_theme)])
    ]

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

        # mod1 + shift + letter of group = switch to & move focused window to group
        Key([mod, "shift"], group.name, lazy.window.togroup(group.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)),
    ])
# scratchpad dropdown menu thing
groups.extend([
예제 #8
0
from libqtile.config import Group, Match
from libqtile import layout
import re
my_groups = [
    Group("SYS",
          layouts=[layout.Tile(), ]
          ),

    Group("WWW",
          layouts=[layout.Tile()],
          matches=[Match(wm_class=["firefox"])]
          ),
    Group("DEV",
          layouts=[layout.Tile(), layout.Max()],
          matches=[Match(wm_class="Code", wm_instance_class="code")]
          ),
    Group("DOC",
          layouts=[layout.Tile()],
          ),
    Group("VID",
          layouts=[layout.Tile()],
          ),
    Group("MUS",
          layouts=[layout.Tile()],
          ),
    Group("VBOX",
          layouts=[layout.Tile()],
          ),
    Group("OFC",
          layouts=[layout.Tile()],
          ),
예제 #9
0
        Key([mod], str(i), lazy.group[name].toscreen()
            ),  # mod1 + letter of group = switch to group
        Key(
            [mod, "shift"], str(i), lazy.window.togroup(name)
        ),  # mod1 + shift + letter of group = switch to & move focused window to group
    ])

layout_conf = {
    'border_width': 1,
    'margin': 3,
    'border_focus': colors['primary'][0],
    'border_normal': colors['dark2'][0],
}

layouts = [
    layout.Max(**layout_conf),
    layout.Stack(num_stacks=2, **layout_conf),
    layout.MonadTall(**layout_conf),
    layout.MonadWide(**layout_conf),
    layout.Matrix(columns=2, **layout_conf),
    layout.Floating(**layout_conf),
]


# Set cofigurations of widgets
# Base configuration
def w_base_color(fg='light', bg='dark'):
    return {'foreground': colors[fg], 'background': colors[bg]}


# Conf of object of widgets
예제 #10
0
from libqtile import layout
layouts = [layout.Max(), layout.MonadTall(), layout.Floating()]


def init_layouts():
    return layouts
예제 #11
0
    ]), )

keys.extend([
    Key([], 'F12', lazy.group['scratchpad'].dropdown_toggle("term")),
])

layouts = [
    layout.MonadTall(
        margin=5,
        border_width=2,
        # revert to default so the layout icon can work
        # name = "[]=",
        border_focus="cc241d",
        border_normal="#282828"),
    layout.Max(
        # name = "[M]"
    ),
    # layout.Stack(num_stacks=2),
    # Try more layouts by unleashing below layouts.
    # layout.Bsp(),
    # layout.Columns(),
    # layout.Matrix(),
    layout.MonadWide(
        # name = "TTT"
    ),
    # layout.RatioTile(),
    layout.Tile(
        # name = 'floating'
    ),
    # layout.TreeTab(),
    # layout.VerticalTile(),
예제 #12
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)),
    ])

lColors = {
    "border_focus": "cc241d",
    "border_normal": "3c3836",
    "border_width": 3,
    "margin": 5,
}

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

widget_defaults = dict(
    font="Ubuntu Regular",
예제 #13
0
        # Key([mod, "shift"], i.name, lazy.window.togroup(i.name)),
        # MOVE WINDOW TO SELECTED WORKSPACE 1-10 AND FOLLOW MOVED WINDOW TO WORKSPACE
        Key([mod, "shift"], i.name, lazy.window.togroup(i.name), lazy.group[i.name].toscreen()),
    ])

layouts = [
    layout.Tile(border_width=2, border_focus="#5e81ac", border_normal="#4c566a", name="侀 Tile"),
    layout.MonadWide(margin=8, border_width=2, border_focus="#5e81ac", border_normal="#4c566a", name="⬓ Wide"),
    # layout.Matrix(**layout_theme),
    # layout.Bsp(**layout_theme),
    #  layout.Floating(margin=5, border_width=2, border_focus="#5e81ac", border_normal="#4c566a", name=" Float"),
    layout.RatioTile(margin=5, border_width=2, border_focus="#5e81ac", border_normal="#4c566a", name="全 Bsp"),
    layout.Zoomy(name=" Zoomy", columnwidth=600),
    layout.TreeTab(name=" Tree"),
    #    layout.Slice(**layout_theme),
    layout.Max(margin=5, border_width=2, border_focus="#5e81ac", border_normal="#4c566a", name=" Max"),
    # layout.VerticalTile(border_focus="#5e81ac", border_normal="#4c566a", name="VT"),
]


# 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
            ["#62FF00", "#62FF00"],  # color 7
예제 #14
0
    """
    ➜ xrandr --listmonitors|head -1
    Monitors: 2
    """
    output = subprocess.run(["xrandr --listmonitors|head -1"],
                            shell=True,
                            capture_output=True).stdout.decode("utf-8")
    return int(output.split(":")[1].strip())


def is_laptop() -> bool:
    return os.path.isdir("/proc/acpi/button/lid")


MONAD_TALL_LAYOUT = MyLayout(layout.MonadTall(**_border_colors), 0)
MAX_LAYOUT = MyLayout(layout.Max(), 1)
TREE_TAB_LAYOUT = MyLayout(layout.TreeTab(), 2)
COL_LAYOUT = MyLayout(layout.Columns(**_border_colors), 3)

NUM_SCREENS = get_num_screens()
IS_LAPTOP = is_laptop()

LEFT_SCREEN_IDX = 1
RIGHT_SCREEN_IDX = 0

PREV_TOGGLE_LAYOUTS: Dict[int, int] = {}


def move_to_next_screen(qtile, direction=1):
    if len(qtile.screens) == 1:
        return
예제 #15
0
for i, (name, kwargs) in enumerate(group_names, 1):
    keys.append(Key([mod], str(i),
                    lazy.group[name].toscreen()))  # Switch to another group
    keys.append(
        Key([mod, "shift"], str(i),
            lazy.window.togroup(name)))  # Send current window to another group

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

layouts = [
    layout.Max(float_rules=[dict(wmclass="android-studio")]),
    layout.Floating(**layout_theme),
    layout.Stack(num_stacks=2, margin=10),
    # 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(),
]
예제 #16
0
    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)),
    ])

layouts = [
    layout.MonadTall(name="Tile",
                     margin=10,
                     border_focus='#81a2be',
                     border_normal='#1d1f21',
                     single_border_width=0,
                     single_margin=0),
    layout.Max(name="Full")
]

widget_defaults = dict(
    font='Terminus',
    fontsize=14,
    padding=3,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(top=bar.Bar(
        [
            widget.GroupBox(inactive='969896',
                            active='c5c8c6',
                            this_current_screen_border='81a2be',
예제 #17
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 = []
예제 #18
0
        f'alacritty --config-file {home}/.config/alacritty/alacritty-cava.yml'
    })
]

groups = [Group(name, **kwargs) for name, kwargs in group_names]

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

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

layouts = [layout.Max(), layout.Bsp(fair=False)]

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

screens = [
    Screen(bottom=bar.Bar([
        widget.GroupBox(),
        widget.Prompt(),
        widget.Spacer(),
        widget.Systray(),
        widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
예제 #19
0
    Group('6'),
    Group('7'),
    Group('8'),
    Group('9'),
    Group('0'),
]

for i in groups:
    keys.append(Key([MODKEY], i.name, lazy.group[i.name].toscreen()))
    keys.append(Key([MODKEY, SHIFT], i.name, lazy.window.togroup(i.name)))

# Layouts
layouts = [
    MonadTall(name='Tall', **layout_defaults),
    VerticalTile(name='VerticalTile', **layout_defaults),
    layout.Max(name='Full'),
]

floating_layout = layout.Floating(**floating_layout_defaults)

# Screens and widget options
screens = [
    Screen(
        top=bar.Bar(widgets=[
            widget.WindowName(padding=6),
            widget.TextBox('Cpu:'),
            widget.CPUGraph(**widget_graph_defaults),
            widget.TextBox('Mem:'),
            widget.MemoryGraph(**widget_graph_defaults),
            widget.TextBox('Net:'),
            widget.NetGraph(**widget_graph_defaults),
예제 #20
0
    Group("www", matches=[Match(wm_class=["Firefox"])]),
    Group("med"),
    Group("gfx"),
    Group("cht", matches=chat_apps_matches, spawn=chat_apps)
]
# Add keybinds for groups
for i, word in enumerate(groups, start=1):
    keys.extend([
        # mod + number: switch to group (starts at 1)
        Key([mod], str(i), lazy.group[word.name].toscreen()),
        # mod + shift + number: move focused window to group
        Key([mod, "shift"], str(i), lazy.window.togroup(word.name)),
    ])

# Define layouts
layouts = [layout.Max(), layout.Stack(num_stacks=2, margin=10, autosplit=True)]

# Default settings for widgets
widget_defaults = dict(
    font="UbuntuMono Nerd Font:style=Regular",
    fontsize=12,
    padding=3,
)
extension_defaults = widget_defaults.copy()

# Set up screen
screens = [
    Screen(top=bar.Bar(
        [
            widget.GroupBox(active="#d3d0d8",
                            inactive="#747369",
예제 #21
0
    Key(["mod4"], "f", lazy.spawn("firefox")),
    Key(["mod4"], "d", lazy.spawn("deluge")),
]

for i in groups:
    keys.append(Key(["mod1"], i.name, lazy.group[i.name].toscreen()))
    keys.append(Key(["mod1", "shift"], i.name, lazy.window.togroup(i.name)))

keys.append(Key(["mod1"], "Left", lazy.group.prevgroup()))
keys.append(Key(["mod1"], "Right", lazy.group.nextgroup()))
keys.append(Key(["mod1", "shift"], "Left", lazy.function(toPrevGroup)))
keys.append(Key(["mod1", "shift"], "Right", lazy.function(toNextGroup)))

##########################################################################################

layouts = [layout.Max(), layout.Stack(stacks=2)]

screens = [
    Screen(bottom=bar.Bar(
        [
            widget.GroupBox(),
            widget.WindowName(fontsize=12),
            widget.Systray(),
            widget.Clock('%I:%M %p', fontsize=12, padding=6),
        ],
        30,
    ), ),
]

main = None
follow_mouse_focus = True
예제 #22
0
    'margin': 0,
    'border_width': 3,
    'border_normal': '#000000',
    'border_focus': '8588E5',
}

layouts = [
    layout.Tile(**layout_style),
    layout.Columns(num_columns=2, autosplit=True, **layout_style),
    layout.Stack(num_stacks=1, **layout_style),
    layout.MonadTall(**layout_style),
    layout.MonadWide(**layout_style),
    layout.Bsp(**layout_style),
    # layout.Matrix(**layout_style),
    layout.Zoomy(**layout_style),
    layout.Max(**layout_style),
    # layout.Floating(**layout_style),
]

groups = []

for i in range(len(group_names)):
    groups.append(
        Group(
            name=group_names[i],
            matches=group_matches[i],
            exclusive=group_exclusives[i],
            layout=group_layouts[i].lower(),
            persist=group_persists[i],
            init=group_inits[i],
            label=group_labels[i],
예제 #23
0
            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.MonadTall(
        margin=8,
        border_focus=colors["normal"]["blue"],
        name="MonadTall",
    ),
    layout.Max(margin=8, ),
    layout.Stack(num_stacks=2),
    layout.Floating(),
    # 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(),
]

widget_defaults = dict(font='sans',
예제 #24
0
파일: config.py 프로젝트: jhilker1/dotfiles
        lazy.spawn("pactl set-sink-volume @DEFAULT_SINK@ -5%")),
    Key([], "XF86AudioMute",
        lazy.spawn("pactl set-sink-mute @DEFAULT_SINK@ toggle")),
    Key([mod], "n", lazy.spawn("rofication-gui"))
]

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

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

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

layouts = [layout.MonadTall(**monadTheme), layout.Max(**monadTheme)]
colors = [
    ["#32302f", "#32302f"],  # panel background
    ["#3c3836", "#3c3836"],  # background for current screen tab
    ["#ebdbb2", "#ebdbb2"],  # font color for group names
    ["#ff5555", "#ff5555"],  # border line color for current tab
    ["#8d62a9", "#8d62a9"],  # border line color for other tab and odd widgets
    ["#458588", "#458588"],  # color for the even widgets
    ["#e1acff", "#e1acff"]
]  # window name

widget_defaults = dict(
    font='Iosevka Nerd Font',
    fontsize=16,
    padding=5,
)
예제 #25
0
myMonadTall = layout.MonadTall(
    border_focus=l_gray,
    border_width=1
)

myColumns = layout.Columns(
    name="C",
    autosplit=False,
    border_focus=l_gray,
    border_width=1,
    grow_amount=20,
)

myMax = layout.Max(
    name="M",
)

floating_layout = layout.Floating(
    border_focus=l_gray,
    border_width=1
)

myWindows = {
    'a': {
        'matches': None,
        'layouts': [myColumns, myMax]
    },
    's': {
        'matches': None,
        'layouts': [myColumns, myMax]
예제 #26
0
파일: config.py 프로젝트: eloraju/dotfiles
            'sla',
            'chromium --app=https://app.slack.com/client/T02CLPH0M/unreads',
            on_focus_lost_hide=True)
    ]))

########################
####    LAYOUTS     ####
########################
layouts = [
    layout.MonadTall(
        **layout_theme,
        name="tall",
    ),
    layout.MonadWide(**layout_theme, name="wide"),
    layout.Matrix(**layout_theme, ),
    layout.Max(**layout_theme, ),
]

dgroups_key_binder = None
dgroups_app_rules = []  # type: List
main = None  # WARNING: this is deprecated and will be removed soon
follow_mouse_focus = True
bring_front_click = False
cursor_warp = False
auto_fullscreen = False
focus_on_window_activation = "smart"
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': 'timer-for-harvest'
예제 #27
0
파일: config.py 프로젝트: ibbathon/dotfiles
    Group("k", label="k "),  # Misc
    Group("l", label="l "),  # Misc
]

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)),
    ])

layouts = [
    layout.Max(border_width=0),
    layout.Tile(border_width=0),
    layout.Floating(border_width=2),
]

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


class CustomVolume(widget.PulseVolume):
    def _update_drawer(self):
        """The main Volume doesn't include a way to show both emoji and text,
예제 #28
0
 def init_layouts(self):
     self.layouts += [layout.Max(), layout.MonadTall(), layout.Floating()]
예제 #29
0
# Define keys to toggle the dropdown terminals
keys.extend([
    Key([], "F12", lazy.group["scratchpad"].dropdown_toggle("kitty")),
    Key([], "F11", lazy.group["scratchpad"].dropdown_toggle("qshell")),
])

##### DEFAULT THEME SETTINGS FOR LAYOUTS #####
layout_theme = {"border_width": 2,
                "margin": 5,
                "border_focus": "3BB2E2",
                "border_normal": colors[5],
                }

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

### COLORS ###
예제 #30
0
 layout.MonadTall(border_focus="#efefef",
                  border_normal="#5f676a",
                  margin=4,
                  ratio=0.55,
                  name="monadt "),
 layout.TreeTab(active_bg="#efefef",
                active_fg="#222222",
                bg_color="#202020",
                border_width=2,
                font="FiraCode Nerd Font",
                fontsize=12,
                inactive_bg="#5f676a",
                inactive_fg="#efefef",
                sections=['Tabs'],
                name="tabbed "),
 layout.Max(name="  max  "),
 #layout.Columns(
 #    border_focus_stack='#efefef',
 #    border_focus='#efefef',
 #    border_normal='#5f676a',
 #    margin = 4,
 #    name = "columns"
 #),
 #layout.Stack(
 #    border_focus = "#efefef",
 #    border_normal = "#5f676a",
 #    num_stacks=2,
 #    margin = 4,
 #    name = " stack "
 #),
 #layout.Bsp(