
Conky lua 2011 next generation
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
First install the font neuropolitical !!!
conkyrc:
change the line: ${font caviar dreams:size=12}${color FFFFFF}${alignr}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LQBK
LQBK my city, find the code for your city: http://weather.noaa.gov
clock_rings.lua copy to: /home/username/.lua/scripts
logo.png copy to: /home/username/.conky
more:
http://gnome-look.org/content/show.php/Conky+lua?content=139024
ColtonB
8 years ago
Decided to share the fix with everyone.
Replace:
Quote:
local function setup_rings(cr,pt)
local str=''
local value=0
str=string.format('${%s %s}',pt['name'],pt['arg'])
str=conky_parse(str)
value=tonumber(str)
pct=value/pt['max']
draw_ring(cr,pct,pt)
end
With:
Quote:
local function setup_rings(cr,pt)
local str=''
local value=0
str=string.format('${%s %s}',pt['name'],pt['arg'])
str=conky_parse(str)
value=tonumber(str)
pct=value/pt['max']
-- Maximum should only be 1.000 (100%)
if (pct > 1) then
pct = 1
end
draw_ring(cr,pct,pt)
end
This makes sure that the rings always stay within the 100% boundary.
Report
despot77
8 years ago
Report
Linuxlife4me
9 years ago
I make some revisions and added icon for RHEL6/Scientific-Linux6/CentOS6/PRIUS6.
Removed swap and disk usage meters. Added top 5 processes by CPU and top 5 by MEM usage.
Some colour modifications. Couldn't get the weather part working, so I commented it out.
I'll try to fix that sometime.
Here's the link to the file:
http://gnome-look.org/content/show.php?content=149305
Best regards
Report
despot77
9 years ago
I will soon set a new conky ...
Report
451farenheit
9 years ago
Thanks for this cool conky!
I just have a small question. conky-all works on ubuntu, however i'm using fedora. My problem is with the weather tag. I though it comes straigh with conky but I see ${weather} instead of the real temperature. Which is the .rpm for this "script"?
Thanks again and gl!
Report
Devil505
9 years ago
http://ftp.frugalware.org/pub/other/people/devil505/artwork/logo/
Thanks
Report
despot77
9 years ago
Report
sandrosfc
9 years ago
Report
AleAngel
9 years ago
Report
despot77
9 years ago
To mi je ubijanje dosade... :)
Report
rsavo
9 years ago
Report
Ahmose
9 years ago
Nice work!
works great!
How can I change Celsius to Fahrenheit?
usually I can figure it out, not this time tho. lol
Many thanks!
Report
Ahmose
9 years ago
silly me. lol
Thanks <3 :D
Report
frankjoe
9 years ago
Report
Ahmose
9 years ago
Report
Dart00
9 years ago
Im using Ubuntu 10.10.
I installed conky: "sudo apt-get install conky"
Made the .lua directory: "mkdir ~/.lua
Made the conky directory: mkdir ~/.conky
Made the font directory: mkdir /.fonts
Copyed the rings file into .lua: cp clock_rings.lua ~/.lua
Copyed the conky file to the conky folder: cp conkyrc ~/.conky
Copyed the image file to the conky folder: cp logo.png ~/.conkyrc
And finally I start conky: concky
And I get the standard conky display and not the custom one?
Report
despot77
9 years ago
Open the terminal, type this command: " sudo apt-get install conky-all" (necessarily conky-all)
Create a folder called ".conky" in your home directory and copy the logo.png image to this folder
In your home directory create a folder called ".lua" and inside this folder, create a new folder called "scripts". Here, copy the "clock_rings.lua" file (necessarily "scripts")
Copy the "conkyrc" file in your home directory and rename it to ".conkyrc"
To set the weather for your city, go to http://weather.noaa.gov and search for your city. The URL will then look like this (this is for my country / city): http://weather.noaa.gov/weather/current/LQBK.html - copy the code at the end (LQBK in my case) and in the ~/.conkyrc file, replace "LQBK" with your code
Report