Re: [dwm] .xinitrc pipe problems

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Tue, 6 Nov 2007 09:22:28 +0100

There is an unquoted pipe character in the date format
definition. The date format argument is unquoted at all.
There might be more issues.

Regards,
        Anselm

On Mon, Nov 05, 2007 at 11:22:44PM -0800, Jonny Gerold wrote:
> Hello,
> I can't seem to display my battery and the date at the same time, and
> need help. I commented out the date command that I want since it doesn't
> work. I tried echo, ". '. `, and none of them worked? I think that
> something is wrong with my syntax. If you know whats wrong I would love
> to hear it.
> Thanks, Jonny
>
> Here is my .xinitrc:
>
> xscreensaver -no-splash &
> xmodmap ~/.Xmodmap
> feh --bg-scale /home/fsk141/dcim/101canon/img_0151.jpg
> while true
> do
> awk '
> $0~/remaining capacity:/ { r=$3 }
> $0~/last full capacity:/ { l=$4 }
> $0~/charging state:/ { status=$3 }
> END {
> if ( status!="charged" ) {
> if ( status=="charging" ) status="AC"
> printf("%00.01f% ",r/l*100);printf status } } '
> /proc/acpi/battery/BAT0/info /proc/acpi/battery/BAT0/state
> #date +%A, %B %d | %l:%M %p)
> done | dwm
>
>
>

-- 
 Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
Received on Tue Nov 06 2007 - 09:22:28 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:05:22 UTC