You are not logged in.
#!/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
Last edited by Nc_Zer0 (2008-01-03 07:09:06)
Offline
#!/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
That's indeed very strange. I just copy&pasted your script, ran it localy, and I must say everything works as expected.
It might be the 'cal' application thats giving you troubles..
Offline
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)
Offline