You are not logged in.

#1 2008-01-03 07:04:24

Nc_Zer0
Member
From: RPC
Registered: 2007-12-28
Posts: 10
Website

[Help] __dzen2__ Calendar ERROR

#!/bin/bash
#
# pop-up calendar for dzen
#
# (c) 2007, by Robert Manea
#

# i want to show the calender in english,i remove this ,it's wrong too!
export LC_ALL=en_US.iso8859





TODAY=$(expr `date +'%d'` + 0)
MONTH=`date +'%m'`
YEAR=`date +'%Y'`

(
echo '^bg(grey70)^fg(#111111)'`date +'%Y/%m/%d %H:%M'`; echo

# current month, hilight header and today
cal \
    | sed -re "s/^(.*[A-Za-z][A-Za-z]*.*)$/^fg(white)\1/;s/(^|[ ])($TODAY)($|[ ])/\1^bg(white)^fg(#111111)\2^fg()^bg()\3/"

# next month, hilight header
[ $MONTH -eq 12 ] && YEAR=`expr $YEAR + 1`
cal `expr \( $MONTH + 1 \) % 12` $YEAR \
    | sed -e 's/^\(.*[A-Za-z][A-Za-z]*.*\)$/^fg(white)\1/'

sleep 60
) \
    | dzen2 -fn '-*-fixed-medium-*-*-*-12-*-*-*-*-*-iso10646-*' -x 880 -y 16 -w 140 -l 16 -sa c -e 'onstart=uncollapse;button3=exit'

when i run it !

it's wrong!_________   2008.1.27 is not Monady:(

it just like (right top)
without gimp or else

200801031502071024x768shy9.th.png

Last edited by Nc_Zer0 (2008-01-03 07:09:06)


Sorry for my English.

{:-> Doo net hin gand doi tw ell!  _Unix
My site:enjoy4fun.cn

Offline

#2 2008-01-03 09:38:33

gotmor
Member
From: Germany
Registered: 2007-09-03
Posts: 84
Website

Re: [Help] __dzen2__ Calendar ERROR

Nc_Zer0 wrote:
#!/bin/bash
#
# pop-up calendar for dzen
#
# (c) 2007, by Robert Manea
#

# i want to show the calender in english,i remove this ,it's wrong too!
export LC_ALL=en_US.iso8859





TODAY=$(expr `date +'%d'` + 0)
MONTH=`date +'%m'`
YEAR=`date +'%Y'`

(
echo '^bg(grey70)^fg(#111111)'`date +'%Y/%m/%d %H:%M'`; echo

# current month, hilight header and today
cal \
    | sed -re "s/^(.*[A-Za-z][A-Za-z]*.*)$/^fg(white)\1/;s/(^|[ ])($TODAY)($|[ ])/\1^bg(white)^fg(#111111)\2^fg()^bg()\3/"

# next month, hilight header
[ $MONTH -eq 12 ] && YEAR=`expr $YEAR + 1`
cal `expr \( $MONTH + 1 \) % 12` $YEAR \
    | sed -e 's/^\(.*[A-Za-z][A-Za-z]*.*\)$/^fg(white)\1/'

sleep 60
) \
    | dzen2 -fn '-*-fixed-medium-*-*-*-12-*-*-*-*-*-iso10646-*' -x 880 -y 16 -w 140 -l 16 -sa c -e 'onstart=uncollapse;button3=exit'

when i run it !

it's wrong!_________   2008.1.27 is not Monady:(

it just like (right top)
without gimp or else

http://img244.imageshack.us/img244/3120 … hy9.th.png

That's indeed very strange. I just copy&pasted your script, ran it localy, and I must say everything works as expected.
vYTBs

It might be the 'cal' application thats giving you troubles..

Offline

#3 2008-01-03 11:42:29

Nc_Zer0
Member
From: RPC
Registered: 2007-12-28
Posts: 10
Website

Re: [Help] __dzen2__ Calendar ERROR

thanks,gotmor

OMG!
in  the urxvt,the 'cal' works well!

oh,may be my font have trouble!
i will go home & change the font to test again!

today it's unbelieveable

Last edited by Nc_Zer0 (2008-01-03 11:44:53)


Sorry for my English.

{:-> Doo net hin gand doi tw ell!  _Unix
My site:enjoy4fun.cn

Offline

Board footer

Powered by FluxBB