From 7382dd73e04306e3437014f8fd857af3b36a901a Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 28 Jan 2024 22:12:04 +0200 Subject: qtile: Update layout bindings --- .config/qtile/config.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to '.config/qtile/config.py') diff --git a/.config/qtile/config.py b/.config/qtile/config.py index e5b695d..69b1f3d 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -43,6 +43,8 @@ layout_theme = init_layout_theme() layouts = [ layout.MonadTall(**layout_theme), layout.Floating(**layout_theme), + layout.Matrix(**layout_theme), + layout.VerticalTile(**layout_theme), ] @hook.subscribe.client_new @@ -199,7 +201,6 @@ browser = "firefox" keys = [ Key([mod],"r",lazy.spawn("rofi -show drun -modi drun -show-icons"),), Key([mod, "shift"], "l", lazy.spawn("slock")), - Key([mod,"shift"],"c",lazy.next_layout(),), Key([mod],"q",lazy.window.kill(),), Key([mod,"shift"],"r",lazy.restart(),), # Switch focus of monitors @@ -208,19 +209,25 @@ keys = [ Key([mod,"shift"],"b",lazy.layout.move_left(),), Key([mod,"shift"],"f",lazy.layout.move_right(),), # Emacs + Key([mod], "Return", lazy.spawn("emacsclient -c")), KeyChord([mod], "e", [ Key([], "o", lazy.spawn("emacs")), Key([], "e", lazy.spawn("emacsclient -c")), Key([], "p", lazy.spawn("emacsclient -e '(thanos/pass-launcher)'")), - Key([], "d", lazy.spawn("emacs --daemon")) + Key([], "d", lazy.spawn("emacs --daemon")), + + ]), + # Layout control + KeyChord([mod], "l", [ + Key([], "n", lazy.next_layout()), + Key([], "g", lazy.layout.grow(),lazy.layout.increase_nmaster()), + Key([],"s",lazy.layout.shrink(),lazy.layout.decrease_nmaster()), ]), # Window controls Key([mod],"n",lazy.layout.down(),), Key([mod],"p",lazy.layout.up(),), Key([mod,"shift"],"n",lazy.layout.shuffle_down(),lazy.layout.section_down(),), Key([mod,"shift"],"p",lazy.layout.shuffle_up(),lazy.layout.section_up(),), - Key([mod],"s",lazy.layout.shrink(),lazy.layout.decrease_nmaster(),), - Key([mod],"l",lazy.layout.grow(),lazy.layout.increase_nmaster(),), Key([mod],"o",lazy.layout.normalize(),), Key([mod],"m",lazy.layout.maximize(),), Key([mod,"shift"],"f",lazy.window.toggle_floating(),), -- cgit v1.2.3