From: Raghav Gururajan via Guix-patches via <guix-patches@gnu.org>
To: 48996@debbugs.gnu.org
Cc: Raghav Gururajan <rg@raghavgururajan.name>
Subject: [bug#48996] [PATCH v4] gnu: Add slstatus.
Date: Tue, 15 Jun 2021 23:00:05 -0400 [thread overview]
Message-ID: <20210616030005.6489-1-rg@raghavgururajan.name> (raw)
In-Reply-To: <20210613055140.2414-1-rg@raghavgururajan.name>
* gnu/packages/suckless.scm (slstatus): New variable.
---
gnu/packages/suckless.scm | 65 +++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index f4bf01c5df..a1ecfb68fe 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -49,6 +49,71 @@
#:use-module (guix utils)
#:use-module (guix packages))
+(define-public slstatus
+ ;; No release tarballs yet.
+ (let ((commit "84a2f117a32f0796045941260cdc4b69852b41e0")
+ (revision "0"))
+ (package
+ (name "slstatus")
+ (version (git-version "0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "git://git.suckless.org/slstatus.git")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "063a4fnvsjbc61alnbfdpxy0nwhh9ql9j6s9hkdv12713kv932ds"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f ;no test-suite
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (substitute* "config.mk"
+ ;; To correct PREFIX path.
+ (("/usr/local") (assoc-ref outputs "out"))
+ ;; To correct X11 path.
+ (("/usr/X11R6") (assoc-ref inputs "x11"))
+ ;; To correct CC value.
+ (("CC = cc") (string-append "CC = " ,(cc-for-target))))))
+ (delete 'configure)))) ;not required
+ (inputs
+ `(("x11" ,libx11)))
+ (home-page "https://tools.suckless.org/slstatus/")
+ (synopsis "Status Monitor for Window Managers")
+ (description "SlStatus is a suckless status monitor for window managers
+that use WM_NAME or stdin to fill the status bar.
+It provides following features:
+@itemize
+@item Battery percentage/state/time left
+@item CPU usage
+@item CPU frequency
+@item Custom shell commands
+@item Date and time
+@item Disk status (free storage, percentage, total storage and used storage)
+@item Available entropy
+@item Username/GID/UID
+@item Hostname
+@item IP address (IPv4 and IPv6)
+@item Kernel version
+@item Keyboard indicators
+@item Keymap
+@item Load average
+@item Network speeds (RX and TX)
+@item Number of files in a directory (hint: Maildir)
+@item Memory status (free memory, percentage, total memory and used memory)
+@item Swap status (free swap, percentage, total swap and used swap)
+@item Temperature
+@item Uptime
+@item Volume percentage
+@item WiFi signal percentage and ESSID
+@end itemize")
+ (license license:isc))))
+
(define-public blind
(package
(name "blind")
--
2.32.0
next prev parent reply other threads:[~2021-06-16 3:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-13 5:51 [bug#48996] [PATCH] gnu: Add slstatus Raghav Gururajan via Guix-patches via
2021-06-13 5:57 ` [bug#48996] [PATCH v2] " Raghav Gururajan via Guix-patches via
2021-06-13 6:13 ` [bug#48996] [PATCH v3] " Raghav Gururajan via Guix-patches via
2021-06-16 3:00 ` Raghav Gururajan via Guix-patches via [this message]
2021-06-16 3:14 ` [bug#48996] [PATCH v5] " Raghav Gururajan via Guix-patches via
2021-06-16 6:29 ` [bug#48996] [PATCH v6] " Raghav Gururajan via Guix-patches via
2021-06-16 6:33 ` bug#48996: (no subject) Raghav Gururajan via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210616030005.6489-1-rg@raghavgururajan.name \
--to=guix-patches@gnu.org \
--cc=48996@debbugs.gnu.org \
--cc=rg@raghavgururajan.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).