Пример #1
0
def init_groups():
    groups = [Group(name, **kwargs) for name, kwargs in group_names]

    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)))
    groups.append(
        ScratchPad("scratchpad", [
            DropDown("term", "uxterm", opacity=0.8),
            DropDown("qshell",
                     "qshell",
                     x=0.05,
                     y=0.4,
                     width=0.9,
                     height=0.6,
                     opacity=0.9,
                     on_focus_lost_hide=True)
        ]))
    keys.append(
        Key(['shift'], 'F11',
            lazy.group['scratchpad'].dropdown_toggle('term')))
    keys.append(
        Key(['shift'], 'F12',
            lazy.group['scratchpad'].dropdown_toggle('qshell')))
    return groups
Пример #2
0
def get_groups():
    groups = yaml.load(open("/home/droccia/.config/qtile/groups.yaml", "r"))
    g = []
    for counter, group in enumerate(groups["groups"], 1):
        g.append(Group(group["name"], label=group["icon"]))
        keys.append(
            Key([mod], str(counter), lazy.group[group["name"]].toscreen()))
        keys.append(
            Key(
                [mod, "shift"],
                str(counter),
                lazy.window.togroup(group["name"]),
            ))
    g.append(
        ScratchPad(
            "scratchpad",
            [DropDown("term", "st", opacity=1, height=0.55, width=0.80)],
        ))
    keys.extend([
        # Scratchpad
        # toggle visibiliy of above defined DropDown named "term"
        Key([], "F12", lazy.group["scratchpad"].dropdown_toggle("term")),
        Key([], "F11", lazy.group["scratchpad"].dropdown_toggle("qshell")),
    ])
    return g
Пример #3
0
def init_groups():
    def _inner(key, name):
        keys.append(Key([mod], key, lazy.group[name].toscreen()))
        keys.append(Key([mod, "shift"], key, lazy.window.togroup(name)))
        return Group(name)

    groups = [("dead_grave", "00")]
    groups += [(str(i), "0" + str(i)) for i in range(1, 10)]
    groups += [("0", "10"), ("minus", "11"), ("equal", "12")]
    groups = [_inner(*i) for i in groups]

    if DEBUG:
        from libqtile.config import DropDown, ScratchPad
        dropdowns = [
            DropDown("term",
                     terminal,
                     x=0.125,
                     y=0.25,
                     width=0.75,
                     height=0.5,
                     opacity=0.8,
                     on_focus_lost_hide=True)
        ]
        groups.append(ScratchPad("scratch", dropdowns))
    return groups
Пример #4
0
def init_groups(group_names=init_group_names()):
    groups = [Group(name, **kwargs) for name, kwargs in group_names]
    groups.append(
        ScratchPad("scratchpad", [
            DropDown("term", "alacritty", opacity=1),
            DropDown("pass", "keepassxc", opacity=1)
        ]))
    return groups
Пример #5
0
    def init_scratchpad(self):

        terminal = guess_terminal()

        # Configuration
        height = 0.5
        y_position = 0.2
        warp_pointer = False
        on_focus_lost_hide = True
        opacity = 0.8

        return [
            ScratchPad(
                "SPD",
                dropdowns=[
                    # Drop down terminal with tmux session
                    DropDown("term",
                             terminal + " -e tmux new-session -A -s 'dd'",
                             opacity=opacity,
                             y=y_position,
                             height=height,
                             on_focus_lost_hide=on_focus_lost_hide,
                             warp_pointer=warp_pointer),

                    # Another terminal exclusively for music player
                    DropDown("music",
                             terminal + " -e ncmpcpp",
                             opacity=opacity,
                             y=y_position,
                             height=height,
                             on_focus_lost_hide=on_focus_lost_hide,
                             warp_pointer=warp_pointer),

                    # Another terminal exclusively for file manager
                    DropDown("fileman",
                             terminal + " -e ranger",
                             opacity=opacity,
                             y=y_position,
                             height=height,
                             on_focus_lost_hide=on_focus_lost_hide,
                             warp_pointer=warp_pointer)

                    # Another terminal exclusively for qshell
                    # DropDown("qshell",
                    #     terminal + " -e qshell",
                    #     opacity            = opacity,
                    #     y                  = y_position,
                    #     height             = height,
                    #     on_focus_lost_hide = on_focus_lost_hide,
                    #     warp_pointer       = warp_pointer)
                ]),
        ]
Пример #6
0
def init_groups():
    return [
        Group("!nfo", init=True, persist=True, label='!'),
        Group(">kek", init=True, persist=True, label="@"),
        Group("H4XX", init=True, persist=True, label="#"),
        Group("$RIPTZ", init=True, persist=True, label="$"),
        Group(".conf", init=True, persist=True, label="%"),
        Group("X_x", init=True, persist=True, label="🖻🖻^"),
        Group("browse", init=True, persist=True, label="ð‘™©ð‘™©ð‘™©ð‘™©&"),
        Group(':D', init=True, persist=True, label='*'),
        Group('/3/', init=True, persist=True, label='9'),
        Group('/gd/', init=True, persist=True, label='0'),
        ScratchPad('scratch', [
            DropDown('term', TERMUX),
        ]),
    ]
Пример #7
0
def make_scratchpad(modifiers, *entries):
    keys = []
    name = util.random_string()
    dropdowns = []
    for key, command in entries:
        dd_name = "{}-{}".format(name, key)
        new_key = Key(modifiers, key,
                      lazy.group[name].dropdown_toggle(dd_name))
        keys.append(new_key)
        new_dropdown = DropDown(dd_name,
                                command,
                                x=0,
                                y=0,
                                width=0.999,
                                height=0.5)
        dropdowns.append(new_dropdown)
    return ScratchPad(name, dropdowns), keys
Пример #8
0
    def init_scratchpad(self):

        # Terminal
        # terminal = environ.get("TERMINAL_SOLO")
        terminal = 'st'

        # Configuration
        height = 0.4650
        y_position = 0.0151
        warp_pointer = False
        on_focus_lost_hide = True
        opacity = 1

        return [
            ScratchPad(
                "SPD",
                dropdowns=[
                    # Drop down terminal with tmux session
                    DropDown("term",
                             terminal,
                             opacity=opacity,
                             y=y_position,
                             height=height,
                             on_focus_lost_hide=on_focus_lost_hide,
                             warp_pointer=warp_pointer),

                    # Another terminal exclusively for music player
                    DropDown("music",
                             terminal + " -e ncmpcpp",
                             opacity=opacity,
                             y=y_position,
                             height=height,
                             on_focus_lost_hide=on_focus_lost_hide,
                             warp_pointer=warp_pointer),

                    # Another terminal exclusively for qshell
                    DropDown("vifm",
                             terminal + " -e vifmrun",
                             opacity=opacity,
                             y=y_position,
                             height=height,
                             on_focus_lost_hide=on_focus_lost_hide,
                             warp_pointer=warp_pointer)
                ]),
        ]
Пример #9
0
def init_scratchpad():
    # Terminal
    terminal = "alacritty"

    # Configuration
    height = 0.4650
    y_position = 0.0151
    warp_pointer = False
    on_focus_lost_hide = True
    opacity = 1

    return [
        ScratchPad(
            "SPD",
            dropdowns=[
                # Drop down terminal with tmux session
                DropDown("term",
                         terminal +
                         " -t scratchpad -e tmux new-session -A -s 'scratch'",
                         opacity=opacity,
                         y=y_position,
                         height=height,
                         on_focus_lost_hide=on_focus_lost_hide,
                         warp_pointer=warp_pointer),

                # Another terminal exclusively for music player
                DropDown("music",
                         terminal + " -t musicplayer -e ncmpcpp",
                         opacity=opacity,
                         y=y_position,
                         height=height,
                         on_focus_lost_hide=on_focus_lost_hide,
                         warp_pointer=warp_pointer),

                # Another terminal exclusively for qshell
                DropDown("calc",
                         terminal + " -e bc",
                         opacity=opacity,
                         y=y_position,
                         height=height,
                         on_focus_lost_hide=on_focus_lost_hide,
                         warp_pointer=warp_pointer)
            ]),
    ]
Пример #10
0
        Match(wm_class="zoom"),
    ]),
    Group(
        "9",
        matches=[
            Match(wm_class="web.whatsapp.com"),  # Whatsapp Web
            # LINE Browser Extension
            Match(wm_class="ophjlpahpchlmihnnnihgmmeilfjmjjc__index.html"),
        ]),
    Group("0")
]

cmd = "kitty"

GROUPS.append(
    ScratchPad("scratchpad", [
        DropDown(
            "term",
            cmd,
            opacity=1.0,
            x=0.05,
            y=0.05,
            width=0.9,
            height=0.9,
        ),
    ]))


def get_groups():
    return GROUPS
Пример #11
0
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)),
    ])

groups += [
    ScratchPad(
        'todoist',
        [DropDown(
            'todoist',
            'todoist',
            x=0,
            y=0,
            width=1.0,
            height=1.0,
        )]),
    ScratchPad('zeal',
               [DropDown(
                   'zeal',
                   'zeal',
                   x=0,
                   y=0,
                   width=1.0,
                   height=1.0,
               )]),
    ScratchPad(
        'mpsyt',
Пример #12
0
            desc="Focus certain workspace",
        ))
    keys.append(
        Key(
            [mod, "shift"],
            workspace["key"],
            lazy.window.togroup(workspace["name"]),
            desc="Move focused window to another workspace",
        ))

groups.append(
    ScratchPad("scratchpad", [
        DropDown("term",
                 "wezterm",
                 x=0.7,
                 y=0.01,
                 width=0.3,
                 height=0.3,
                 on_focus_lost_hide=False),
    ]))

layout_theme = {
    "border_width": 3,
    "margin": 5,
    "border_focus": "fafafa",
    "border_normal": "fafafa",
    "font": "FiraCode Nerd Font",
    "grow_amount": 4,
}

layout_theme_margins = {
Пример #13
0
    def init_scratchpad(self):

        # Terminal
        # terminal = environ.get("TERMINAL_SOLO")

        # Configuration
        height = 0.7650
        y_position = 0.1151
        warp_pointer = False
        on_focus_lost_hide = True
        opacity = 1

        sm_height = 0.2650
        sm_width = 0.25
        sm_y_position = 0.3151
        sm_x_position = 0.3351

        # md_height = 0.2650
        md_width = 0.50
        md_y_position = 0.2151
        md_x_position = 0.2351

        return [
            ScratchPad(
                "SPD",
                dropdowns=[
                    # Drop down terminal with tmux session
                    DropDown("term",
                             "st -e tmux new-session -A -s 'D Term'",
                             opacity=opacity,
                             y=y_position,
                             height=height,
                             on_focus_lost_hide=on_focus_lost_hide,
                             warp_pointer=warp_pointer),
                    # Another terminal exclusively for music player
                    DropDown("vifm",
                             "st -e vifm",
                             opacity=opacity,
                             y=y_position,
                             height=height,
                             on_focus_lost_hide=on_focus_lost_hide,
                             warp_pointer=warp_pointer),
                    DropDown("surf",
                             "surf",
                             opacity=opacity,
                             y=y_position,
                             height=height,
                             on_focus_lost_hide=on_focus_lost_hide,
                             warp_pointer=warp_pointer),
                    DropDown("calc",
                             "st -e calc -d",
                             opacity=opacity,
                             y=sm_y_position,
                             x=sm_x_position,
                             height=sm_height,
                             width=sm_width,
                             on_focus_lost_hide=on_focus_lost_hide,
                             warp_pointer=warp_pointer),
                    DropDown("qutebrowser",
                             "qutebrowser",
                             opacity=opacity,
                             y=y_position,
                             height=height,
                             on_focus_lost_hide=on_focus_lost_hide,
                             warp_pointer=warp_pointer),
                    DropDown("simplerecorder",
                             "simplescreenrecorder",
                             opacity=opacity,
                             y=y_position,
                             height=height,
                             on_focus_lost_hide=on_focus_lost_hide,
                             warp_pointer=warp_pointer),
                    DropDown("qutebrowser",
                             "qutebrowser",
                             opacity=opacity,
                             y=y_position,
                             height=height,
                             on_focus_lost_hide=on_focus_lost_hide,
                             warp_pointer=warp_pointer),
                    DropDown("audio",
                             "st -n audio -e pamix",
                             opacity=opacity,
                             x=md_x_position,
                             y=md_y_position,
                             width=md_width,
                             on_focus_lost_hide=on_focus_lost_hide,
                             warp_pointer=warp_pointer)
                ]),
        ]
Пример #14
0
    'layout': 'monadtall'
}), ("7", {
    'layout': 'monadtall'
}), ("8", {
    'layout': 'monadtall'
}), ("9", {
    'layout': 'columns'
})]

groups = [Group(name, **kwargs) for name, kwargs in group_names] + [
    ScratchPad("scratchpad", [
        DropDown(
            "term",
            terminal,
            opacity=0.96,
            width=0.4,
            height=0.4,
            x=0.3,
            y=0.3,
        ),
    ]),
]

for i, (name, kwargs) in enumerate(group_names, 1):
    # Switch to another group
    keys.append(Key([mod], str(i), lazy.group[name].toscreen()))
    # Send current window to another group
    keys.append(Key([mod, "shift"], str(i), lazy.window.togroup(name)))

# palette
Пример #15
0
ALT = "mod1"

mod = SUPER

##### CUSTOM GROUPS ######
groups = [
    ScratchPad(
        "scpd",
        [
            # Dropdown alacritty terminal
            DropDown("term", "alacritty", opacity=0.8),
            # Dropdown spotify using spotify-tui
            DropDown("music",
                     "alacritty -e spt --tick-rate=17",
                     opacity=0.99,
                     x=0.05,
                     width=0.9,
                     height=0.6),
            # Dropdown calendar using calcurse
            DropDown("calendar",
                     "alacritty -e calcurse",
                     opacity=0.99,
                     x=0.05,
                     width=0.9,
                     height=0.6)
        ]),
    Group("a", layout="monadtall"),
    Group("s", spawn="firefox", layout="max"),
    Group("d", spawn="alacritty", layout="monadtall"),
    Group("f", layout="monadwide"),
    Group("u"),
    Group("i", matches=[Match(wm_class=["Lutris"])], spawn="lutris"),
Пример #16
0
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, 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)),
    ])
groups.append(
    ScratchPad(
        "scratchpad",
        [
            # define a drop down terminal.
            # it is placed in the upper third of selfcreen by default.
            DropDown("term", "xterm", height=0.5),
            DropDown("org", "emacs", height=0.5),
        ]))
layouts = [
    layout.Max(),
    layout.Stack(num_stacks=2, border_focus=border_color, border_width=2),
    layout.MonadTall(border_focus=border_color, border_width=2),
    layout.MonadWide(border_focus=border_color, border_width=2),
    layout.TreeTab(border_focus=border_color, border_width=2),
]

screens = screens.init_screens(border_color)

# Drag floating layouts.
mouse = [Click([mod], "Button2", lazy.window.bring_to_front())]
Пример #17
0
groups = [
    Group("1", matches=[Match(wm_class=["Firefox", "Google-chrome"])]),
    Group("2"),
    Group("3", matches=[Match(wm_class=["jetbrains-idea"]), ]),
    Group("4", matches=[Match(wm_class=["rambox"])]),
    Group("5", matches=[Match(wm_class=["SmartGit", "Steam"])]),
    Group("6", matches=[Match(wm_class=["libreoffice"])]),
    Group("7"),
    Group("8"),
    Group("9", matches=[Match(wm_class=["KeePassXC"])]),
    Group("0", matches=[
          Match(wm_class=["Google Play Music Desktop Player", "Spotify"])]),
    ScratchPad("scratchpad", [
        DropDown("emacs", "emacs --name scratchpad",
                 x=0.0, y=0.0, height=1.0, width=1.0, opacity=1.0),
        DropDown("term", "kitty --name scratchpad",
                 x=0.0, y=0.0, height=1.0, width=1.0, opacity=1.0),
    ]),
]

lt_keys = {
    "1": "aogonek",
    "2": "ccaron",
    "3": "eogonek",
    "4": "eabovedot",
    "5": "iogonek",
    "6": "scaron",
    "7": "uogonek",
    "8": "umacron",
    "9": "doublelowquotemark",
    "0": "leftdoublequotemark",
Пример #18
0
            qtile.groups_map[group].cmd_toscreen(toggle=False)

    return f


# workspace keybinds
for i, (name, kwargs) in enumerate(group_names, 1):
    # switch workspaces
    # workspaces 1-4 on primary screen, 5+ on secondary screen
    keys.append(Key([mod], str(i), lazy.function(go_to_group(name))))
    # send window to workspace
    keys.append(Key([mod, "shift"], str(i), lazy.window.togroup(name)))

# dropdown scratchpad terminal
groups.append(ScratchPad("scratchpad", [
    DropDown("term", terminal),
]))
keys.append(
    Key([mod], "grave", lazy.group['scratchpad'].dropdown_toggle('term')))

# layouts
layout_theme = {
    "margin": 5,
    "border_width": 2,
    "border_focus": "EBCB8B",
    "border_normal": "4C566A",
}

layouts = [
    layout.MonadTall(ratio=0.65, **layout_theme),
    layout.MonadWide(**layout_theme),
Пример #19
0
            theme_bar(qtile.current_screen.top)
        else:
            raise Exception('Unrecognized theme {}'.format(theme_name))

        if current_style.emacs_theme:
            emacs_command= '(load-theme \'{})'.format(current_style.emacs_theme)
            subprocess.call(['emacsclient', '-e', emacs_command])
    return __inner__

group_table=[["Dev", "✎", "max"], ["Home", "", "monadtall"], ["Web", "爵", "max"], ["IM", "", "max"], ["Python", "", "stack"], ["Sys", "", "monadtall"], ["Misc", "", "monadtall"]]
groups = [
    Group(name=n, label = f'{ic} {n}', layout=la) for n, ic, la in group_table
]

groups.append(ScratchPad("scratchpad", [
    DropDown("term", "konsole", opacity=0.8)
]))

resize_commands = [
    Key([], 'l', lazy.layout.grow_main(), desc='Grow main'),
    Key([], 'h', lazy.layout.shrink_main(), desc='Shrink main'),
    Key([], 'space', lazy.function(lambda q: ...)),
]

win_move_commands = [
    Key([], 'j', lazy.layout.shuffle_down(), desc='shuffle up'),
    Key([], 'k', lazy.layout.shuffle_up(), desc='shuffle down'),
]

to_group_commands = [
    Key([], '1', lazy.window.togroup('Dev', switch_group=True)),
Пример #20
0
    keys.extend([
        # mod1 + letter of group = switch to group
        Key([mod], i.name, lazy.group[i.name].toscreen(),
            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)),
    ])

groups.append(ScratchPad("quake", [
    DropDown("term", terminal, opacity=0.5)
]))

layouts = [
    layout.Max(),
    # layout.Stack(num_stacks=2),
    # 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(),
Пример #21
0
        # 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)),
    ])

# add scratchpad
groups.append(
    ScratchPad("scratchpad", [
        DropDown("term", term, x=0.3, y=0.35, width=0.4, height=0.3),
        DropDown(
            "calc", "st -e python3 -q", x=0.3, y=0.35, width=0.4, height=0.3),
    ]))
keys.extend([
    Key([mod], "u", lazy.group["scratchpad"].dropdown_toggle("term")),
    Key([mod], "a", lazy.group["scratchpad"].dropdown_toggle("calc")),
])

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

layouts = [
    layout.Max(**layout_theme),
Пример #22
0
# Append a Scratchpad group
groups.append(
    ScratchPad(
        "scratchpad", [
            # Define a drop down terminal
            # It is placed in the upper third of the screen by default
            DropDown(
                "kitty",
                "/usr/bin/kitty",
                opacity=0.88,
                height=0.55,
                width=0.80
            ),

            # Define another terminal exclusively for qshell at different position
            DropDown(
                "qshell",
                "/usr/bin/kitty -e qshell",
                x=0.05,
                y=0.4,
                width=0.9,
                height=0.6,
                opacity=0.9,
                on_focus_lost_hide=True
            ),
        ]
    )
)

# Define keys to toggle the dropdown terminals
Пример #23
0
]
#Workspace Groups
group_names = [("I", {}),
               ("II", {}),
               ("III", {}),
               ("IV", {}),
               ("V", {}),
               ("VI", {}),
               ("VII", {}),
               ("VIII", {}),
               ("IX", {})]
groups = [Group(name, **kwargs) for name, kwargs in group_names]
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
groups = [ScratchPad("scratchpad",[
          DropDown("term", "urxvt", opacity=0.95)]),
          Group("I", layout='monadtall'),
          Group("II", layout='monadtall',),
          Group("III", layout='monadtall',),
          Group("IV", layout='monadtall',),
          Group("V", layout='max',),
          Group("VI", layout='bsp',),
          Group("VII", layout='bsp',),
          Group("VIII", layout='bsp',),
          Group("IX", layout='bsp',]
#Layouts
layouts = [
    layout.MonadTall(num_stacks=2,
                     margin=5,
                     border_focus=ColorC,
                     border_normal=ColorZ),
Пример #24
0
    )

# ScratchPads

scratchpad_conf: dict[str, Any] = {
    "warp_pointer": False,
    "height": 0.6,
    "y": 0.2,
    "opacity": 1
}

groups.append(
    ScratchPad(
        "scratchpad",
        [
            DropDown("terminal", TERMINAL, **scratchpad_conf),
            DropDown("newsboat", f"{TERMINAL} -e newsboat", **scratchpad_conf)
        ]
    )
)

# Mouse
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()
Пример #25
0
from libqtile.config import Match, Group, ScratchPad
from setting import workspaces

# Creating Workspace Group
groups = []
for ws in workspaces.keys():
    mat = workspaces[ws]["matches"]
    mat_list = []
    if mat is not None:
        if "wm_class" in mat.keys():
            mat_list.extend([Match(wm_class=mat["wm_class"])])
        if "wm_name" in mat.keys():
            mat_list.extend([Match(title=mat["wm_name"])])
    else:
        match = None
    group = Group(name=ws, label=workspaces[ws]["label"], matches=mat_list)
    groups.append(group)

groups.append(ScratchPad(name="grave", label="~"))
Пример #26
0
#        # 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)),
#    ])
#
# append a scratchpad group
groups.append(
    ScratchPad(
        "scratchpad",
        [
            # define a drop down terminal.
            # it is placed in the upper third of screen by default.
            DropDown("term", "st", opacity=0.8),
        ]), )

# define keys to toggle the dropdown for st
keys.extend([
    Key([mod], 'grave', lazy.group['scratchpad'].dropdown_toggle('term')),
])

# Standard Layout settings are moved to xrec.py to allow for theming

# apply them below
layouts = [
    #layout.Stack(num_stacks=2),
    #layout.Bsp(),
Пример #27
0
 ScratchPad(
     "scratchpad",
     [
         DropDown(
             "term",
             apps.myTerminal,
             x=s_left_margin,
             y=s_top_margin,
             width=s_width,
             height=s_height,
             warp_pointer=False,
         ),
         DropDown(
             "files",
             apps.myFileManager,
             x=s_left_margin,
             y=s_top_margin,
             width=s_width,
             height=s_height,
             warp_pointer=False,
         ),
         DropDown(
             "music",
             apps.myMusicPlayer,
             x=s_left_margin,
             y=s_top_margin,
             width=s_width,
             height=s_height,
             warp_pointer=False,
         ),
     ],
 ), )
Пример #28
0
groups = [Group(i) for i in "123456789"]

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 = move focused window to group
        Key([mod, "shift"], i.name, lazy.window.togroup(i.name, switch_group=False)),
    ])

groups.extend([
    ScratchPad('scratchpad', [
        DropDown('term', 'alacritty -o window.opacity=1',
                 opacity=1,
                 width=0.95,
                 x=0.025,
                 y=0.006
        ),
    ])
])

layout_theme = {
    "margin": 2,
    "border_width": 2,
    "border_focus": colors["yellow"],
    "border_normal": colors["background"],
    "border_focus_stack": colors["red"],
    "border_normal_stack": colors["background"]
}
floating_theme = {
    "margin": 0,
Пример #29
0
            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)),
    ])

groups.append(
    ScratchPad(
        "scratchpad",
        [
            # define a drop down terminal.
            # it is placed in the upper third of screen by default.
            DropDown(
                "telegram",
                "/usr/bin/telegram-desktop",
                opacity=0.92,
                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",
Пример #30
0
        [
            # 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
            Key([mod, "shift"], i.name, lazy.window.togroup(i.name)),
        ]
    )



groups.append(
    ScratchPad("scratchpad", [
        # define a drop down terminal.
        # it is placed in the upper third of screen by default.
        DropDown("term", "/usr/bin/termite", opacity=0.88, height=0.35, width=0.80, ),

        # define another terminal exclusively for qshell at different position
        DropDown("qshell", "/usr/bin/termite -e qshell",
                 x=0.05, y=0.4, width=0.9, height=0.6, opacity=0.9,
                 on_focus_lost_hide=True)
    ]), )

keys.extend([
    # Scratchpad
    # toggle visibiliy of above defined DropDown named "term"
    Key([], 'F12', lazy.group['scratchpad'].dropdown_toggle('term')),
    Key([], 'F11', lazy.group['scratchpad'].dropdown_toggle('qshell')),
])