unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#39386] [PATCH] gnu: Add xwrits.
@ 2020-02-02  1:04 Ivan Vilata i Balaguer
  2020-02-02 13:14 ` bug#39386: " Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Ivan Vilata i Balaguer @ 2020-02-02  1:04 UTC (permalink / raw)
  To: 39386


[-- Attachment #1.1: Type: text/plain, Size: 299 bytes --]

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/

-- 
Ivan Vilata i Balaguer -- https://elvil.net/

[-- Attachment #1.2: 0001-gnu-Add-xwrits.patch --]
[-- Type: text/plain, Size: 2553 bytes --]

From c4ca25190858e790e0a29c8b17bef05273990cf7 Mon Sep 17 00:00:00 2001
From: Ivan Vilata-i-Balaguer <ivan@selidor.net>
Date: Sat, 1 Feb 2020 19:46:44 -0500
Subject: [PATCH] gnu: Add xwrits.

* gnu/packages/xdisorg.scm (xwrits): New variable.
---
 gnu/packages/xdisorg.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

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 <josh@inv.alid.pw>
 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
 ;;; Copyright © 2020 Guillaume Le Vaillant <glv@posteo.net>
+;;; Copyright © 2020 Ivan Vilata i Balaguer <ivan@selidor.net>
 ;;;
 ;;; 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)))
-- 
2.24.1


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#39386: [PATCH] gnu: Add xwrits.
  2020-02-02  1:04 [bug#39386] [PATCH] gnu: Add xwrits Ivan Vilata i Balaguer
@ 2020-02-02 13:14 ` Nicolas Goaziou
  2020-02-06  9:24   ` [bug#39386] " Ivan Vilata i Balaguer
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2020-02-02 13:14 UTC (permalink / raw)
  To: Ivan Vilata i Balaguer; +Cc: 39386-done

Hello,

Ivan Vilata i Balaguer <ivan@selidor.net> writes:

> 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/

I added libxinerama input and applied your patch. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#39386] [PATCH] gnu: Add xwrits.
  2020-02-02 13:14 ` bug#39386: " Nicolas Goaziou
@ 2020-02-06  9:24   ` Ivan Vilata i Balaguer
  0 siblings, 0 replies; 3+ messages in thread
From: Ivan Vilata i Balaguer @ 2020-02-06  9:24 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 39386-done, Ivan Vilata i Balaguer

Nicolas Goaziou (2020-02-02 14:14:41 +0100) wrote:

> Ivan Vilata i Balaguer <ivan@selidor.net> writes:
> 
> > 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/
> 
> I added libxinerama input and applied your patch. Thank you.

Umm, I never noticed it had Xinerama support…  I like how windows stay
consistent between desktops now. `:)`

Thanks!

-- 
Ivan Vilata i Balaguer -- https://elvil.net/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-06  9:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-02  1:04 [bug#39386] [PATCH] gnu: Add xwrits Ivan Vilata i Balaguer
2020-02-02 13:14 ` bug#39386: " Nicolas Goaziou
2020-02-06  9:24   ` [bug#39386] " Ivan Vilata i Balaguer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.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).