@@ -0,0 +1,9 @@
+#!/bin/sh
+
+currentWindow=$(xprop -id $(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}') | awk '/WM_CLASS\(STRING\)/{print $NF}')
+if [[ $currentWindow == '"Emacs"' ]] ; then
+ emacsclient --eval "(call-interactively #'org-roam-capture-inbox)"
+else
+ emacsclient -c --eval '(org-roam-capture-inbox-in-own-frame)'
+fi