From beea5e0d2560b608910bd7ae2b86b4cc6446e4ca Mon Sep 17 00:00:00 2001 From: Ted Kulp Date: Mon, 19 Aug 2024 10:10:59 -0400 Subject: [PATCH] feat: added switch monitor commands to aerospace --- .config/aerospace/aerospace.toml##template.j2 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.config/aerospace/aerospace.toml##template.j2 b/.config/aerospace/aerospace.toml##template.j2 index 18532d0..9647717 100644 --- a/.config/aerospace/aerospace.toml##template.j2 +++ b/.config/aerospace/aerospace.toml##template.j2 @@ -16,10 +16,12 @@ after-startup-command = [ # JankyBorders has a built-in detection of already running process, # so it won't be run twice on AeroSpace restart 'exec-and-forget borders', +{% if YADM_HOSTNAME != "ALLOCATE-Y3HW9MWW2D" -%} + 'exec-and-forget sketchybar', +{% endif -%} ] -{% if YADM_HOSTNAME == "ALLOCATE-Y3HW9MWW2D" -%} -{% else -%} +{% if YADM_HOSTNAME != "ALLOCATE-Y3HW9MWW2D" -%} # Notify Sketchybar about workspace change exec-on-workspace-change = [ '/bin/bash', @@ -194,9 +196,14 @@ alt-ctrl-shift-l = 'move right' alt-shift-minus = 'resize smart -50' alt-shift-equal = 'resize smart +50' +# Switch workspaces alt-ctrl-shift-m = 'workspace next' alt-ctrl-shift-n = 'workspace prev' +# Focus/move to other monitor +alt-shift-p = 'focus-monitor --wrap-around next' +alt-ctrl-shift-p = 'move-node-to-monitor --wrap-around next' + # See: https://nikitabobko.github.io/AeroSpace/commands#workspace alt-shift-1 = 'workspace 1' alt-shift-2 = 'workspace 2'