From 11c25ce9e68225a7b3dff5d168838a8ce09fd908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Thu, 7 Oct 2021 11:13:09 +0200 Subject: [PATCH] qtile: focus, grow, and shuffle windows, run command with rofi --- qtile/.config/qtile/config.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/qtile/.config/qtile/config.py b/qtile/.config/qtile/config.py index 3c7167d..477de87 100644 --- a/qtile/.config/qtile/config.py +++ b/qtile/.config/qtile/config.py @@ -29,8 +29,21 @@ screens = [ keys.extend([ Key([mod], "Return", lazy.spawn(terminal), desc="Run terminal "), Key([mod], "e", lazy.spawn("emacsclient -n -c"), desc="Open new Emacs frame"), + Key([mod], "space", lazy.spawn(["rofi", "-theme", "Arc", "-kb-row-select", "Tab", "-kb-row-tab", "", "-show", "run"]), desc="Run command"), Key([mod], "Tab", lazy.screen.toggle_group(), desc="Toggle between current and previous group"), + Key([mod], "h", lazy.layout.left(), desc="Focus window on the left of current one"), + Key([mod], "j", lazy.layout.down(), desc="Focus window below of current one"), + Key([mod], "k", lazy.layout.up(), desc="Focus window above of current one"), + Key([mod], "l", lazy.layout.right(), desc="Focus window on the right of current one"), + Key([mod, "shift"], "h", lazy.layout.shuffle_left(), desc="Shuffle current window with the one on the left"), + Key([mod, "shift"], "j", lazy.layout.shuffle_down(), desc="Shuffle current window with the one below"), + Key([mod, "shift"], "k", lazy.layout.shuffle_up(), desc="Shuffle current window with the one above"), + Key([mod, "shift"], "l", lazy.layout.shuffle_right(), desc="Shuffle current window with the one on the right"), + Key([mod, "control"], "h", lazy.layout.grow_left(), desc="Grow current window on its left"), + Key([mod, "control"], "j", lazy.layout.grow_down(), desc="Grow current window on its bottom"), + Key([mod, "control"], "k", lazy.layout.grow_up(), desc="Grow current window on its top"), + Key([mod, "control"], "l", lazy.layout.grow_right(), desc="Grow current window on its right"), Key([mod], "w", lazy.window.kill(), desc="Kill focused window"),