From: Michael Strey <mstrey@strey.biz>
To: emacs-orgmode@gnu.org
Subject: Re: Trigger org-capture window using linux shortcut key
Date: Wed, 22 May 2013 09:10:44 +0200 [thread overview]
Message-ID: <20130522071044.GI641@strey.biz> (raw)
In-Reply-To: <loom.20130522T083952-277@post.gmane.org>
Hi Jackin,
On Wed, May 22, 2013 at 06:40:39AM +0000, Jackin wrote:
> I am wondering if it is possible to start a org-capture window
> (when not within emacs) using a shortcut key. Org-protocol allows this
> to be done from a web browser or adobe reader which is very useful. But
> I am thinking of a more general solution, for triggering a org-capture
> window from any where in Linux -> type in something and -> C-c c-c.
>
> Any ideas or solutions? Thanks in advance.
I've implemented this behaviour for my Xmonad desktop. The solution
consists of two parts
1. The configuration of a shortcut calling a shell script in the Xmonad
configuration file .xmonad/xmonad.hs
2. A shell script simulating the keystrokes to change to the virtual
desktop were my Emacs lives and calling org-capture.
#+BEGIN_SRC shell
#!/bin/sh
xdotool key Super+m 7
emacsclient -e '(org-capture)'
#xdotool key Super+0
#+END_SRC
--
Michael Strey
www.strey.biz
next prev parent reply other threads:[~2013-05-22 7:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-22 6:40 Trigger org-capture window using linux shortcut key Jackin
2013-05-22 7:10 ` Michael Strey [this message]
2013-05-22 22:00 ` Matt Lundin
2013-06-12 11:49 ` jackin
-- strict thread matches above, loose matches on Subject: below --
2013-05-22 6:38 trigger " jackin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130522071044.GI641@strey.biz \
--to=mstrey@strey.biz \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).