From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EK4gK79syWBuBQEAgWs5BA (envelope-from ) for ; Wed, 16 Jun 2021 05:15:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CGDkJr9syWCeQwAAbx9fmQ (envelope-from ) for ; Wed, 16 Jun 2021 03:15:11 +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 7782B1D383 for ; Wed, 16 Jun 2021 05:15:11 +0200 (CEST) Received: from localhost ([::1]:53958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltM1F-0000wi-Ts for larch@yhetil.org; Tue, 15 Jun 2021 23:15:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltM18-0000wH-9s for guix-patches@gnu.org; Tue, 15 Jun 2021 23:15:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39608) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltM18-0002Xc-1l for guix-patches@gnu.org; Tue, 15 Jun 2021 23:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ltM17-0006Um-PJ for guix-patches@gnu.org; Tue, 15 Jun 2021 23:15:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48996] [PATCH v5] 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 03:15:01 +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.162381328524924 (code B ref 48996); Wed, 16 Jun 2021 03:15:01 +0000 Received: (at 48996) by debbugs.gnu.org; 16 Jun 2021 03:14:45 +0000 Received: from localhost ([127.0.0.1]:51154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltM0r-0006Tw-CO for submit@debbugs.gnu.org; Tue, 15 Jun 2021 23:14:45 -0400 Received: from out0.migadu.com ([94.23.1.103]:37261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltM0o-0006Tj-3c for 48996@debbugs.gnu.org; Tue, 15 Jun 2021 23:14:43 -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=1623813279; 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=xtx3ljcjfoKZADbEt74wH+0ws1SX5TlVIFMPQwZrY6k=; b=CBqM8TAxKMh4sw4G2Sq+hVdKgSNMN7CfnmwA+93ubWbH+quuJmSt/NGlvNkMLmTvDe6nah Rgg4Ok0UNacudImEwkU+EQw4ASMGiQIsr2biLHEvx7Xx1fGeDoEqiSyByI9VBDyGHs5xSW IbC/14zG+0IYDzx7hV2wyk+RBHBlRGAl3RG5Bc1hlmCNsJegrfA5IDbl6kGJh7EHJeMq8k 366JJ9dDWi8aG9L62ILj6vBmjy3NLcwfM/MoDu5hDbpZEAypdHeaCi/Ti2zsAs7GmJCiu5 F6w3fzJ1PoJKh7B235p4Le/fqgnmi2h47GnG4THkCr/B/RYb968xloHQ7zpoug== Date: Tue, 15 Jun 2021 23:14:36 -0400 Message-Id: <20210616031436.6991-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: 7782B1D383 X-Spam-Score: -4.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: zy/YIwzv/GkE * 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..bf362d9a80 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)))) ;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 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