--[[ astro.lua by olgmen 22.02.2011
Выводит в окно конки знаки зодиака
]]
-- Данные взяты из
http://ru.wikipedia.org/wiki/%D0%97%D0%BD%D0%B0%D0%BA%D0%B8_%D0%B7%D0%BE%D0%B4%D0%B8%D0%B0%D0%BA%D0%B0-- Овен 21.03 - 20.04
-- Телец 21.04 - 21.05
-- Близнецы 22.05 - 21.06
-- Рак 22.06 - 22.07
-- Лев 23.07 - 23.08
-- Дева 24.08 - 23.09
-- Весы 24.09 - 23.10
-- Скорпион 24.10 - 22.11
-- Стрелец 23.11 - 21.12
-- Козерог 22.12 - 20.01
-- Водолей 22.12 - 20.01
-- Рыбы 21.01 - 20.03
function conky_astro_text ()
usrhome = os.getenv("HOME")
astro_date = os.date("%j")
if astro_date > "355" then
-- text = "${font SL Zodiac Icons:size=20}a${font}"
text = " Козерог 22.12 - 20.01"
elseif astro_date > "326" then text = "Стрелец 23.11 - 21.12"
elseif astro_date > "296" then text = "Скорпион 24.10 - 22.11"
elseif astro_date > "266" then text = "Весы 24.09 - 23.10"
elseif astro_date > "235" then text = "Дева 24.08 - 23.09"
elseif astro_date > "203" then text = "Лев 23.07 - 23.08"
elseif astro_date > "171" then text = "Рак 22.06 - 22.07"
elseif astro_date > "141" then text = "Близнецы 22.05 - 21.06"
elseif astro_date > "110" then text = "Телец 21.04 - 21.05"
elseif astro_date > "079" then text = "Овен 21.03 - 20.04"
elseif astro_date > "049" then text = "Рыбы 19.02 - 20.03"
elseif astro_date > "020" then text = "Водолей 21.01 - 18.02"
else text = "Козерог 22.12 - 20.01"
end
return (text)
end
-- -------------------------------------------------------------------
-- [[ astro_image.lua by olgmen 22.02.2011 ]]
-- Данные взяты из
http://ru.wikipedia.org/wiki/%D0%97%D0%BD%D0%B0%D0%BA%D0%B8_%D0%B7%D0%BE%D0%B4%D0%B8%D0%B0%D0%BA%D0%B0-- Овен 21.03 - 20.04
-- Телец 21.04 - 21.05
-- Близнецы 22.05 - 21.06
-- Рак 22.06 - 22.07
-- Лев 23.07 - 23.08
-- Дева 24.08 - 23.09
-- Весы 24.09 - 23.10
-- Скорпион 24.10 - 22.11
-- Стрелец 23.11 - 21.12
-- Козерог 22.12 - 20.01
-- Водолей 22.12 - 20.01
-- Рыбы 21.01 - 20.03
function conky_astro_image ()
usrhome = os.getenv("HOME")
astro_date = os.date("%j")
if astro_date > "355" then image = "${font SL Zodiac Icons:size=20}j${font} "
elseif astro_date > "326" then image = "${font SL Zodiac Icons:size=20}i${font} "
elseif astro_date > "296" then image = "${font SL Zodiac Icons:size=20}h${font} "
elseif astro_date > "266" then image = "${font SL Zodiac Icons:size=20}g${font} "
elseif astro_date > "235" then image = "${font SL Zodiac Icons:size=20}f${font} "
elseif astro_date > "203" then image = "${font SL Zodiac Icons:size=20}e${font} "
elseif astro_date > "171" then image = "${font SL Zodiac Icons:size=20}d${font} "
elseif astro_date > "141" then image = "${font SL Zodiac Icons:size=20}c${font} "
elseif astro_date > "110" then image = "${font SL Zodiac Icons:size=20}b${font} "
elseif astro_date > "079" then image = "${font SL Zodiac Icons:size=20}a${font} "
elseif astro_date > "049" then image = "${font SL Zodiac Icons:size=20}l${font} "
elseif astro_date > "020" then image = "${font SL Zodiac Icons:size=20}k${font} "
else image = "${font SL Zodiac Icons:size=20}j${font} "
end
return (image)
end
-- -------------------------------------------------------------------