Пример #1
0
                widget.CPU(format="CPU: {freq_current}GHz, {load_percent}%"),
                widget.CPUGraph(),
                widget.Memory(),
                widget.MemoryGraph(),
                widget.Net(format='Down: {down} Up: {up}'),
                widget.NetGraph(),
            ],
            24,
            opacity=0.9,
        ),
    ),
]

# Drag floating layouts.
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())
]

dgroups_key_binder = None
dgroups_app_rules = []  # type: List
main = None  # WARNING: this is deprecated and will be removed soon
follow_mouse_focus = False
bring_front_click = False
cursor_warp = False
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,
    Match(wm_class='confirmreset'),  # gitk
Пример #2
0
    # Toggle between different layouts as defined below
    Key("M-<Tab>",      lazy.next_layout(),             desc="Toggle between layouts"),

    # Globals
    Key("M-C-r",        lazy.restart(),                 desc="Restart qtile"),
    Key("M-C-q",        lazy.shutdown(),                desc="Shutdown qtile"),
    Key("M-r",          lazy.spawncmd(),                desc="Spawn a command using a prompt widget")
]


# ================================================================
# ============================ Mouse =============================
# ================================================================
mouse = [
    Drag("M-1",     lazy.window.set_position_floating(),   start=lazy.window.get_position()),
    Drag("M-3",     lazy.window.set_size_floating(),       start=lazy.window.get_size()),
    Click("M-2",    lazy.window.bring_to_front()),
]


# ================================================================
# =========================== Screens ============================
# ================================================================
widget_defaults = dict(
    font='sans',
    fontsize=12,
    padding=3,
)
extension_defaults = widget_defaults.copy()
Пример #3
0
def init_mouse():
    return [Drag([mod], "Button1", lazy.window.set_position_floating(),      # Move floating windows
                 start=lazy.window.get_position()),
            Drag([mod], "Button3", lazy.window.set_size_floating(),          # Resize floating windows
                 start=lazy.window.get_size()),
            Click([mod, "shift"], "Button1", lazy.window.bring_to_front())]  # Bring floating window to front
Пример #4
0
                    widget.Sep(padding=12, size_percent=80,
                               foreground="504945"),
                    widget.Battery(
                        format='⚡ {percent:2.0%} {hour:d}:{min:02d} {watt:.2f} W'),
                    widget.Sep(padding=12, size_percent=80,
                               foreground="504945"),
                    widget.Backlight(),
                ] + common_bar_suffix,
                24,
            ),
        ),
    ]

# Drag floating layouts.
mouse = [
    Drag([MOD], "Button3", lazy.window.set_size(),
         start=lazy.window.get_size()),
    Click([MOD], "Button2", lazy.window.bring_to_front()),
]

focus_on_window_activation = "never"

dgroups_key_binder = None
dgroups_app_rules = []  # type: List
follow_mouse_focus = True
bring_front_click = False
cursor_warp = False
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,
    Match(wm_class='confirmreset'),  # gitk
    Match(wm_class='makebranch'),  # gitk
Пример #5
0
            30,
            margin=[0, 0, 5, 0],
            background="#000000.0",
            opacity=1.0,
        ),
        left=bar.Gap(size=5),
        right=bar.Gap(size=5),
        bottom=bar.Gap(size=5),
    ),
]

# Drag floating layouts.
mouse = [
    Drag([mod],
         "Button1",
         lazy.window.set_position_floating(),
         start=lazy.window.get_position(),
         desc="Move window"),
    Drag([mod],
         "Button3",
         lazy.window.set_size_floating(),
         start=lazy.window.get_size(),
         desc="Resize window"),
    Click([mod],
          "Button2",
          lazy.window.bring_to_front(),
          desc="Bring to front"),
    # Click([], "Button3", lazy.function(open_menu), desc="Bring to front"),
]

dgroups_key_binder = None
Пример #6
0
screens = Screens().get_screens()

group_names, groups = Groups().get_groups()
keys = Keys(group_names).get_keys()
layouts = Layout().get_layouts()

locals().update(Settings().get_settings())

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

# Drag floating layouts.
mouse = [
    Drag([CONSTANTS.MOD],
         "Button1",
         lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
    Drag([CONSTANTS.MOD],
         "Button3",
         lazy.window.set_size_floating(),
         start=lazy.window.get_size()),
    Click([CONSTANTS.MOD], "Button2", lazy.window.bring_to_front())
]

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,
    Match(wm_class='confirmreset'),  # gitk
    Match(wm_class='makebranch'),  # gitk
    Match(wm_class='maketag'),  # gitk
    Match(wm_class='ssh-askpass'),  # ssh-askpass
Пример #7
0
    Key([], "XF86HomePage", app_or_group('WWW', '~/.local/bin/qutebrowser')),
    Key([], "XF86Mail", app_or_group('E-Mail', 'thunderbird')),
]

for i in groups:
    if i.persist == True and not isinstance(i, ScratchPad):
        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, window_to_group(i.name)),

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

# Drag floating layouts.
mouse = [
    Drag(["control", alt],
         "Button1",
         lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
    Drag(["control", alt],
         "Button3",
         lazy.window.set_size_floating(),
         start=lazy.window.get_size()),
    Click(["control", alt], "Button2", lazy.window.bring_to_front()),
    Click([alt], "Button3", context_menu()),
]
Пример #8
0
    Key([MODKEY, SHIFT], 'h', lazy.layout.shrink()),
    Key([MODKEY, SHIFT], 'l', lazy.layout.grow()),
    Key([MODKEY, SHIFT], 'n', lazy.layout.reset()),
    Key([MODKEY], 'm', lazy.layout.maximize()),
    Key([MODKEY], 'n', lazy.layout.normalize()),

    # Lock and Powermangament
    Key([MODKEY, CTRL], 'l', lazy.spawn(command.lock)),
    Key([MODKEY, CTRL], 'p', lazy.spawn(command.suspend)),
    Key([MODKEY, CTRL], 'h', lazy.spawn(command.hibernate)),
]

# Mouse bindings and options
mouse = (
    Drag([MODKEY],
         'Button1',
         lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
    Drag([MODKEY],
         'Button3',
         lazy.window.set_size_floating(),
         start=lazy.window.get_size()),
)

# Groups
groups = [
    Group('1'),
    Group('2'),
    Group('3'),
    Group('4'),
    Group('5'),
    Group('6'),
Пример #9
0
                                 lambda: qtile.cmd_spawn(
                                     '~/.config/rofi/bin/launcher_alone')
                             }),
                widget.Spacer(length=4),
            ],
            size=26,
            margin=0,
            foreground="#a9b1d6",
            background="#1a1b26",
        ), ),
]

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

dgroups_key_binder = None
dgroups_app_rules = []  # type: List
follow_mouse_focus = True
bring_front_click = False
cursor_warp = False
floating_layout = layout.Floating(float_rules=[
    # Run the utility of `xprop` to see the wm class and name of an X client.
Пример #10
0
    Key('M-C-e', lazy.spawn('emacs')),
    Key('M-C-c', lazy.spawn('gnome-calculator')),
    Key('M-C-l', lazy.spawn('physlock -s'))
]

keys.extend(
    Key('M-' + str(idx), lazy.group[group.name].toscreen())
    for idx, group in enumerate(groups, start=1))

keys.extend(
    Key('M-S-' + str(idx), lazy.window.togroup(group.name))
    for idx, group in enumerate(groups, start=1))

mouse = [
    Drag('M-<Button1>',
         lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
    Drag('M-<Button3>',
         lazy.window.set_size_floating(),
         start=lazy.window.get_size()),
    Click('M-<Button2>', lazy.window.bring_to_front())
]

dgroups_key_binder = None
dgroups_app_rules = []
main = None
follow_mouse_focus = True
bring_front_click = False
cursor_warp = False
floating_layout = layout.Floating()
auto_fullscreen = True
Пример #11
0
    Group("a"),
    Group("s"),
    Group("d"),
    Group("f"),
    Group("g"),
]
for i in groups:
    # mod + letter of group = switch to group
    keys.append(Key([mod], i.name, lazy.group[i.name].toscreen()))

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

##-> 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()),
         Click([mod], 'Button2', lazy.window.toggle_floating()))

layouts = [
    layout.Max(),
    layout.MonadTall(follow_max=True),
]

screens = [
    Screen(top=bar.Bar(widgets=[
        widget.GroupBox(urgent_alert_method='text', **Theme.groupbox),
Пример #12
0
def init_screens():
	return [
		Screen(
			wallpaper = "/home/daniel/Pictures/Wallpapers/manjaro.png",
			wallpaper_mode = 'fill',
			top = bar.Bar(widgets=init_widgets_screen1(), size=30)
		),
		Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=30))
	]
screens = init_screens()


# MOUSE CONFIGURATION
mouse = [
	 Drag([KeyboardKey.SUPER.value], "Button1", lazy.window.set_position_floating(),
		 start=lazy.window.get_position()),
	 Drag([KeyboardKey.SUPER.value], "Button3", lazy.window.set_size_floating(),
		 start=lazy.window.get_size()),
	 Click([KeyboardKey.SUPER.value], "Button2", lazy.window.toggle_floating())
]

dgroups_key_binder = None
dgroups_app_rules = []

# Hooks

@hook.subscribe.client_new
def assign_app_group(client):
	
	programs_for_groups = {
		GroupName.GAMING.value: ['steam', 'Minecraft Launcher', 'minecraft-launcher']