From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2F9QMXSayWBcVQEAgWs5BA (envelope-from ) for ; Wed, 16 Jun 2021 08:30:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eGvCLHSayWBuHQAA1q6Kng (envelope-from ) for ; Wed, 16 Jun 2021 06:30:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 90E261F7D7 for ; Wed, 16 Jun 2021 08:30:12 +0200 (CEST) Received: from localhost ([::1]:33796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltP3z-0001bJ-8K for larch@yhetil.org; Wed, 16 Jun 2021 02:30:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltP3q-0001bA-Kw for guix-patches@gnu.org; Wed, 16 Jun 2021 02:30:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39731) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltP3q-0004RF-Cf for guix-patches@gnu.org; Wed, 16 Jun 2021 02:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ltP3q-00035X-9v for guix-patches@gnu.org; Wed, 16 Jun 2021 02:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48996] [PATCH v6] gnu: Add slstatus. References: <20210613055140.2414-1-rg@raghavgururajan.name> In-Reply-To: <20210613055140.2414-1-rg@raghavgururajan.name> Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 16 Jun 2021 06:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48996 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48996@debbugs.gnu.org Cc: Raghav Gururajan Received: via spool by 48996-submit@debbugs.gnu.org id=B48996.162382495911794 (code B ref 48996); Wed, 16 Jun 2021 06:30:02 +0000 Received: (at 48996) by debbugs.gnu.org; 16 Jun 2021 06:29:19 +0000 Received: from localhost ([127.0.0.1]:51277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltP39-00034A-BG for submit@debbugs.gnu.org; Wed, 16 Jun 2021 02:29:19 -0400 Received: from out2.migadu.com ([188.165.223.204]:14442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltP36-000341-Kt for 48996@debbugs.gnu.org; Wed, 16 Jun 2021 02:29:18 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1623824955; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=oj7hfkIKRg1mVdoqtisKBoFAPNw7Av6FKKWRVzAKb3o=; b=abR+oMNUFGlWLDttAUXv/5Xq2N63LBfVn7HGYbx+JqTFw3XtCN65efPUR6UWh29qWtM+YN AfrVwUg7FI3frTvx3cAzY9qXDv91bkEo7D6S39adCYwGvN9qnloSQRk7nS+YZOqnoeMYaT Wty1ObzSDE4I2GehhLFeiodXQTnu8Ta2iUjcotLFBBXUU8alQ6BLwuEZIIXIsntwzgo/NS 2EguZnGCyAArceTcDmPnhgrg67Fb0+yUwpfBQYPh33M+Im1lWqrPesSfjMdREDL51brjEv 9AgKE/69cc3+OV0WGdlvRITDzGK2cg3eEGPwA0qBc0tlJ6PZ4B7ykGvbSSddqQ== Date: Wed, 16 Jun 2021 02:29:06 -0400 Message-Id: <20210616062906.10490-1-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Auth-User: rg@raghavgururajan.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches From: Raghav Gururajan via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; none X-Migadu-Queue-Id: 90E261F7D7 X-Spam-Score: -4.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6QNQQP6oA7qx * gnu/packages/suckless.scm (slstatus): New variable. --- gnu/packages/suckless.scm | 62 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm index f4bf01c5df..65f4fa85a9 100644 --- a/gnu/packages/suckless.scm +++ b/gnu/packages/suckless.scm @@ -49,6 +49,68 @@ #: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" + (("/usr/local") (assoc-ref outputs "out")) + (("/usr/X11R6") (assoc-ref inputs "x11")) + (("CC = cc") (string-append "CC = " ,(cc-for-target)))))) + (delete 'configure)))) ;no configure script + (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 the 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