From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15880 invoked by alias); 27 Dec 2016 21:51:30 -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: 40242 Received: (qmail 14891 invoked from network); 27 Dec 2016 21:51:30 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f174.google.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(209.85.216.174):SA:0(-0.5/5.0):. Processed in 1.215041 secs); 27 Dec 2016 21:51:30 -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.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: shirishag75@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.216.174 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=uY+DmpqhBplgLs/d1guGrQomN02vWjZc5P5+VdmiLzA=; b=A/RSoCE/s8k0PrMV/Ug6X56gI49Dc1JvkP8ZFWtWcjsAXI/CuuzGuIMFCSq1OuP3Ex PssEr53rZU41ER6gWPIF1xdpM80gNcIO/h1bGol4IQP/9vORIoQm/8DdQHWdpI11zxMt NiXZ4F0EGDAGtUm9t+tXbJOv0Oyf2MQZBTSrCai/aqZdvVTZhrZYoGWKJqx6BS/AbKRD t2pw4WO1Ba0Urr0fldOORQ4c85azsva09UoQI76rBJwJLcvvtzldumiCQFo14zJN+yRO eOVOuxGVtiLbsoj1TvZaJjUkHuqpA+Ewme5Vg4R1ty7XQPtEVcjA6K51E7DYuhEak98H sarA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=uY+DmpqhBplgLs/d1guGrQomN02vWjZc5P5+VdmiLzA=; b=K2NcvdF5YTOPVwGpkWIFwI0MJWNRwjweNhyscCVJON+9LWdS2VIrxi/gOJrpYdMy8s 1d/6aOzV113zrqS/thTyoJ20xi9DDylmpXqeOg7oQ5b9go2zAeivUehRYk2JpTMO15ui MEP/K5UEfkp/rHKZahaaulEbCYddOoNMWPFFKl/w7yqvSQwF+QEHUgBrGozCILEVgCl2 rGRR5OLPyDusTxtAZSeQ+ewZxb1XTHY0cIMyqfXJGwsZIh3l4QZxMY3TrWbPI6kpzHEQ H8soPCsOjQITJOHZ+RShrMh9FupTOxSbsdDXWui+11ONNkfpMaMRFWi+UtAmwHj8u99/ VtRg== X-Gm-Message-State: AIkVDXLip2FRsHjVcxU7zG0qsO4gjnGVpjxyxeJyxM8iwpTkr/X+1Ki3gbifdoV++e4C5Ab69eOyeKsKZRYCgw== X-Received: by 10.200.0.145 with SMTP id c17mr29932128qtg.275.1482871631178; Tue, 27 Dec 2016 12:47:11 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20161227130925.GB4796@fujitsu.shahaf.local2> References: <20161227130925.GB4796@fujitsu.shahaf.local2> From: =?UTF-8?B?c2hpcmlzaCDgpLbgpL/gpLDgpYDgpLc=?= Date: Wed, 28 Dec 2016 02:17:10 +0530 Message-ID: Subject: Re: [FEATURE REQUEST] Adding battery power to bigfade prompt To: Daniel Shahaf Cc: zsh-workers , Adam Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable at bottom :- On 27/12/2016, Daniel Shahaf wrote: > shirish =E0=A4=B6=E0=A4=BF=E0=A4=B0=E0=A5=80=E0=A4=B7 wrote on Tue, Dec 2= 7, 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) > Agreed. In that case could we have some sort of generic battery modules that we could enable on our platform. What could be done is have four optional scripts added to zsh documenting which script works with which platform/technology etc. and then the user would just enable it . The only thing that the user would have to then think on how to have it on the extreme right or left (hinking about users who write from right to left rather than the conventional left to right.) @ Daniel - if there is a specific module/script which could be used to easily do this, please share it either on-list or off-list OR if you want, can also re-ask the same thing in zsh-users@zsh.org if you think it's a better domain for this type of thing. Look forward to hearing from you. --=20 Regards, Shirish Agarwal =E0=A4=B6=E0=A4=BF=E0=A4=B0=E0=A5=80=E0=A4=B7 = =E0=A4=85=E0=A4=97=E0=A5=8D=E0=A4=B0=E0=A4=B5=E0=A4=BE=E0=A4=B2 My quotes in this email licensed under CC 3.0 http://creativecommons.org/licenses/by-nc/3.0/ http://flossexperiences.wordpress.com EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8