[PATCH] gnu: Add xssstate.

  • Open
  • quality assurance status badge
Details
One participant
  • Ivan Vilata i Balaguer
Owner
unassigned
Submitted by
Ivan Vilata i Balaguer
Severity
normal
I
I
Ivan Vilata i Balaguer wrote on 19 Aug 2022 19:15
(address . guix-patches@gnu.org)
Yv/FFpSiXlQuRfPP@sax.terramar.selidor.net
Hi! The attached patch adds the [xssstate][1] package from the Suckless
suite. It can be used in scripts to get information about the X screen saver,
like idle time, current state, and time until activation.


Thanks!

--
Ivan Vilata i Balaguer -- https://elvil.net/
From 5a321f071bccf85d26d2ae4bd7c4ac92cbaecaf4 Mon Sep 17 00:00:00 2001
From: Ivan Vilata-i-Balaguer <ivan@selidor.net>
Date: Fri, 19 Aug 2022 18:57:56 +0200
Subject: [PATCH] gnu: Add xssstate.

* gnu/packages/suckless.scm (xssstate): New variable.
---
gnu/packages/suckless.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)

Toggle diff (46 lines)
diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index dbc3537ac6..bc0961942b 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -14,6 +14,7 @@
;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
;;; Copyright © 2022 jgart <jgart@dismail.de>
;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
+;;; Copyright © 2022 Ivan Vilata i Balaguer <ivan@selidor.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1217,3 +1218,31 @@ (define-public svkbd
(description "svkbd is a simple virtual keyboard, intended to be used in
environments, where no keyboard is available.")
(license license:expat)))
+
+(define-public xssstate
+ (package
+ (name "xssstate")
+ (version "1.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://dl.suckless.org/tools/xssstate-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "04b03jz38pn5qhddg8a9hh01qqzrrdjvsq09qrxj9sx8lq2gbdn4"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f ; no tests
+ #:make-flags (list (string-append "CC="
+ ,(cc-for-target))
+ (string-append "PREFIX=" %output))
+ #:phases (modify-phases %standard-phases
+ (delete 'configure))))
+ (inputs (list libxscrnsaver))
+ (home-page "https://tools.suckless.org/x/xssstate/")
+ (synopsis "A simple tool to retrieve the X screensaver state")
+ (description
+ "This is a simple utility to get the state of the X screensaver extension.
+These states include the idle time, the screensaver state and the time how
+long to wait until the screensaver should be active.")
+ (license license:x11)))
--
2.37.2
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEHpvwBPZcchIQr6TuPezBBfXdI4IFAmL/xQ4ACgkQPezBBfXd
I4KsCg/+IZ9WQOUDIow62jihtnNFE9p/5AP5RAYaBgPhjb2Wyvg1ZtO+FZ22I8Jq
+s0edOiJ4X4/BJlOgl2Ix103DEVYdSPeP0Z/nwar8QUEpOjyd7TeRxege2waFKmx
aYZqn2X7sel5T6oiT3ZcXmxwm6t/V9qc6Ci6pPGwdy/6Mt1Z6qXRFH2F36Zg1jOy
YuubKo5QGrYSUBabvcm3lVCJbBGNDWHJv3quOQSGjURwud6gG4B+hcNHRsoEKYn8
1iPy1OXVfrhknGttLb9ZYwy+joMLfvxQZsr2c1dGRYsXtDO1A/Sr0OoPvdlTFZOb
HuI7eWDZrXKh60J0KELlx6Hj5oJ4ObHpqFAf9T8WwVCkK9TKP1WR1lG/GTmSkv7W
8OH/mQkRqkYJVDFK5CSbAULvktC3cuMVPNzrvFjqqvYkKSoKaOdRUk9bpJIgSvSS
BDAwA61gAU0dBNbPPLdZsyif8VXkioOJawF2pyJXyHvgbF6QWlhgopxfBhSOsTMT
XwKAq9gvWCKf1JgClaEMCtdvxIM2awh+OQR58sJkFuktfKD8A5pcAG8ct/zb85Pt
fJCdXCodToUSOSFUvHUuMHiUG+VMVW+byAvvs6T1hu4F9RGnmAzf8dgY2DCX0AB9
cU1E1VMaP1+9NwIFDG5t2WfNO/3K1Xt3LX/mgjRZw8Xw3IXixGQ=
=rrMj
-----END PGP SIGNATURE-----


?