basic config
This commit is contained in:
parent
5462db77fc
commit
b918bb1253
18
config.py
18
config.py
|
@ -1,7 +1,11 @@
|
|||
from libqtile import bar, layout, widget
|
||||
from libqtile.config import Click, Drag, Group, Key, Match, Screen
|
||||
from libqtile.layout.columns import Columns
|
||||
from libqtile.layout.max import Max
|
||||
from libqtile.layout.floating import Floating
|
||||
from libqtile.lazy import lazy
|
||||
|
||||
|
||||
mod = "mod4"
|
||||
terminal = "kitty"
|
||||
|
||||
|
@ -27,6 +31,7 @@ keys = [
|
|||
Key([mod, "control"], "j", lazy.layout.grow_down(), desc="Grow window down"),
|
||||
Key([mod, "control"], "k", lazy.layout.grow_up(), desc="Grow window up"),
|
||||
Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"),
|
||||
|
||||
# Toggle between split and unsplit sides of stack.
|
||||
# Split = all windows displayed
|
||||
# Unsplit = 1 window displayed, like Max layout, but still with
|
||||
|
@ -40,10 +45,13 @@ keys = [
|
|||
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
|
||||
# Toggle between different layouts as defined below
|
||||
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
|
||||
Key([mod], "f", lazy.window.toggle_fullscreen()),
|
||||
Key([mod], "t", lazy.window.toggle_floating()),
|
||||
Key([mod], "w", lazy.window.kill(), desc="Kill focused window"),
|
||||
Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"),
|
||||
Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
|
||||
Key([mod], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget"),
|
||||
Key([mod], "d", lazy.spawn("rofi -combi-modi window,drun,scripts,ssh, -show-icons -show combi -modi combi"), desc="rofi"),
|
||||
]
|
||||
|
||||
groups = [Group(i) for i in "123456789"]
|
||||
|
@ -73,8 +81,8 @@ for i in groups:
|
|||
)
|
||||
|
||||
layouts = [
|
||||
layout.Columns(border_focus_stack=["#d75f5f", "#8f3d3d"], border_width=4),
|
||||
layout.Max(),
|
||||
Columns(border_focus_stack=["#d75f5f", "#8f3d3d"], border_width=4),
|
||||
Max(),
|
||||
# Try more layouts by unleashing below layouts.
|
||||
# layout.Stack(num_stacks=2),
|
||||
# layout.Bsp(),
|
||||
|
@ -134,10 +142,10 @@ dgroups_app_rules = [] # type: list
|
|||
follow_mouse_focus = True
|
||||
bring_front_click = False
|
||||
cursor_warp = False
|
||||
floating_layout = layout.Floating(
|
||||
floating_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,
|
||||
*Floating.default_float_rules,
|
||||
Match(wm_class="confirmreset"), # gitk
|
||||
Match(wm_class="makebranch"), # gitk
|
||||
Match(wm_class="maketag"), # gitk
|
||||
|
@ -152,7 +160,7 @@ reconfigure_screens = True
|
|||
|
||||
# If things like steam games want to auto-minimize themselves when losing
|
||||
# focus, should we respect this or not?
|
||||
auto_minimize = True
|
||||
auto_minimize = False
|
||||
|
||||
# When using the Wayland backend, this can be used to configure input devices.
|
||||
wl_input_rules = None
|
||||
|
|
Loading…
Reference in New Issue