Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [FEATURE REQUEST] Adding battery power to bigfade prompt
- X-seq: zsh-workers 40239
- From: Daniel Shahaf <danielsh@xxxxxxxxxx>
- To: shirish शिरीष <shirishag75@xxxxxxxxx>
- Subject: Re: [FEATURE REQUEST] Adding battery power to bigfade prompt
- Date: Tue, 27 Dec 2016 13:09:25 +0000
- Cc: zsh-workers <zsh-workers@xxxxxxx>, Adam <adam@xxxxxxxxxx>
- 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=
- In-reply-to: <CADdDZRnbeA_hGtXE5EVnvybwN842KO=YLaz76Up+CxC=C2rOWw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CADdDZRnbeA_hGtXE5EVnvybwN842KO=YLaz76Up+CxC=C2rOWw@mail.gmail.com>
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)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author