Conkycalendar.sh (fr)
From Conky PitStop
conkycalendar.sh (calendrier)
Langue | English Français |
Un script assez simple pour afficher un calendrier... basé sur le script calenderio.sh, et sur ce que j'ai pu apprendre de ce script
Ce script utilise aussi le script howlong.pl pour me tenir informé des dates importantes.
#!/bin/bash # conkycalender.sh # by Crinos512 # Usage: # ${execp ~/.conky/conkyparts/conkycalender.sh} # DJS=`date +%_d` Month=`date +'%B %Y' | tr '[:lower:]' '[:upper:]'` Countdown=`~/.conky/howLong.pl "September 21, 2009 20:00:00"` echo "\${color1}\${stippled_hr 1}\${color}" echo "\${voffset -6} $Month:\${font Liberation Mono:size=8}" echo "\${voffset -6}\${color1}\${stippled_hr 1}\${color}" for i in {1..7} do Text=`cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | sed -n '/^.\{21\}/p' | head -n $i | tail -n 1 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed s/"Su Mo Tu We Th Fr Sa"/'\${color2}'"Su Mo Tu We Th Fr Sa"'\${color}'/ | sed /" $DJS "/s/" $DJS "/" "'${color2}'"$DJS"'${color}'" "/` echo "\${goto 130}$Text" done echo "\${alignc}~ Heroes returns in: \${color2}$Countdown\${color} ~\${font}" exit 0
[Mise à jour : 12 Sept. 2009]