I'm a long-time tiling window manager user on Linux and especially like the control scheme of COSMIC, which I find really intuitive. To get the same ergonomics on macOS, I turned to Aerospace. It took some tuning to get right, but Aerospace's flexible scripting makes almost any behavior possible. Below are the tips and tricks I picked up along the way. Factor Out Common Routines into f13–f20 BindingsWe can factor out common routines into service mode and call them via trigger-binding --mode service. The keys f13 through f20 are great placeholders since they're rarely used. [mode.service.binding] f20 = """exec-and-forget \ [ "$(aerospace list-windows --focused --count)" != "1" ] && \ aerospace workspace-back-and-forth """ # prevent focus into empty workspace Move Focus with Vim Keys, even across MonitorsBy default, the focus command only moves focus within a workspace; the --boundaries all-monitors-outer-frame flag lets us move across monitors. The trigger-binding --mode service f20…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.