Format the qtile config with black
This commit is contained in:
parent
293f73ec5c
commit
cdd3a10a5d
|
@ -29,38 +29,30 @@ keys = [
|
|||
Key([mod], "k", lazy.layout.up()),
|
||||
Key([mod], "h", lazy.layout.left()),
|
||||
Key([mod], "l", lazy.layout.right()),
|
||||
|
||||
Key([mod], "space", lazy.next_layout(), desc="Toggle between layouts"),
|
||||
|
||||
# Move windows around
|
||||
Key([mod, "shift"], "j",
|
||||
lazy.layout.shuffle_down(),
|
||||
lazy.layout.move_down()),
|
||||
Key([mod, "shift"], "k",
|
||||
lazy.layout.shuffle_up(),
|
||||
lazy.layout.move_up()),
|
||||
Key([mod, "shift"], "j", lazy.layout.shuffle_down(), lazy.layout.move_down()),
|
||||
Key([mod, "shift"], "k", lazy.layout.shuffle_up(), lazy.layout.move_up()),
|
||||
Key([mod, "shift"], "h", lazy.layout.shuffle_left()),
|
||||
Key([mod, "shift"], "l", lazy.layout.shuffle_right()),
|
||||
Key([mod, "shift"], "q", lazy.window.kill()),
|
||||
|
||||
Key([mod, "shift"], "space", add_treetab_section),
|
||||
Key([mod, "shift"], "Return",
|
||||
Key(
|
||||
[mod, "shift"],
|
||||
"Return",
|
||||
lazy.layout.toggle_split(),
|
||||
desc="Toggle between split and unsplit sides of stack"),
|
||||
|
||||
desc="Toggle between split and unsplit sides of stack",
|
||||
),
|
||||
# Resize windows
|
||||
Key([mod, "control"], "j", lazy.layout.grow_down()),
|
||||
Key([mod, "control"], "k", lazy.layout.grow_up()),
|
||||
Key([mod, "control"], "h", lazy.layout.grow_left()),
|
||||
Key([mod, "control"], "l", lazy.layout.grow_right()),
|
||||
|
||||
Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown qtile"),
|
||||
Key([mod, "control"], "r", lazy.restart(), desc="Restart qtile"),
|
||||
|
||||
# Move windows between sections
|
||||
Key([mod, "control", "shift"], "j", lazy.layout.section_down()),
|
||||
Key([mod, "control", "shift"], "k", lazy.layout.section_up()),
|
||||
|
||||
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
|
||||
Key([mod], "c", lazy.spawn("i3lock -c 000000")),
|
||||
Key([mod], "d", lazy.spawn("rofi -show drun")),
|
||||
|
@ -123,7 +115,8 @@ def toscreen(qtile, group_name):
|
|||
groups = [Group(name=i, matches=group_matches[int(i)]) for i in "1234567890"]
|
||||
|
||||
for i in groups:
|
||||
keys.extend([
|
||||
keys.extend(
|
||||
[
|
||||
# mod1 + letter of group = switch to group
|
||||
Key(
|
||||
[mod],
|
||||
|
@ -143,7 +136,8 @@ for i in groups:
|
|||
lazy.window.togroup(i.name),
|
||||
desc="move focused window to group {}".format(i.name),
|
||||
),
|
||||
])
|
||||
]
|
||||
)
|
||||
|
||||
border = dict(border_width=1, border_focus="#000000")
|
||||
|
||||
|
@ -198,11 +192,14 @@ def top_bar_widgets():
|
|||
|
||||
|
||||
screens = [
|
||||
Screen(top=bar.Bar(
|
||||
Screen(
|
||||
top=bar.Bar(
|
||||
top_bar_widgets(),
|
||||
24,
|
||||
), ),
|
||||
Screen(top=bar.Bar(
|
||||
),
|
||||
),
|
||||
Screen(
|
||||
top=bar.Bar(
|
||||
[
|
||||
widget.GroupBox(),
|
||||
widget.Sep(padding=5),
|
||||
|
@ -215,8 +212,10 @@ screens = [
|
|||
widget.Clock(format="%Y-%m-%d %a %H:%M"),
|
||||
],
|
||||
24,
|
||||
), ),
|
||||
Screen(top=bar.Bar(
|
||||
),
|
||||
),
|
||||
Screen(
|
||||
top=bar.Bar(
|
||||
[
|
||||
widget.GroupBox(),
|
||||
widget.Sep(padding=5),
|
||||
|
@ -229,7 +228,8 @@ screens = [
|
|||
widget.Clock(format="%Y-%m-%d %a %H:%M"),
|
||||
],
|
||||
24,
|
||||
), ),
|
||||
),
|
||||
),
|
||||
]
|
||||
|
||||
# Drag floating layouts.
|
||||
|
@ -240,10 +240,9 @@ mouse = [
|
|||
lazy.window.set_position_floating(),
|
||||
start=lazy.window.get_position(),
|
||||
),
|
||||
Drag([mod],
|
||||
"Button3",
|
||||
lazy.window.set_size_floating(),
|
||||
start=lazy.window.get_size()),
|
||||
Drag(
|
||||
[mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()
|
||||
),
|
||||
Click([mod], "Button2", lazy.window.toggle_floating()),
|
||||
]
|
||||
|
||||
|
@ -263,7 +262,8 @@ def autostart():
|
|||
subprocess.run([home])
|
||||
|
||||
|
||||
floating_layout = layout.Floating(float_rules=[
|
||||
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="confirm"),
|
||||
|
@ -280,7 +280,8 @@ floating_layout = layout.Floating(float_rules=[
|
|||
Match(title="branchdialog"), # gitk
|
||||
Match(title="pinentry"), # GPG key password entry
|
||||
Match(wm_class="ssh-askpass"), # ssh-askpass
|
||||
])
|
||||
]
|
||||
)
|
||||
|
||||
# XXX: Gasp! We're lying here. In fact, nobody really uses or cares about this
|
||||
# string besides java UI toolkits; you can see several discussions on the
|
||||
|
|
Loading…
Reference in New Issue
Block a user