From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5884 invoked by alias); 27 Dec 2016 13:12:35 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 40239 Received: (qmail 8491 invoked from network); 27 Dec 2016 13:12:35 -0000 X-Qmail-Scanner-Diagnostics: from out1-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.25):SA:0(-0.7/5.0):. Processed in 0.730119 secs); 27 Dec 2016 13:12:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: danielsh@apache.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at apache.org does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=A7WGWK+xMhd1nHuPOfrptgf+9FU=; b=GwyD/XBA9bsr3mb934Yk vKI/Ct4esNejJb/R0xsvDyxLab/JBOSI/XpD6hCZuCSwUDZO8nAGuR6A8j80nJVF Nk0xe3942BNxqjB+MoPS8MvFNCRmPsCU9PCeYmaWp7A9udrzng4bir0bI8fDmRcK 2qa+yQx+i7dPeg/MMY8ODdM= X-ME-Sender: X-Sasl-enc: yf7QXn0Yfp/51hpga0sPzB9D9W3/Htu9OzoL3xwDAEz8 1482844349 Date: Tue, 27 Dec 2016 13:09:25 +0000 From: Daniel Shahaf To: shirish =?utf-8?B?4KS24KS/4KSw4KWA4KS3?= Cc: zsh-workers , Adam Subject: Re: [FEATURE REQUEST] Adding battery power to bigfade prompt Message-ID: <20161227130925.GB4796@fujitsu.shahaf.local2> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) shirish शिरीष wrote on Tue, Dec 27, 2016 at 01:51:28 +0530: > It would be nice if either bigfade or some other prompt adds battery > power to its prompt, please. How would that be done portably? The tool to use is ioreg(8) on OS X, apm(8) on FreeBSD, and acpi(8) on Linux; and I'm not sure whether acpi(8) exists in all Linuxes. Cheers, Daniel (I have battery info in my tmux status line)