I searched in the forum already but I don’t think this has been requested before.
I would like to have a Focus filter to change some Obsidian setting based on my phone/computer Focus mode.
Use case or problem
The easies use case I can thing of:
I have 1 vault for work and 1 vault for personal stuff, currently every time that I want to change vault I need to do it manually and it’s a bit annoying as it’s quite a common operation for me, at least 2 times a day.
Proposed solution
It would be amazing to have a Focus filter that automatically changes which vault Obsidian is using based on the phone/computes Focus state.
Changing the vault automatically is just 1 use case, but this filter could be actually useful for many other things, like changing some setting or default templates.
Current workaround (optional)
Manually changing vault
1 Like
As a workaround you could add a Shortcuts automation that opens an Obsidian URI for the appropriate vault when you switch to the focus. But if you don’t want Obsidian to open when you switch focus, I think you’ll have to then close the app. I don’t thinks there’s a shortcut action to close an app, but if there is you’ll still see Obsidian open and then close.
1 Like
Thanks for the suggestion, I’ve already try that but does not work because the open
uri does not have a x-callback, so after the shortcut is run Obsidian gets open, as you mention, which I don’t want.
What I want is to change the vault on the background, and then next time I go to open it is already the correct vault.
Hmm, you could have the automation save the Obsidian URI somewhere, and instead of using Obsidian’s normal app icon to open the app, use a shortcut that opens the saved URI.