diff options
author | Thanos Apollo <[email protected]> | 2024-01-28 22:12:04 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-01-28 22:12:04 +0200 |
commit | 7382dd73e04306e3437014f8fd857af3b36a901a (patch) | |
tree | 82b13f291774a83e48284cb80b2a8f332bca33d5 /.config/qtile | |
parent | fdd60578bd30df160150e310e111191fa380ccae (diff) |
qtile: Update layout bindings
Diffstat (limited to '.config/qtile')
-rw-r--r-- | .config/qtile/config.py | 15 |
1 files changed, 11 insertions, 4 deletions
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(),), |