{"id":17383192,"url":"https://github.com/hiimsergey/obsidian-vault-switcher","last_synced_at":"2026-05-02T20:39:26.710Z","repository":{"id":186571876,"uuid":"675381855","full_name":"hiimsergey/obsidian-vault-switcher","owner":"hiimsergey","description":"A shell script implementing rofi or dmenu to open desired Obsidian vaults","archived":false,"fork":false,"pushed_at":"2023-10-26T08:36:22.000Z","size":1197,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"rofi","last_synced_at":"2025-10-25T12:49:20.344Z","etag":null,"topics":["bash","bash-script","bash-scripting","fish","obsidian","obsidian-md","rofi","shell","shell-script","shell-scripting","shell-scripts","shellscript","vault"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hiimsergey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-08-06T18:16:56.000Z","updated_at":"2025-03-30T05:42:05.000Z","dependencies_parsed_at":"2024-01-15T14:21:47.978Z","dependency_job_id":"a4118985-512f-4efd-a1c0-5bed4c4b1ddc","html_url":"https://github.com/hiimsergey/obsidian-vault-switcher","commit_stats":{"total_commits":27,"total_committers":1,"mean_commits":27.0,"dds":0.0,"last_synced_commit":"b0545e652639af265d51fc7efad08eca178cbdd0"},"previous_names":["hiimsergey/fish-obsidian-prompt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hiimsergey/obsidian-vault-switcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiimsergey%2Fobsidian-vault-switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiimsergey%2Fobsidian-vault-switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiimsergey%2Fobsidian-vault-switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiimsergey%2Fobsidian-vault-switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiimsergey","download_url":"https://codeload.github.com/hiimsergey/obsidian-vault-switcher/tar.gz/refs/heads/rofi","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiimsergey%2Fobsidian-vault-switcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32549385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T19:18:06.202Z","status":"ssl_error","status_checked_at":"2026-05-02T19:16:21.335Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","bash-script","bash-scripting","fish","obsidian","obsidian-md","rofi","shell","shell-script","shell-scripting","shell-scripts","shellscript","vault"],"created_at":"2024-10-16T07:40:53.409Z","updated_at":"2026-05-02T20:39:21.700Z","avatar_url":"https://github.com/hiimsergey.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Obsidian Vault Switcher – A shell script\nA shell script implementing [rofi](https://github.com/davatorium/rofi) or [dmenu](https://tools.suckless.org/dmenu) to let you open the desired [Obsidian](https://obsidian.md) vault.\n\n![](screenshot.png)\n\n## Setup\n1. Pick the right repo branch depending of if you use rofi or dmenu.\n2. Open your first vault.\n3. copy `~/.config/obsidian/obsidian.json` to `~/.config/obsidian/\u003cvault_name\u003e.json`\n4. Repeat steps 2 and 3 with all the other vaults. (*NOTE: Make sure that all the vault-agnostic settings like \"Native Frame Style\" are included, else they will be overwritten.*)\n5. Replace all occurences of `vault_one`, `vault_two` etc. with the names of your vaults in the script.\n6. If you use Wayland, also uncomment the rest of the last line.\n\n## Functionality\nBefore launching Obsidian, the script manipulates `obsidian.json`, where the information about the last visited vault is stored.\n\nUnfolded, the file kinda looks like this:\n\n```json\n{\n    \"vaults\": {\n        \"3156ae10c753d15f\": {\n            \"path\": \"/absolute/path/to/vault_one\",\n            \"ts\": 2930683392013,\n            \"open\": true\n        },\n        \"7924ea59d122e65e\": {\n            \"path\": \"/absolute/path/to/vault_two\",\n            \"ts\": 6933482910304\n        },\n        \"8156a7a7412569dd\": {\n            \"path\": \"/absolute/path/to/vault/three\",\n            \"ts\": 5209508285286\n        }\n    }\n}\n```\n\nThe line `\"open\": true` makes *vault_one* start when launching Obsidian. So if we want to start *vault_two*, for example, the file should look like this:\n\n```json\n{\n    \"vaults\": {\n        \"3156ae10c753d15f\": {\n            \"path\": \"/absolute/path/to/vault_one\",\n            \"ts\": 2930683392013\n        },\n        \"7924ea59d122e65e\": {\n            \"path\": \"/absolute/path/to/vault_two\",\n            \"ts\": 6933482910304,\n            \"open\": true\n        },\n        \"8156a7a7412569dd\": {\n            \"path\": \"/absolute/path/to/vault/three\",\n            \"ts\": 5209508285286\n        }\n    }\n}\n```\n\nThere is probably a more efficient way to do this, but at least it works for me.\n\n¯\\\\_(ツ)_/¯\n\nSo, all the script does is overwriting `obsidian.json` with the files you created in steps 2 and 3 of [Setup](#setup).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiimsergey%2Fobsidian-vault-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiimsergey%2Fobsidian-vault-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiimsergey%2Fobsidian-vault-switcher/lists"}