|
@@ -1,5 +1,5 @@
|
|
#!/bin/sh
|
|
#!/bin/sh
|
|
-# my-init.org [[id:fc0749df-a6ad-4885-afb8-bbab36846558][open-a-window-for-org-capture]]
|
|
|
|
|
|
+# my-init.org(open-a-window-for-org-capture) id:fc0749df-a6ad-4885-afb8-bbab36846558
|
|
currentWindow=$(xprop -id $(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}') | awk '/WM_CLASS\(STRING\)/{print $NF}')
|
|
currentWindow=$(xprop -id $(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}') | awk '/WM_CLASS\(STRING\)/{print $NF}')
|
|
|
|
|
|
if [[ $currentWindow == '"Emacs"' ]] ; then
|
|
if [[ $currentWindow == '"Emacs"' ]] ; then
|
|
@@ -7,4 +7,4 @@ if [[ $currentWindow == '"Emacs"' ]] ; then
|
|
else
|
|
else
|
|
emacsclient -c --eval '(my/call-org-capture-in-new-window)'
|
|
emacsclient -c --eval '(my/call-org-capture-in-new-window)'
|
|
fi
|
|
fi
|
|
-# End my-init.org [[id:fc0749df-a6ad-4885-afb8-bbab36846558][open-a-window-for-org-capture]]
|
|
|
|
|
|
+# End my-init.org(open-a-window-for-org-capture) id:fc0749df-a6ad-4885-afb8-bbab36846558
|