From a6ba6818a49359a2b043e7d888515db2bcb3b3d9 Mon Sep 17 00:00:00 2001 From: t470p Date: Thu, 9 May 2024 20:40:37 -0500 Subject: [PATCH] +/ config customisation starting wip / work in progress --- dots/qtile/config.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/dots/qtile/config.py b/dots/qtile/config.py index 2f2681d..7046216 100644 --- a/dots/qtile/config.py +++ b/dots/qtile/config.py @@ -32,6 +32,9 @@ from libqtile.utils import guess_terminal mod = "mod4" terminal = guess_terminal() +# special keys +# https://docs.qtile.org/en/latest/manual/config/keys.html#special-keys + keys = [ # A list of available commands that can be bound to keys can be found # at https://docs.qtile.org/en/latest/manual/config/lazy.html @@ -40,6 +43,12 @@ keys = [ Key([mod], "l", lazy.layout.right(), desc="Move focus to right"), Key([mod], "j", lazy.layout.down(), desc="Move focus down"), Key([mod], "k", lazy.layout.up(), desc="Move focus up"), + + Key([mod], "Left", lazy.layout.left(), desc="Move focus to left"), + Key([mod], "Right", lazy.layout.right(), desc="Move focus to right"), + Key([mod], "Down", lazy.layout.down(), desc="Move focus down"), + Key([mod], "Up", lazy.layout.up(), desc="Move focus up"), + Key([mod], "space", lazy.layout.next(), desc="Move window focus to other window"), # Move windows between left/right columns or move up/down in current stack. # Moving out of range in Columns layout will create new column. @@ -47,12 +56,24 @@ keys = [ Key([mod, "shift"], "l", lazy.layout.shuffle_right(), desc="Move window to the right"), Key([mod, "shift"], "j", lazy.layout.shuffle_down(), desc="Move window down"), Key([mod, "shift"], "k", lazy.layout.shuffle_up(), desc="Move window up"), + + Key([mod, "shift"], "Left", lazy.layout.shuffle_left(), desc="Move window to the left"), + Key([mod, "shift"], "Right", lazy.layout.shuffle_right(), desc="Move window to the right"), + Key([mod, "shift"], "Down", lazy.layout.shuffle_down(), desc="Move window down"), + Key([mod, "shift"], "Up", lazy.layout.shuffle_up(), desc="Move window up"), + # Grow windows. If current window is on the edge of screen and direction # will be to screen edge - window would shrink. Key([mod, "control"], "h", lazy.layout.grow_left(), desc="Grow window to the left"), Key([mod, "control"], "l", lazy.layout.grow_right(), desc="Grow window to the right"), 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, "control"], "Left", lazy.layout.grow_left(), desc="Grow window to the left"), + Key([mod, "control"], "Right", lazy.layout.grow_right(), desc="Grow window to the right"), + Key([mod, "control"], "Down", lazy.layout.grow_down(), desc="Grow window down"), + Key([mod, "control"], "Up", 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