Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
Bruce M.
And at Conky Hardcore! -
conky_calhoriz.sh :rolleyes: because I didn't know you had it
there when I put it
here.
Is the room moving or is it me, everything is spinning!! :popcorn:
CHIMO!
Bruce
Here, there and even here! :D
Quote:
Originally Posted by
Crinos512
Oh and looking at the calender some more:
Code:
# Build $TOPLINE
j=31
k=$FIRSTDAY
while [ $j -gt 0 ]; do
case "$k" in
1) TOPLINE="$TOPLINE $Mon";;
2) TOPLINE="$TOPLINE $Tue";;
3) TOPLINE="$TOPLINE $Wed";;
4) TOPLINE="$TOPLINE $Thu";;
5) TOPLINE="$TOPLINE $Fri";;
6) TOPLINE="$TOPLINE \${color FF8C00}$Sat\${color}";;
7) TOPLINE="$TOPLINE \${color FFFF00}$Sun\${color}";;
8) k=1
TOPLINE="$TOPLINE $Mon"
;;
esac
j=$[$j-1]
k=$[$k+1]
done
can be done like so:
Code:
# Build $TOPLINE
j=31
k=$FIRSTDAY
while [ $j -gt 0 ]; do
case "$k" in
1) TOPLINE="$TOPLINE $Mon";;
2) TOPLINE="$TOPLINE $Tue";;
3) TOPLINE="$TOPLINE $Wed";;
4) TOPLINE="$TOPLINE $Thu";;
5) TOPLINE="$TOPLINE $Fri";;
6) TOPLINE="$TOPLINE \${color FF8C00}$Sat\${color}";;
7) TOPLINE="$TOPLINE \${color FFFF00}$Sun\${color}"
k=0
;;
esac
j=$[$j-1]
k=$[$k+1]
done
optimizations, gotta love 'em.
Nice! script updated here and possibly here! :D
and, of course, here:
Code:
#!/bin/bash
# horizontal calendar for conky by ans
# Updated by: mobilediesel, dk75, Bruce, Crinos512, et al.
# locale depend week day names
lang=$1
case ${lang:=$LANG} in
af* ) Sun="So"; Mon="Ma"; Tue="Di"; Wed="Wo"; Thu="Do"; Fri="Vr"; Sat="Sa" ;; # Afrikaans (Afrikaans)
be* ) Sun="Ня"; Mon="Па"; Tue="Аў"; Wed="Се"; Thu="Ча"; Fri="Пя"; Sat="Су" ;; # Belarusian (Беларуская)
bs* ) Sun="Ne"; Mon="Po"; Tue="Ut"; Wed="Sr"; Thu="Če"; Fri="Pe"; Sat="Su" ;; # Bosnian (Bosanac)
bg* ) Sun="Не"; Mon="По"; Tue="Вт"; Wed="Ср"; Thu="Че"; Fri="Пе"; Sat="Съ" ;; # Bulgarian (Български)
zh* ) Sun="周天"; Mon="周一"; Tue="周二"; Wed="周三"; Thu="周四"; Fri="周五"; Sat="周六" ;; # Chinese (中文)
hr* ) Sun="Ne"; Mon="Po"; Tue="Ut"; Wed="Ut"; Thu="Sr"; Fri="Če"; Sat="Su" ;; # Croatian (Hrvatska)
cs* ) Sun="Ne"; Mon="Po"; Tue="Út"; Wed="St"; Thu="Čt"; Fri="Pá"; Sat="So" ;; # Czech (Čeština)
da* ) Sun="Sø"; Mon="Ma"; Tue="Ti"; Wed="On"; Thu="To"; Fri="Fr"; Sat="Lø" ;; # Danish (Dánština)
nl* ) Sun="Zo"; Mon="Ma"; Tue="Di"; Wed="Wo"; Thu="Do"; Fri="Vr"; Sat="Za" ;; # Dutch (Nederlandse)
de* ) Sun="So"; Mon="Mo"; Tue="Di"; Wed="Mi"; Thu="Do"; Fri="Fr"; Sat="Sa" ;; # German (Deutche)
el* ) Sun="Κυ"; Mon="Δε"; Tue="Τρ"; Wed="Τε"; Thu="Πέ"; Fri="Πα"; Sat="Σά" ;; # Greek (Ελληνικά)
et* ) Sun="Pü"; Mon="Es"; Tue="Te"; Wed="Ko"; Thu="Ne"; Fri="Re"; Sat="La" ;; # Estonian (Eesti)
tl* ) Sun="Li"; Mon="Lu"; Tue="Ma"; Wed="Mi"; Thu="Hu"; Fri="Bi"; Sat="Sa" ;; # Filipino (Filipino)
fi* ) Sun="Su"; Mon="Ma"; Tue="Ti"; Wed="Ke"; Thu="To"; Fri="Pe"; Sat="La" ;; # Finnish (Suomen)
fr* ) Sun="Di"; Mon="Lu"; Tue="Ma"; Wed="Me"; Thu="Je"; Fri="Ve"; Sat="Sa" ;; # French (Français)
gl* ) Sun="Do"; Mon="Lu"; Tue="Ma"; Wed="Mé"; Thu="Xo"; Fri="Ve"; Sat="Sá" ;; # Galician (Galego)
hi* ) Sun="सूर्य"; Mon="सोम"; Tue="मंगल"; Wed="बुध"; Thu="गुरु"; Fri="शुक्र"; Sat="शनि" ;; # Hindi (हिन्दी)
hu* ) Sun="Va"; Mon="Hé"; Tue="Ke"; Wed="Se"; Thu="Cü"; Fri="Pé"; Sat="So" ;; # Hungarian (Magyar)
is* ) Sun="Su"; Mon="Má"; Tue="Þr"; Wed="Mi"; Thu="Fi"; Fri="Fö"; Sat="La" ;; # Icelandic (Íslenska)
id* ) Sun="Mi"; Mon="Se"; Tue="Se"; Wed="Ra"; Thu="Ka"; Fri="Ju"; Sat="Sa" ;; # Indonesian (Indonesia)
it* ) Sun="Do"; Mon="Lu"; Tue="Ma"; Wed="Me"; Thu="Gi"; Fri="Ve"; Sat="Sa" ;; # Italian (Italiano)
ja* ) Sun="日曜"; Mon="月曜"; Tue="火曜"; Wed="水曜"; Thu="木曜"; Fri="金曜"; Sat="土曜" ;; # Japanese (日本語) x
ko* ) Sun="일요"; Mon="월요"; Tue="화요"; Wed="수요"; Thu="목요"; Fri="금요"; Sat="토요" ;; # Korean (한국어) x
lv* ) Sun="Sv"; Mon="Pr"; Tue="Ot"; Wed="Tr"; Thu="Ce"; Fri="Pe"; Sat="Se" ;; # Latvian (Latviešu)
lt* ) Sun="se"; Mon="pi"; Tue="an"; Wed="tr"; Thu="ke"; Fri="pe"; Sat="še" ;; # Lithuanian (Lietuviškai)
mk* ) Sun="Не"; Mon="По"; Tue="Вт"; Wed="Ср"; Thu="Че"; Fri="Пе"; Sat="Са" ;; # Macedonian (Македонски)
ml* ) Sun="Mi"; Mon="Is"; Tue="Se"; Wed="Ra"; Thu="Ra"; Fri="Ju"; Sat="Sa" ;; # Malayam (Bahasa Melayu)
nb* ) Sun="sø"; Mon="ma"; Tue="ti"; Wed="on"; Thu="to"; Fri="fr"; Sat="lø" ;; # Norwegian (Norsk)
pl* ) Sun="Nd"; Mon="Po"; Tue="Wt"; Wed="Śr"; Thu="Cz"; Fri="Pt"; Sat="So" ;; # Polish (Polska)
pt* ) Sun="Do"; Mon="Sq"; Tue="Te"; Wed="Qa"; Thu="Qi"; Fri="Se"; Sat="Sá" ;; # Portuguese (Português)
ro* ) Sun="Du"; Mon="Lu"; Tue="Ma"; Wed="Mi"; Thu="Jo"; Fri="Vi"; Sat="Sa" ;; # Romanian (Român)
ru* ) Sun="Во"; Mon="По"; Tue="Вт"; Wed="Ср"; Thu="Че"; Fri="Пя"; Sat="Су" ;; # Russian (Русский)
sr* ) Sun="Ne"; Mon="Po"; Tue="Ut"; Wed="Sr"; Thu="Če"; Fri="Pe"; Sat="Su" ;; # Serbian (Српски)
sk* ) Sun="Ne"; Mon="Po"; Tue="Ut"; Wed="St"; Thu="Št"; Fri="Pi"; Sat="So" ;; # Slovak (Slovenčina)
sl* ) Sun="Ne"; Mon="Po"; Tue="To"; Wed="Sr"; Thu="Če"; Fri="Pe"; Sat="So" ;; # Slovenian (Slovenski)
es* ) Sun="Do"; Mon="Lu"; Tue="Ma"; Wed="Mi"; Thu="Ju"; Fri="Vi"; Sat="Sá" ;; # Spanish (Español)
sv* ) Sun="Sö"; Mon="Må"; Tue="Ti"; Wed="On"; Thu="To"; Fri="Fr"; Sat="Lö" ;; # Swedish (Svenska)
tr* ) Sun="Pa"; Mon="Pa"; Tue="Sa"; Wed="Ça"; Thu="Pe"; Fri="Cu"; Sat="Cu" ;; # Turkish (Türkçe)
uk* ) Sun="Не"; Mon="По"; Tue="Ві"; Wed="Се"; Thu="Че"; Fri="Пя"; Sat="Су" ;; # Ukrainian (Українська)
* ) Sun="Su"; Mon="Mo"; Tue="Tu"; Wed="We"; Thu="Th"; Fri="Fr"; Sat="Sa" ;;
esac
COLOROLD="445566" #MidSlateGrey
COLORTODAY="FF8C00" #Darkorange
COLORREST="445566" #MidSlateGrey
COLORNEXT="778899" #LightSlateGrey
TODAY=$(date +%d)
LASTDAY=$(date -d "-$TODAY days +1 month" +%d)
FIRSTDAY=$(date -d "-$[${TODAY/#0/}-1] days" +%u)
TODAYC="\${color $COLORTODAY} $TODAY\${color}"
# Build $TOPLINE
j=31
k=$FIRSTDAY
while [ $j -gt 0 ]; do
case "$k" in
1) TOPLINE="$TOPLINE $Mon";;
2) TOPLINE="$TOPLINE $Tue";;
3) TOPLINE="$TOPLINE $Wed";;
4) TOPLINE="$TOPLINE $Thu";;
5) TOPLINE="$TOPLINE $Fri";;
6) TOPLINE="$TOPLINE \${color FF8C00}$Sat\${color}";;
7) TOPLINE="$TOPLINE \${color FFFF00}$Sun\${color}"
k=0
;;
esac
j=$[$j-1]
k=$[$k+1]
done
# Build $OVER
i=1
OVER="\${color $COLOROLD}"
while [ $i -lt $TODAY ]; do
case $i in
[1-9]) OVER="$OVER 0$i" ;;
*) OVER="$OVER $i" ;;
esac
i=$[$i+1]
done
OVER="$OVER\${color}"
# skip i where value of i=$TODAY
i=$[$i+1]
# Build $REST
REST="\${color $COLORREST}"
while [ $i -le $LASTDAY ]; do
case $i in
[1-9]) REST="$REST 0$i" ;;
*) REST="$REST $i" ;;
esac
i=$[$i+1]
done
REST="$REST\${color}"
# Build $NEXTMONTH
i=$LASTDAY
j=1
NEXTMONTH=""
if [ $i -ne 31 ] ; then
NEXTMONTH="\${color $COLORNEXT}"
while [ $i -lt 31 ] ; do
NEXTMONTH="$NEXTMONTH 0$j"
i=$[$i+1]
j=$[$j+1]
done
NEXTMONTH="$NEXTMONTH\${color}"
fi
echo "\${goto 240}$TOPLINE\${tab 20}"
echo "\${goto 240}$OVER$TODAYC$REST$NEXTMONTH\${tab 20}"
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
WorldTripping
Seriously though, I just found out something cool.
You can layer conkys over each other.
I've been playing with Xft and transparencies. Turns out that you can only have one transparent font per conky.
That is OK if you have one font per conky, but where you use the 'weather' conky you have two fonts, only one of which is capable of being transparent.
So either the text or the weather icons have transparency applied to them, not both.
Solution - two conkys layered over each other, just a question of layout.
Still playing around but it looks feasible.
Welcome to my over-engineered 'Plan B' !
You can't layer two Conkys over one another because they're not *really* transparent :( They'll just overwrite each other with the background and you won't be able to see the lower ones. Although, I guess you could get creative and butt them up right against each other...Just depends on how many Conkys you want to make.
Incidentally, you can control the transparency of fonts in Cairo & imlib2, so theoretically you could just use your Lua script to output whatever Conky variable you want, through $conky_parse...Just a thought.
Also, if any of you want to have a play with the *fixed* (!) cairo_text/font_extents issue, Brenden's committed a change here: http://git.omp.am/?p=conky.git;a=com...ee775872cdc1f4
Oh, and HIIIIII! Haven't seen y'all in a while! ):P I've finally fixed all my 'puter issues. By buying a new one :)
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
WorldTripping
Damn you and your 'third way'.
I've kinda avoided Conky for the past few months as I thought that I was happy with the layout etc. but now I see that I've been missing a trick.
(And it consumes too many late nights.)
Looks pretty simple to incorporate this as I am already using K's script for the weather.
Cheers for the heads up, I never knew that this was possible.
WorldTripping.
And it's a template, just one line to do that:
Code:
TEXT
${execpi 3600 conkyForecast --location=ARDF0127 --template=/home/bruloo/Conky/scripts/OB_Weather.template}
template:
Code:
${goto 120}${voffset -0}${color2}${font Zekton:size=20}${color6}[--datatype=HT]${font}${image [--datatype=WI] -p 0,0 -s 90x90}
${goto 120}${voffset -0}${color2}Sensación térmica: ${color6}[--datatype=LT --night]${image [--datatype=WI --startday=1] -p 480,025 -s 50x50}${image [--datatype=WI --startday=2] -p 580,025 -s 50x50}${image [--datatype=WI --startday=3] -p 680,025 -s 50x50}
${goto 120}${color2}Mín: ${color6}[--startday=0 --datatype=LT --night] ${color2}Máx: ${color9}[--startday=0 --datatype=HT --night]${image [--datatype=WI --startday=4] -p 380,105 -s 50x50}${image [--datatype=WI --startday=5] -p 480,105 -s 50x50}${image [--datatype=WI --startday=6] -p 580,105 -s 50x50}${image [--datatype=WI --startday=7] -p 680,105 -s 50x50}
${goto 120}${voffset 0}${font Zekton:bold:size=11} ${color7}[--datatype=CC]${color}${font}${image [--datatype=MI] -p 015,100 -s 55x55}${image [--datatype=BI] -p 380,00 -s 45x45}
${goto 480}${voffset -75}${color2}[--datatype=DW --shortweekday --startday=1]:${color1}[--datatype=HT --hideunits --hidedegreesymbol --startday=1]${color}/${color7}[--datatype=LT --hideunits --hidedegreesymbol --startday=1]${goto 580}${color2}[--datatype=DW --shortweekday --startday=2]:${color1}[--datatype=HT --hideunits --hidedegreesymbol --startday=2]${color}/${color7}[--datatype=LT --hideunits --hidedegreesymbol --startday=2]${goto 680}${color2}[--datatype=DW --shortweekday --startday=3]:${color1}[--datatype=HT --hideunits --hidedegreesymbol --startday=3]${color}/${color7}[--datatype=LT --hideunits --hidedegreesymbol --startday=3]
${goto 120}${voffset 70}${color7}Visibilidad:${color8} [--datatype=VI]
${goto 120}${voffset 3}${color7}P. de R.: ${color8}[--datatype=DP]${color}
${goto 120}${voffset 3}${color7}Humedad: ${color8}[--datatype=HM] ${color7}UV: ${color8}[--datatype=UI] - ${color8}[--datatype=UT]
${goto 120}${voffset 3}${color7}Presión: ${color8}[--datatype=BR] - [--datatype=BD]${color}
${goto 380}${voffset -100}${color7}(${color8}[--datatype=WA]°${color7}) ${color8}[--datatype=WD]
${goto 380} ${color8}[--datatype=WS]
${voffset 05}${color8}${goto 380}${cpubar cpu3 1,370}${color}
${goto 380}${color2}[--datatype=DW --shortweekday --startday=4]:${color1}[--datatype=HT --hideunits --hidedegreesymbol --startday=4]${color}/${color7}[--datatype=LT --hideunits --hidedegreesymbol --startday=4]${goto 480}${color2}[--datatype=DW --shortweekday --startday=5]:${color1}[--datatype=HT --hideunits --hidedegreesymbol --startday=5]${color}/${color7}[--datatype=LT --hideunits --hidedegreesymbol --startday=5]${goto 580}${color2}[--datatype=DW --shortweekday --startday=6]:${color1}[--datatype=HT --hideunits --hidedegreesymbol --startday=6]${color}/${color7}[--datatype=LT --hideunits --hidedegreesymbol --startday=6]${goto 680}${color2}[--datatype=DW --shortweekday --startday=7]:${color1}[--datatype=HT --hideunits --hidedegreesymbol --startday=7]${color}/${color7}[--datatype=LT --hideunits --hidedegreesymbol --startday=7]
${goto 120}${voffset 45}Sol: ${font Arrows:size 20}${color3}b${goto 200}${color1}h${color}${font}
${voffset -14}${goto 165}${color8}[--datatype=SR]${goto 220}[--datatype=SS]${color}
${goto 120}${color7}Horas de Luz: ${color8}[--datatype=DL]${color}${alignr 10}${color4}W:[--datatype=LU] -=- C:[--datatype=LF]${color}
Plan C is cool. :KS
Have a nice day.
Bruce
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
Bruce M.
Where is this BRIC stuff you added? ???
simply by doing almost nothing ;)
- Brazil uses portuguese - no need to do anything since portuguese was added already a day before
- russian was added by You - no need to do anything
- hindu - that was added by Me
- simplified chinese - that was added by Me
Quote:
Originally Posted by
Bruce M.
Ummm, like I said, I don't do code but it would seem that Crinos512 did add en* and it seems to be working.
Then try with Crinos512 language codes and with my this:
Code:
${color}${font DejaVu Sans Mono:Bold:size=10}${execpi 3600 /home/bruloo/Conky/scripts/conky_calhoriz.sh i_am_knight_who_say_NI}
or more realistic (it is for Tibetan):
Code:
${color}${font DejaVu Sans Mono:Bold:size=10}${execpi 3600 env LANG=bo_TI.UTF8 /home/bruloo/Conky/scripts/conky_calhoriz.sh}
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
Crinos512
That's exactly what I'm talking about.
Quote:
Originally Posted by
WorldTripping
Oh Crinos...not fair.
Someone asking for help in the shallow end of the conky pool, and you direct them to the lua deep end.
:)
I'm quite adept at stealing conky configs by now. LOL
EDIT:DAMN ERRORS
Conky: /home/lo-fi/.conkyrc: 54: config file error
line 54 is just: lua_draw_hook_pre
wth, it didn't have problems with the previous lua script. :(
EDIT 2: of course it should be lua_draw_hook_pre lua_bg :P
Re: Post your .conkyrc files w/ screenshots
Sorry, this probably have been mentioned before (this thread is too long for me to keep up :)), but is anyone here having problems with the pseudo-transparency in Karmic? It works, but it seems to assume that I'm never going to move the conky window, because it does not refresh the background when I move it.
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
mobilediesel
http://conky.linux-hardcore.com/wp-c...05Fainting.gif "Where's the can?"
Yad a ecin evah.
Ecurb
1 Attachment(s)
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
Bruce M.
¡ɟlǝsʇı ʇsod ǝɥʇ oʇ ʞuıl ɐ pɐɥ uǝʌǝ ı ʇsod ʇɐɥʇ uı
Attachment 139671
Recursive post, or something. :D
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
londonali1010
You can't layer two Conkys over one another because they're not *really* transparent :( They'll just overwrite each other with the background and you won't be able to see the lower ones. Although, I guess you could get creative and butt them up right against each other...Just depends on how many Conkys you want to make.
I went from none to 1 to 2 to 4 to 6 to 8 and back to one permanent conky and then created six in their own windows to open when I want to see them and then close them afterwards.
I'm not addicted I can quit conky anytime ... :D
Quote:
Originally Posted by
londonali1010
Incidentally, you can control the transparency of fonts in Cairo & imlib2, so theoretically you could just use your Lua script to output whatever Conky variable you want, through $conky_parse...Just a thought.
Interesting. Any samples?
Quote:
Originally Posted by
londonali1010
Umm OK, Martians talking to Plutonians right?
Quote:
Originally Posted by
londonali1010
Oh, and HIIIIII! Haven't seen y'all in a while! ):P I've finally fixed all my 'puter issues. By buying a new one :)
Whoopie, she's back. Missed ya gal. So what's with the netbook, now that you have a nice 15 inch screen and W-7 too!
Have a nice day.
Bruce
1 Attachment(s)
Re: Post your .conkyrc files w/ screenshots
Quote:
Originally Posted by
dk75
simply by doing almost nothing ;)
- Brazil uses portuguese - no need to do anything since portuguese was added already a day before
- russian was added by You - no need to do anything
- hindu - that was added by Me
- simplified chinese - that was added by Me
OH OK, new list is the BRIC ... right? :confused:
Quote:
Originally Posted by
dk75
Then try with Crinos512 language codes and with my this:
Code:
${color}${font DejaVu Sans Mono:Bold:size=10}${execpi 3600 /home/bruloo/Conky/scripts/conky_calhoriz.sh i_am_knight_who_say_NI}
or more realistic (it is for Tibetan):
Code:
${color}${font DejaVu Sans Mono:Bold:size=10}${execpi 3600 env LANG=bo_TI.UTF8 /home/bruloo/Conky/scripts/conky_calhoriz.sh}
OK, I get just numbers with Crinos512's coding and English with yours.
I need the complete thing again I think, I just changed the language section.
I'm really getting dizzy with all this.
It's fun, it's interesting but oh so confusing. :-&
Have a nice day.
Bruce