From patchwork Sun Feb 2 01:04:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ivan Vilata i Balaguer X-Patchwork-Id: 20060 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D59C3168AB; Sun, 2 Feb 2020 01:09:36 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 5899716776 for ; Sun, 2 Feb 2020 01:09:36 +0000 (GMT) Received: from localhost ([::1]:52216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iy3lX-0005It-RQ for patchwork@mira.cbaines.net; Sat, 01 Feb 2020 20:09:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45907) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iy3i7-0005u8-VH for guix-patches@gnu.org; Sat, 01 Feb 2020 20:06:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iy3i6-0002mJ-KX for guix-patches@gnu.org; Sat, 01 Feb 2020 20:06:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33484) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iy3i6-0002mD-HT for guix-patches@gnu.org; Sat, 01 Feb 2020 20:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iy3i6-00065u-Dc for guix-patches@gnu.org; Sat, 01 Feb 2020 20:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39386] [PATCH] gnu: Add xwrits. Resent-From: Ivan Vilata i Balaguer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Feb 2020 01:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39386 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39386@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158060550223350 (code B ref -1); Sun, 02 Feb 2020 01:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Feb 2020 01:05:02 +0000 Received: from localhost ([127.0.0.1]:39456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iy3h1-000640-UR for submit@debbugs.gnu.org; Sat, 01 Feb 2020 20:05:02 -0500 Received: from lists.gnu.org ([209.51.188.17]:45275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iy3h0-00063s-9N for submit@debbugs.gnu.org; Sat, 01 Feb 2020 20:04:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45639) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iy3gy-0003eK-Nv for guix-patches@gnu.org; Sat, 01 Feb 2020 20:04:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iy3gw-00023o-Vx for guix-patches@gnu.org; Sat, 01 Feb 2020 20:04:52 -0500 Received: from lev.selidor.net ([2600:3c03:e001:1100::1]:45782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iy3gw-00020h-Q3 for guix-patches@gnu.org; Sat, 01 Feb 2020 20:04:50 -0500 Received: from sax.terramar.selidor.net (unknown [IPv6:2600:3c03:e001:114e:6024:f899:638c:ec80]) by lev.selidor.net (Postfix) with ESMTP id 9F559CB76; Sun, 2 Feb 2020 01:04:48 +0000 (UTC) Received: by sax.terramar.selidor.net (Postfix, from userid 1000) id DED7C9A3744; Sat, 1 Feb 2020 20:04:45 -0500 (EST) Date: Sat, 1 Feb 2020 20:04:45 -0500 From: Ivan Vilata i Balaguer Message-ID: <20200202010445.GI2935097@sax.terramar.selidor.net> MIME-Version: 1.0 Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi! This adds a package definition for the very useful and health-conscious (if you type a lot) [Xwrits][1] program. The definition is the result from some newbie hacking in Guix Days 2020. `:)` [1]: http://www.lcdf.org/~eddietwo/xwrits/ diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index ecefab1dbb..12f2cb2466 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -30,6 +30,7 @@ ;;; Copyright © 2019 Josh Holland ;;; Copyright © 2019 Tanguy Le Carrour ;;; Copyright © 2020 Guillaume Le Vaillant +;;; Copyright © 2020 Ivan Vilata i Balaguer ;;; ;;; This file is part of GNU Guix. ;;; @@ -2005,3 +2006,37 @@ The cutbuffer and clipboard selection are always synchronized.") can optionally use some appearance settings from XSettings, tint2 and GTK.") (home-page "https://jgmenu.github.io/") (license license:gpl2))) + +(define-public xwrits + (package + (name "xwrits") + (version "2.26") + (source + (origin + (method url-fetch) + (uri (string-append "https://www.lcdf.org/~eddietwo/xwrits/" + "xwrits-" version ".tar.gz")) + (sha256 + (base32 "1n7y0fqpcvmzznvbsn14hzy5ddaa3lilm8aw6ckscqndnh4lijma")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'install-docs + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (string-append out "/share/doc/xwrits"))) + (install-file "GESTURES" doc) + (install-file "README" doc) + #t)))))) + (inputs + `(("libx11" ,libx11))) + (home-page "https://www.lcdf.org/~eddietwo/xwrits/") + (synopsis "Reminds you to take wrist breaks") + (description "Xwrits reminds you to take wrist breaks for prevention or +management of repetitive stress injuries. When you should take a break, it +pops up an X window, the warning window. You click on the warning window, +then take a break. The window changes appearance while you take the break. +It changes again when your break is over. Then you just resume typing. +Xwrits hides itself until you should take another break.") + (license license:gpl2)))