This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() |