From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Strey Subject: Re: Trigger org-capture window using linux shortcut key Date: Wed, 22 May 2013 09:10:44 +0200 Message-ID: <20130522071044.GI641@strey.biz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf3CI-0005nw-Pq for emacs-orgmode@gnu.org; Wed, 22 May 2013 03:11:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uf3CB-0003z7-RV for emacs-orgmode@gnu.org; Wed, 22 May 2013 03:10:54 -0400 Received: from mx1.supremebox.com ([198.23.53.39]:35066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf3CB-0003z2-M1 for emacs-orgmode@gnu.org; Wed, 22 May 2013 03:10:47 -0400 Received: from [77.189.172.206] (helo=localhost) by mx1.supremebox.com with esmtpa (Exim 4.80) (envelope-from ) id 1Uf3CA-0002o7-Kl for emacs-orgmode@gnu.org; Wed, 22 May 2013 07:10:46 +0000 Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.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