From patchwork Thu May 11 21:47:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Hogan X-Patchwork-Id: 49952 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id AEE3C27BBF1; Thu, 11 May 2023 22:48:18 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A89D327BBEE for ; Thu, 11 May 2023 22:48:16 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pxE8q-0002Bb-Cp; Thu, 11 May 2023 17:48:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pxE8p-0002BT-E0 for guix-patches@gnu.org; Thu, 11 May 2023 17:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxE8p-0005pb-5u for guix-patches@gnu.org; Thu, 11 May 2023 17:48:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pxE8o-0000lK-LY for guix-patches@gnu.org; Thu, 11 May 2023 17:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63454] [PATCH] gnu: Add tmux-plugin-mem-cpu-load. Resent-From: Greg Hogan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 May 2023 21:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63454 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63454@debbugs.gnu.org Cc: Greg Hogan X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16838416452761 (code B ref -1); Thu, 11 May 2023 21:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 May 2023 21:47:25 +0000 Received: from localhost ([127.0.0.1]:53584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxE8D-0000iT-4f for submit@debbugs.gnu.org; Thu, 11 May 2023 17:47:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:47486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pxE8A-0000iL-QF for submit@debbugs.gnu.org; Thu, 11 May 2023 17:47:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pxE8A-00029x-AL for guix-patches@gnu.org; Thu, 11 May 2023 17:47:22 -0400 Received: from mail-yw1-x1134.google.com ([2607:f8b0:4864:20::1134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pxE88-0005ly-Fo for guix-patches@gnu.org; Thu, 11 May 2023 17:47:22 -0400 Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-55a214572e8so141132937b3.0 for ; Thu, 11 May 2023 14:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greghogan-com.20221208.gappssmtp.com; s=20221208; t=1683841639; x=1686433639; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2o963T5SlsT9UabCH2nS4L2+A7kdXnjl5p/9bmwQKY0=; b=2UYSgS1uL1+vHgu8MCC7yM0zIBde4x3ojOPpIFcqIKPNYPWrAyOT2nk9/Bq7CwJu4b +GqORYliZ0QeyymhBn8vEaha3U1PD66l/GiFRAkygfPRuoY/+JlaaUDoWEqHyjB4lKR6 yNN8HY3X8Sszm4zgUqyUTmyvfynMzDo+tJOtL5qlt4yHzaqX4PzMKv/gTutB8v3lSi9G HycZrpj9VIfhplJrkQ9iFnjBlMn+8ri8MdR6mi4x3fmEZWbJr4Tj92UN15Ox1cl2yoRw LlHjQ8i3zOYnFSSBd74fRRcBPoIDRmtzo+s7k9GW/E57B3IaC3DJqx7EHCOmEvk/MCfH tLZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683841639; x=1686433639; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2o963T5SlsT9UabCH2nS4L2+A7kdXnjl5p/9bmwQKY0=; b=WY1LZhkUfdl91qdt/mi0/YSGxJmXaLxYV4h384euuf3tMOcZy0IlsTNPjSrPb98m+v Nmot+1phPWTgcFqaNztB4Yq0huVrtTSV0Y6rG4LlfsiUZHb6e0gRu0N1o0DtLPHuWM0s NCdX4Xl6dg+nNy0HWsoqtNECyXEb3wAZiHsnZAhCpEUS5YspA+EBpr3mkxNBe7ysiVkH 1EgZsqnO6PyDn+osglrQ65dTV+i+wZntQ51YZ8bA6v61ctRRMqZHMaAJZvvPEvDitB8k AD0/hL25mYOMyyv9S4a4B9ErniPQFs01qulin43K2BBAT8QkV8GhgmklSghOJT1LD15u BYfQ== X-Gm-Message-State: AC+VfDy2+D9gd3oTHP2mOprmikETvs/Fb8OCgzsUWxjUeVKJ8Ws0F37k tIOCzpg9NzLnNDlIfmI/RQ374AA8Duw/vE/s6bw= X-Google-Smtp-Source: ACHHUZ7BUFIBv9OKPjdJnKw7RTlIezHj7L5lkwO3VWdHxLObThmWZ7KDUeAVLT/4hwwjdE5pe5NT8A== X-Received: by 2002:a81:6c42:0:b0:55a:1022:7814 with SMTP id h63-20020a816c42000000b0055a10227814mr24150527ywc.28.1683841639027; Thu, 11 May 2023 14:47:19 -0700 (PDT) Received: from ip-172-31-16-142.us-east-2.compute.internal (ec2-18-117-196-55.us-east-2.compute.amazonaws.com. [18.117.196.55]) by smtp.gmail.com with ESMTPSA id c64-20020a0df343000000b0055aafcef659sm5236795ywf.5.2023.05.11.14.47.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 14:47:18 -0700 (PDT) From: Greg Hogan Date: Thu, 11 May 2023 21:47:15 +0000 Message-Id: <20230511214715.1106253-1-code@greghogan.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Received-SPF: none client-ip=2607:f8b0:4864:20::1134; envelope-from=code@greghogan.com; helo=mail-yw1-x1134.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/tmux.scm (tmux-plugin-mem-cpu-load): New variable. --- gnu/packages/tmux.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/tmux.scm b/gnu/packages/tmux.scm index ec6bf78559..a0c877b795 100644 --- a/gnu/packages/tmux.scm +++ b/gnu/packages/tmux.scm @@ -30,6 +30,7 @@ (define-module (gnu packages tmux) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module (guix build-system python) @@ -357,3 +358,30 @@ (define-public tmux-plugin-continuum left it off the last time it was used.") (home-page "https://github.com/tmux-plugins/tmux-continuum/") (license license:expat)))) + +(define-public tmux-plugin-mem-cpu-load + (package + (name "tmux-plugin-mem-cpu-load") + (version "3.7.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/thewtex/tmux-mem-cpu-load") + (commit (string-append "v" version)))) + (sha256 + (base32 + "03bax7g9jlsci44ccs50drh617ya3fzvlplwyvxfyb7mgmh85r72")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (synopsis "CPU, RAM, and load monitor for use with tmux") + (description "A simple, lightweight program for system monitoring in the +status line of tmux. + +The memory monitor displays the used and available memory. + +The CPU usage monitor outputs a percent CPU usage over all processors. It also +displays a textual bar graph of the current percent usage. + +The system load average is also displayed.") + (home-page "https://github.com/thewtex/tmux-mem-cpu-load") + (license license:asl2.0)))