projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f312676
)
added obsidian open script
author
Matthew Owens
<matthew@owens.tech>
Thu, 20 Jun 2024 20:19:38 +0000
(21:19 +0100)
committer
Matthew Owens
<matthew@owens.tech>
Thu, 20 Jun 2024 20:19:38 +0000
(21:19 +0100)
oopen
[new file with mode: 0755]
patch
|
blob
diff --git a/oopen
b/oopen
new file mode 100755
(executable)
index 0000000..
a008e3f
--- /dev/null
+++ b/
oopen
@@ -0,0
+1,18
@@
+#!/bin/bash
+
+obsidian=/usr/bin/obsidian
+
+declare -A params
+params["solo"]="a290cc8d84cd637b"
+params["dnd"]="c219cfdb4bbfa943"
+params["ironforged"]="6568718da9c64bff"
+
+if [ $# -eq 0 ]; then
+ obsidian &
+else
+ for key in ${!params[@]}; do
+ if [[ $1 == ${key} ]]; then
+ $obsidian "obsidian://open?vault=${params[${key}]}"
+ fi
+ done
+fi