unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#57734] [PATCH 0/1] Add rot8 package
@ 2022-09-11 17:35 M
  2022-09-11 17:37 ` [bug#57734] [PATCH] gnu: Add batsignal M
  0 siblings, 1 reply; 6+ messages in thread
From: M @ 2022-09-11 17:35 UTC (permalink / raw)
  To: 57734; +Cc: M

rot8 is a daemon that uses accelerometer data to rotate a given display and its
associated inputs (like touchscreen, stylus tablet) on the fly. I tested it on
the GPD Pocket 3 in Guix and Swaywm, seemed to work pretty well.

M (1):
  gnu: Add rot8.

 gnu/packages/rust-apps.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

-- 
2.37.2





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

* [bug#57734] [PATCH] gnu: Add batsignal.
  2022-09-11 17:35 [bug#57734] [PATCH 0/1] Add rot8 package M
@ 2022-09-11 17:37 ` M
  2022-09-11 17:37   ` [bug#57734] [PATCH 1/1] gnu: Add rot8 M
  0 siblings, 1 reply; 6+ messages in thread
From: M @ 2022-09-11 17:37 UTC (permalink / raw)
  To: 57734; +Cc: M

* gnu/packages/monitoring.scm (batsignal): New variable.
  Co-authored by unmatched-paren and matf
---
 gnu/packages/monitoring.scm | 45 +++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm
index 47845700ee..459b8d8539 100644
--- a/gnu/packages/monitoring.scm
+++ b/gnu/packages/monitoring.scm
@@ -12,6 +12,8 @@
 ;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte@mind.be>
 ;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
 ;;; Copyright © 2022 Hartmut Goebel <h.goebel@crazy-compilers.com>
+;;; Copyright © 2022 ( <paren@disroot.org>
+;;; Copyright © 2022 Mathieu Laparie <mlaparie@disr.it>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -50,6 +52,7 @@ (define-module (gnu packages monitoring)
   #:use-module (gnu packages django)
   #:use-module (gnu packages gd)
   #:use-module (gnu packages gettext)
+  #:use-module (gnu packages gnome)
   #:use-module (gnu packages image)
   #:use-module (gnu packages mail)
   #:use-module (gnu packages ncurses)
@@ -764,3 +767,45 @@ (define-public python-statsd
     (description "StatsD is a friendly front-end to Graphite.  This package
 provides a simple Python client for the StatsD daemon.")
     (license license:expat)))
+
+(define-public batsignal
+  (package
+    (name "batsignal")
+    (version "1.6.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/electrickite/batsignal")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0b1j6mljnqgxwr3id3r9shzhsjk5r0qdh9cxkvy1dm4kzbyc4dxq"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:make-flags
+           #~(list (string-append "PREFIX=" #$output)
+                   (string-append "CC=" #$(cc-for-target)))
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'fix-cross-compile
+                 (lambda _
+                   (substitute* "Makefile"
+                     (("pkg-config")
+                      #$(pkg-config-for-target)))))
+               (delete 'configure)
+                            (replace 'check
+               (lambda* (#:key tests? #:allow-other-keys)
+                 (when tests?
+                   (invoke "./batsignal" "-v")))))))
+    (inputs (list libnotify))
+    (native-inputs (list pkg-config))
+    (home-page "https://github.com/electrickite/batsignal")
+    (synopsis "Power monitoring tool")
+    (description
+     "This package provides a daemon that monitors device power
+levels, notifying the user and optionally running a command when
+it reaches user-configured power thresholds. This can be used to force powering
+off a laptop when the battery gets below critical levels, instead of damaging
+the battery.")
+    (license license:isc)))
-- 
2.37.2





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

* [bug#57734] [PATCH 1/1] gnu: Add rot8.
  2022-09-11 17:37 ` [bug#57734] [PATCH] gnu: Add batsignal M
@ 2022-09-11 17:37   ` M
  2022-09-11 17:58     ` M
  2022-09-24 14:15     ` bug#57734: [PATCH 0/1] Add rot8 package Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: M @ 2022-09-11 17:37 UTC (permalink / raw)
  To: 57734; +Cc: M

* gnu/packages/rust-apps.scm (rot8): New variable.
---
 gnu/packages/rust-apps.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index b89eff4eb0..8e7c4a0ed5 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -18,6 +18,7 @@
 ;;; Copyright © 2022 Aleksandr Vityazev <avityazev@posteo.org>
 ;;; Copyright © 2022 Gabriel Arazas <foo.dogsquared@gmail.com>
 ;;; Copyright © 2022 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2022 Mathieu Laparie <mlaparie@disr.it>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -768,6 +769,31 @@ (define-public ripgrep
 gitignore rules.")
     (license (list license:unlicense license:expat))))
 
+(define-public rot8
+  (package
+    (name "rot8")
+    (version "0.1.4")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "rot8" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1m5kzpqq9pgc19lbnh20iaq654lzlmc1m5fc9f73w2vpwqdiw1qf"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-clap" ,rust-clap-2)
+                       ("rust-glob" ,rust-glob-0.3)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "https://github.com/efernau/rot8/")
+    (synopsis "Automatic display rotation using built-in accelerometer")
+    (description "@command{rot8} is a daemon that automates rotating screen and
+associated input devices using the built-in accelerometer; handy for convertible
+touchscreen devices.")
+    (license license:expat)))
+                
 (define-public git-interactive-rebase-tool
   (package
     (name "git-interactive-rebase-tool")
-- 
2.37.2





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

* [bug#57734] [PATCH 1/1] gnu: Add rot8.
  2022-09-11 17:37   ` [bug#57734] [PATCH 1/1] gnu: Add rot8 M
@ 2022-09-11 17:58     ` M
  2022-09-11 18:50       ` ( via Guix-patches via
  2022-09-24 14:15     ` bug#57734: [PATCH 0/1] Add rot8 package Ludovic Courtès
  1 sibling, 1 reply; 6+ messages in thread
From: M @ 2022-09-11 17:58 UTC (permalink / raw)
  To: M; +Cc: 57734

I just found https://issues.guix.gnu.org/49703 too, I should have looked better. Can those be merged?

Also, I realized that I had another modified file when I sent the patch (gnu/packages/monitoring.scm) and I did not notice that both patches were sent in the same issue until I saw my emails. How could I fix this?




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

* [bug#57734] [PATCH 1/1] gnu: Add rot8.
  2022-09-11 17:58     ` M
@ 2022-09-11 18:50       ` ( via Guix-patches via
  0 siblings, 0 replies; 6+ messages in thread
From: ( via Guix-patches via @ 2022-09-11 18:50 UTC (permalink / raw)
  To: M; +Cc: 57734

On Sun Sep 11, 2022 at 6:58 PM BST, M wrote:
> I just found https://issues.guix.gnu.org/49703 too, I should have looked better. Can those be merged?

Your one looks better, to be honest. It's fine if there's an abandoned older
version of a package; that's the case with my aerc patchset.

> Also, I realized that I had another modified file when I sent the patch (gnu/packages/monitoring.scm) and I did not notice that both patches were sent in the same issue until I saw my emails. How could I fix this?

There's no way you can fix it, afaik. It doesn't matter, really.

    -- (




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

* bug#57734: [PATCH 0/1] Add rot8 package
  2022-09-11 17:37   ` [bug#57734] [PATCH 1/1] gnu: Add rot8 M
  2022-09-11 17:58     ` M
@ 2022-09-24 14:15     ` Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2022-09-24 14:15 UTC (permalink / raw)
  To: M; +Cc: 57734-done

M <matf@disr.it> skribis:

> * gnu/packages/rust-apps.scm (rot8): New variable.

Applied, thanks!




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

end of thread, other threads:[~2022-09-24 14:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-11 17:35 [bug#57734] [PATCH 0/1] Add rot8 package M
2022-09-11 17:37 ` [bug#57734] [PATCH] gnu: Add batsignal M
2022-09-11 17:37   ` [bug#57734] [PATCH 1/1] gnu: Add rot8 M
2022-09-11 17:58     ` M
2022-09-11 18:50       ` ( via Guix-patches via
2022-09-24 14:15     ` bug#57734: [PATCH 0/1] Add rot8 package Ludovic Courtès

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).