Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: To have cpu frequency or/and battery state percentage in my prompt
- X-seq: zsh-users 12015
- From: giggz <giggzounet@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: To have cpu frequency or/and battery state percentage in my prompt
- Date: Sun, 14 Oct 2007 22:55:56 +0200
- In-reply-to: <20071014204722.76757.qmail@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <fet5io$fg8$1@xxxxxxxxxxxxx> <20071014204722.76757.qmail@xxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Atom Smasher a écrit :
> On Sun, 14 Oct 2007, giggz wrote:
>
>> I search ideas to have a good prompt which display the cpu frequency
>> or/and the battery state in my zsh prompt.
>>
>> So if you have ideas and examples which I can put in my zshrc...
> =================
>
> i've got this (in colors, depending on battery state and level of
> charge) on FreeBSD 6.2 (acpi). if anyone wants details i'll post...
>
> short version: root runs a cron job every minute to get the battery
> state; this is written to a file in /tmp; the prompt looks for this
> file; if it's there it becomes part of the prompt.
>
>
Yes please :)
Thx a lot
Guillaume
Messages sorted by:
Reverse Date,
Date,
Thread,
Author