Skip to content

Instantly share code, notes, and snippets.

View dudeofawesome's full-sized avatar

Louis Orleans dudeofawesome

View GitHub Profile
#!/bin/sh
# save/restore windows through an aerospace restart
# - won't work for app restarts or OS reboots where window IDs are reset (i.e. no good for browser updates)
# - could go most of the way there by saving and restoring windows based on their titles
# however aerospace does not provide a CLI facility to do that
# - https://github.com/nikitabobko/AeroSpace/issues/57
STATEFILE=~/.aerospace-windows.json
save()