From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: Re: [PATCH] gnu: Add xcape. Date: Mon, 16 Mar 2015 09:11:43 -0400 Message-ID: <87mw3d13zk.fsf@fsf.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXUoA-0004Ch-Fy for guix-devel@gnu.org; Mon, 16 Mar 2015 09:11:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXUo6-000817-13 for guix-devel@gnu.org; Mon, 16 Mar 2015 09:11:50 -0400 Received: from mail.fsf.org ([208.118.235.13]:44141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXUo5-00080z-UO for guix-devel@gnu.org; Mon, 16 Mar 2015 09:11:45 -0400 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Axel , guix-devel Axel writes: > Xcape allows to use modifier key as another key when pressed and > released on its own. > > --=20 > =D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80 =D0=93=D1=80=D0=B0= =D1=84=D0=BE=D0=B2 > From 0ad9b0eea2cd6151072d27f5e2505db9db083b37 Mon Sep 17 00:00:00 2001 > From: "Alexander I.Grafov (Axel)" > Date: Sun, 15 Mar 2015 20:01:03 +0300 > Subject: [PATCH] gnu: Add xcape. >=20 > * gnu/packages/xdisorg.scm (xcape): New variable. > --- > gnu/packages/xdisorg.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 42 insertions(+) >=20 > diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm > index fbf1bbf..03f8186 100644 > --- a/gnu/packages/xdisorg.scm > +++ b/gnu/packages/xdisorg.scm > @@ -486,3 +486,45 @@ unicode, XFT and may be extended with Perl plugins. = It also comes with a > client/daemon pair that lets you open any number of terminal windows from > within a single process.") > (license license:gpl3+))) > + > +(define-public xcape > + (package > + (name "xcape") > + (version "1.1") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "https://github.com/alols/" > + name > + "/archive/v" > + version > + ".tar.gz")) It's a matter of preference, but we typically put multiple arguments on the same line and break when we would go over 80 characters. > + (sha256 > + (base32 > + "0jkdiaxc6sryrbibdgi2y1c48n4l9xyazhxr16l6h4ibddx95bk9")))) > + (build-system gnu-build-system) > + (arguments > + `(#:tests? #f ; no test target > + #:phases (alist-replace > + 'configure > + (let ((out (assoc-ref %outputs "out"))) > + (lambda _ > + (substitute* "Makefile" > + (("(PREFIX[[:blank:]]*=3D.*)") > + (string-append "CC:=3Dgcc\nPREFIX=3D" out "\n")) > + (("(MANDIR.*=3D.*)") > + (string-append "MANDIR=3D/share/man/man1\n"))))) > + %standard-phases))) > + (inputs > + `(("libXtst" ,libxtst) > + ("libX11" ,libx11))) Use a lowercase "x", to match the package names. > + (native-inputs > + `(("pkg-config" ,pkg-config))) > + (home-page "http://github.com/alols/xcape") > + (synopsis "Use a modifier key in X.org as another key") > + (description > + "This utility for X.org allows to use modifier key as another key w= hen > +pressed and released on its own. The default behaviour is to generate > +the Escape key when Left Control is pressed and released on its own.") > + (license license:gpl3+))) > --=20 > 2.2.1 Looking good. Thanks! --=20 David Thompson Web Developer - Free Software Foundation - http://fsf.org GPG Key: 0FF1D807 Support the FSF: https://fsf.org/donate