* [bug#57300] [PATCH] gnu: Add xssstate.
@ 2022-08-19 17:15 Ivan Vilata i Balaguer
2024-04-06 10:24 ` [bug#57300] [PATCH v2 0/1] Add xssstate v1.1 Steve George
0 siblings, 1 reply; 4+ messages in thread
From: Ivan Vilata i Balaguer @ 2022-08-19 17:15 UTC (permalink / raw)
To: 57300
[-- Attachment #1.1: Type: text/plain, Size: 324 bytes --]
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.
[1]: https://tools.suckless.org/x/xssstate/
Thanks!
--
Ivan Vilata i Balaguer -- https://elvil.net/
[-- Attachment #1.2: 0001-gnu-Add-xssstate.patch --]
[-- Type: text/plain, Size: 2260 bytes --]
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(+)
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#57300] [PATCH v2 0/1] Add xssstate v1.1
2022-08-19 17:15 [bug#57300] [PATCH] gnu: Add xssstate Ivan Vilata i Balaguer
@ 2024-04-06 10:24 ` Steve George
2024-04-06 10:24 ` [bug#57300] [PATCH v2 1/1] gnu: Add xssstate Steve George
0 siblings, 1 reply; 4+ messages in thread
From: Steve George @ 2024-04-06 10:24 UTC (permalink / raw)
To: 57300; +Cc: Steve George
Review:
* submission: commit, format, synopsis all correct - minor reword.
* submission: license correct
* functionality: test installed, guix lint is clean
* code: checked style to packages around it
* added: Reviewed-by commit trailer
* re-roll to trigger QA build
Ivan Vilata i Balaguer (1):
gnu: Add xssstate.
gnu/packages/suckless.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
base-commit: 6ec2888ff7594c7768f42ff68cf95e63142843fb
--
2.41.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#57300] [PATCH v2 1/1] gnu: Add xssstate.
2024-04-06 10:24 ` [bug#57300] [PATCH v2 0/1] Add xssstate v1.1 Steve George
@ 2024-04-06 10:24 ` Steve George
2024-04-07 19:29 ` bug#57300: " Christopher Baines
0 siblings, 1 reply; 4+ messages in thread
From: Steve George @ 2024-04-06 10:24 UTC (permalink / raw)
To: 57300; +Cc: Steve George, Ivan Vilata-i-Balaguer
From: Ivan Vilata-i-Balaguer <ivan@selidor.net>
* gnu/packages/suckless.scm (xssstate): New variable.
Reviewed-by: Steve George <steve@futurile.net>
Change-Id: I80a44b979ae987b953dcbdb3979b9b4ad8e30c79
---
gnu/packages/suckless.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index a907b2fc6b9..f01c6093bc9 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>
;;; Copyright © 2024 Clément Lassieur <clement@lassieur.org>
;;; Copyright © 2024 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2024 cage <cage-dev@twistfold.it>
@@ -1361,6 +1362,34 @@ (define-public lib9
(license (list license:expat ;modifications
license:lpl1.02))))) ;original plan9 code
+(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 "Simple tool to retrieve the X screensaver state")
+ (description
+ "A utility to retrieve the state of the X screensaver. These
+states include the idle time, the screensaver state and the length of time
+until the screensaver should be activated.")
+ (license license:x11)))
+
(define-public 9yacc
(package
(inherit lib9)
--
2.41.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-04-07 19:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-19 17:15 [bug#57300] [PATCH] gnu: Add xssstate Ivan Vilata i Balaguer
2024-04-06 10:24 ` [bug#57300] [PATCH v2 0/1] Add xssstate v1.1 Steve George
2024-04-06 10:24 ` [bug#57300] [PATCH v2 1/1] gnu: Add xssstate Steve George
2024-04-07 19:29 ` bug#57300: " Christopher Baines
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.