› Foros › PC › Software libre
xftfont Dejavu San:size=8
xftalpha 0.8
update_interval 1
total_run_times 0
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
default_color white
default_shade_color black
default_outline_color blue
draw_borders no
draw_shades no
draw_graph_borders no
border_margin 1
border_width 1
alignment top_right
background no
gap_x 30
gap_y 20
minimum_size 200
maximum_width 200
override_utf8_locale yes
use_xft yes
use_spacer yes
double_buffer yes
no_buffers yes
cpu_avg_samples 1
net_avg_samples 2
TEXT
${font DejaVu Sans:size=32}${alignc}${color #CCFFFF}${time %H:%M}
${font Courier 10 Pitch:size=18}${voffset -10}${offset -40}${color #0daaff}${execi 60 ~/.conky/scripts/calendario.sh mes}
${font Courier 10 Pitch:size=12}${color #CCCCCC}${pre_exec ~/.conky/scripts/calendario.sh pasado}${color #66FFFF}${pre_exec ~/.conky/scripts/calendario.sh hoy}${color #888888}${pre_exec ~/.conky/scripts/calendario.sh futuro}${font}
#! /bin/sh
# written by: jjgomera
# modified by stinkeye
#str=`echo '\033[01;32m29'`
#
# replace the 4 "cal |" with "cal -m |" to have the week start on Monday
DATE=`date | awk -F" " '{print $3}'`
[COLOR="Red"]DAY=`date +%a | cut -c1-2`[/COLOR]
case "$1" in
mes)
ncal -M -C -h | head -n1
;;
semana)
ncal -M -C -h | head -n2 | tail -n1 [COLOR="red"]| sed 's/'$DAY'/${color CC9846}'$DAY'${color 919FAA}/g'[/COLOR]
#cal -m | head -n2 | tail -n1
;;
pasado)
ncal -M -C -h | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=0}
($1 == $0 && i==0) {print $1}($1 != $0 && i==0){i=i+1;print $1}';
;;
hoy)
echo $DATE;
;;
futuro)
ncal -M -C -h | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=1}
(i==0) {print $0}($1 != $0 && i==1){i=i-1;print $2}';
;;
esac