Do you have a cool automatization, AeroSpace integration, or workflow?
Feel free to open an issue or pull request to add it to this list!
The source code of the page can be found in the ./docs directory.
defaults write -g NSWindowShouldDragOnGesture -bool trueNow, you can move windows by holding ctrl + cmd and dragging any part of the window (not necessarily the window title)
To highlight the focused window with colored border you can use JankyBorders.
You can also use after-startup-command to start JankyBorders together with AeroSpace
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 active_color=0xffe1e3e4 inactive_color=0xff494d64 width=5.0'
]There is a third party Raycast extension for AeroSpace. https://www.raycast.com/limonkufu/aerospace
If you struggle remembering shortcuts, it’s useful to search for commands until they become muscle memory.
Observable in Google Chrome
defaults write -g NSAutomaticWindowAnimationsEnabled -bool falseThe following commands focus next or previous workspaces on monitors where the mouse is located
aerospace workspace "$(aerospace list-workspaces --monitor mouse --visible)" && aerospace workspace next
aerospace workspace "$(aerospace list-workspaces --monitor mouse --visible)" && aerospace workspace prevUse the software of your choice to assign trackpad gestures to the respective commands. Here are a few third party options in alphabetical order:
-
BetterTouchTool can assign arbitrary commands to trackpad gestures. Beware that you might need to specify full path to aerospace executable https://community.folivora.ai/t/how-to-execute-terminal-command-to-switch-workspaces-with-aerospace/35914
|
Caution
|
Make sure that you trust project authors before running the distributed binaries. Alternatively, inspect the source code, and build it yourself. |
You can integrate AeroSpace workspace indicators with Sketchybar. Use these snippets as a starting point.
# Run Sketchybar together with AeroSpace
# sketchbar has a built-in detection of already running process,
# so it won't be run twice on AeroSpace restart
after-startup-command = ['exec-and-forget sketchybar']
# Notify Sketchybar about workspace change
exec-on-workspace-change = ['/bin/bash', '-c',
'sketchybar --trigger aerospace_workspace_change FOCUSED_WORKSPACE=$AEROSPACE_FOCUSED_WORKSPACE'
]sketchybar --add event aerospace_workspace_change
for sid in $(aerospace list-workspaces --all); do
sketchybar --add item space.$sid left \
--subscribe space.$sid aerospace_workspace_change \
--set space.$sid \
background.color=0x44ffffff \
background.corner_radius=5 \
background.height=20 \
background.drawing=off \
label="$sid" \
click_script="aerospace workspace $sid" \
script="$CONFIG_DIR/plugins/aerospace.sh $sid"
done#!/usr/bin/env bash
# make sure it's executable with:
# chmod +x ~/.config/sketchybar/plugins/aerospace.sh
if [ "$1" = "$FOCUSED_WORKSPACE" ]; then
sketchybar --set $NAME background.drawing=on
else
sketchybar --set $NAME background.drawing=off
fiInvoking Safari/Terminal with a command the obvious way (exec-and-forget open -a Safari) results in an outcome that is probably not the intended one.
Namely, that any workspace already containing an instance of Safari/Terminal is brought in focus.
Opening a new window of a program that can supports multiple windows (such as Safari or Terminal.app) can be accomplished with an AppleScript inlined in aerospace.toml as follows:
-
Safari
ctrl-g = '''exec-and-forget osascript -e ' tell application "Safari" make new document at end of documents activate end tell' '''
-
Terminal
ctrl-g = '''exec-and-forget osascript -e ' tell application "Terminal" do script activate end tell' '''
If automatically-unhide-macos-hidden-apps isn’t enough, you can disable cmd-h altogether (which will make this hotkey unavailable for apps that might use it for other purposes)
[mode.main.binding]
cmd-h = [] # Disable "hide application"
cmd-alt-h = [] # Disable "hide others"You can configure a shorcut to run a external command, for instance take a screenshot to clipboard
alt-shift-s = 'exec-and-forget screencapture -i -c'Note: this might require to remove and enable back AeroSpace in Screen & System Audio Recording macosx settings, as described here.
config-examples/i3-like-config-example.tomlThe list is useful to compose custom on-window-detected callback.
| Application name | Application ID |
|---|---|
1Password |
|
Activity Monitor |
|
AirPort Utility |
|
Alacritty |
|
Android Studio |
|
App Store |
|
AppCode |
|
Arc Browser |
|
Audio MIDI Setup |
|
Automator |
|
Battle.net |
|
Books |
|
Brave |
|
Calculator |
|
Calendar |
|
Chess |
|
CLion |
|
Clock |
|
ColorSync Utility |
|
Console |
|
Contacts |
|
Dictionary |
|
Disk Utility |
|
Docker |
|
FaceTime |
|
Figma |
|
Find My |
|
Finder |
|
Firefox |
|
Freeform |
|
Ghostty |
|
GIMP |
|
Google Chrome |
|
Grapher |
|
Home |
|
iMovie |
|
Inkscape |
|
IntelliJ IDEA Community |
|
IntelliJ IDEA Ultimate |
|
iTerm2 |
|
Karabiner-Elements |
|
kdenlive |
|
Keychain Access |
|
Keynote |
|
Kitty |
|
|
|
Maps |
|
Marta |
|
Messages |
|
Music |
|
Notes |
|
Obsidian |
|
Pages |
|
Photo Booth |
|
Photos |
|
Podcasts |
|
Preview |
|
PyCharm Community |
|
PyCharm Professional |
|
QuickTime Player |
|
Reminders |
|
Safari |
|
Shortcuts |
|
Slack |
|
Spotify |
|
Steam |
|
Stocks |
|
Sublime Merge |
|
Sublime Text |
|
System Settings |
|
Telegram |
|
Terminal |
|
TextEdit |
|
Thunderbird |
|
Time Machine |
|
Todoist |
|
Tor Browser |
|
Transmission |
|
TV |
|
Visual Studio Code |
|
VLC |
|
VoiceMemos |
|
VoiceOver Utility |
|
Weather |
|
WezTerm |
|
Xcode |
|
Zen Browser |
|