From 34392de20b42482ec6faa7fe486d15c48652cf0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Grochowski?= Date: Wed, 16 Oct 2024 13:12:04 +0200 Subject: [PATCH] feat(aerospace): update configuration --- modules/aerospace/aerospace.toml | 36 +++++++++++++++++--------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/modules/aerospace/aerospace.toml b/modules/aerospace/aerospace.toml index f9dae17..e3e49a0 100644 --- a/modules/aerospace/aerospace.toml +++ b/modules/aerospace/aerospace.toml @@ -38,6 +38,14 @@ default-root-container-orientation = 'horizontal' # See https://nikitabobko.github.io/AeroSpace/guide#key-mapping key-mapping.preset = 'qwerty' +# Mouse follows focus when focused monitor changes +# Drop it from your config, if you don't like this behavior +# See https://nikitabobko.github.io/AeroSpace/guide#on-focus-changed-callbacks +# See https://nikitabobko.github.io/AeroSpace/commands#move-mouse +# Fallback value (if you omit the key): on-focused-monitor-changed = [] +on-focused-monitor-changed = ['move-mouse monitor-lazy-center'] +on-focus-changed = "move-mouse window-lazy-center" + # Gaps between windows (inner-*) and between monitor edges (outer-*). # Possible values: # - Constant: gaps.outer.top = 8 @@ -117,21 +125,15 @@ cmd-ctrl-alt-shift-l = 'focus --boundaries all-monitors-outer-frame right' # See: https://nikitabobko.github.io/AeroSpace/commands#move-workspace-to-monitor cmd-ctrl-alt-shift-tab = 'move-workspace-to-monitor --wrap-around next' -# See: https://nikitabobko.github.io/AeroSpace/commands#mode -# cmd-ctrl-alt-shift-semicolon = 'mode service' - -# 'service' binding mode declaration. -# See: https://nikitabobko.github.io/AeroSpace/guide#binding-modes -# [mode.service.binding] -# esc = ['reload-config', 'mode main'] -# r = ['flatten-workspace-tree', 'mode main'] # reset layout -# #s = ['layout sticky tiling', 'mode main'] # sticky is not yet supported https://github.com/nikitabobko/AeroSpace/issues/2 -# f = ['layout floating tiling', 'mode main'] # Toggle between floating and tiling layout -# backspace = ['close-all-windows-but-current', 'mode main'] - -# cmd-ctrl-alt-shift-shift-h = ['join-with left', 'mode main'] -# cmd-ctrl-alt-shift-shift-j = ['join-with down', 'mode main'] -# cmd-ctrl-alt-shift-shift-k = ['join-with up', 'mode main'] -# cmd-ctrl-alt-shift-shift-l = ['join-with right', 'mode main'] - cmd-ctrl-alt-shift-q = 'close' + +# See: https://nikitabobko.github.io/AeroSpace/commands#mode +cmd-ctrl-alt-shift-m = 'mode modify' +[mode.modify.binding] +esc = 'mode main' +h = 'move left' +j = 'move down' +k = 'move up' +l = 'move right' +minus = 'resize smart -50' +equal = 'resize smart +50'