Re: My Conky Config
kbmonkey wrote:100 pages and nearly 2,500 posts! Wow, quite a load of configs. Would be nice to have them in a gallery type view somewhere.
You can check some out at Conky Pitstop.
+101010101
CrunchBang Linux Forums » Tips, Tricks & Scripts » My Conky Config
kbmonkey wrote:100 pages and nearly 2,500 posts! Wow, quite a load of configs. Would be nice to have them in a gallery type view somewhere.
You can check some out at Conky Pitstop.
+101010101
ackernan wrote:kbmonkey wrote:100 pages and nearly 2,500 posts! Wow, quite a load of configs. Would be nice to have them in a gallery type view somewhere.
You can check some out at Conky Pitstop.
+101010101
I can tell you wait until just the right time to post the 1st post of Page "101"010101 ![]()
The Official Conky song!
101 conky codes on the wall
101 conk codes
if one of those codes should disappear
100 conky codes...
100 conky codes on the wall
100 conk codes
if one of those codes should disappear
99 co.....
I'm working on a new panel conky:
The weather below the red bar rotates between day 3 to day 8 - or until it shows the same day name as today's and then starts the rotating cycle over again.
Last edited by Sector11 (2011-07-29 21:00:05)
:fell asleep at 78:
:fell asleep at 78:
I fell at 99 ... then edited the post ![]()
VastOne wrote:ackernan wrote:You can check some out at Conky Pitstop.
+101010101
I can tell you wait until just the right time to post the 1st post of Page "101"010101
The Official Conky song!
101 conky codes on the wall
101 conk codes
if one of those codes should disappear
100 conky codes...100 conky codes on the wall
100 conk codes
if one of those codes should disappear
99 co.....I'm working on a new panel conky:
The weather below the red bar rotates between day 3 to day 8 - or until it shows the same day name as today's and then starts the rotating cycle over again.
That did work out ... I was ironical and did not even know it.... ![]()
I like that panel... I would like that type of panel to hold the info from my left side conky... CPU, MEM, sensors info and Sys info... Do you have a guide or is your settings easy to digest and use from your scripts?
@machinebacon you need more training.... you should have at least made 83... lol
That did work out ... I was ironical and did not even know it....
I like that panel... I would like that type of panel to hold the info from my left side conky... CPU, MEM, sensors info and Sys info... Do you have a guide or is your settings easy to digest and use from your scripts?
@machinebacon you need more training.... you should have at least made 83... lol
Yea that "1010101" thing worked out great.
The rotate script is by wlourf and is really easy ... you can see another example I ran for quite a while at Conky PitStop, it's rotating between 4 different sections. The weather above just uses one section:
rotate_weather_top3a_2-9.lua
function conky_main_rotate1()
if conky_window==nil then return "" end
local updates=tonumber(conky_parse("$updates"))
--prevent segmentation error on cpu reading
if updates<3 then return "" end
local arrToggle_1={
"${execp conkyForecast --template=$HOME/Conky/templates/top3a2.template}",
"${execp conkyForecast --template=$HOME/Conky/templates/top3a3.template}",
"${execp conkyForecast --template=$HOME/Conky/templates/top3a4.template}",
"${execp conkyForecast --template=$HOME/Conky/templates/top3a5.template}",
"${execp conkyForecast --template=$HOME/Conky/templates/top3a6.template}",
"${execp conkyForecast --template=$HOME/Conky/templates/top3a7.template}",
"${execp conkyForecast --template=$HOME/Conky/templates/top3a8.template}",
}
local nb_toggle_1 = #arrToggle_1
for i=0, nb_toggle_1-1 do
if (updates)%(nb_toggle_1) == i then
return tostring(conky_parse(arrToggle_1[i+1]))
end
end
endThe templates are all the same, just changing the "--startday=X" values to show different days.
I think maybe machinebacon was drinking a beer for each verse. ![]()
Last edited by Sector11 (2011-08-04 17:05:28)
Hi, I was wondering how you get to the menus that allow conky to be adjusted, is it simply $conky then - the relevant prompt as per the man?
Hi, I was wondering how you get to the menus that allow conky to be adjusted, is it simply $conky then - the relevant prompt as per the man?
Not sure I understand your question.
If you want to edit the default conky:
gedit ~/.conkyrcwill do that.
If it is something else please let me know.
Last edited by Sector11 (2011-08-01 18:55:10)
One-liner conky config - screenshot in the August screenshot thread:
background yes
use_xft yes
#xftfont DejaVu Sans Condensed:pixelsize=11
xftfont ubuntu:pixelsize=11
xftalpha 1.0
update_interval 1
total_run_times 0
### Window
own_window yes
own_window_colour 1f1f1f
# own_window_type normal
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_hints undecorated,sticky,skip_taskbar,skip_pager
###
double_buffer yes
minimum_size 1424 4
maximum_width 1424
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
border_width 1
border_inner_margin 0
border_outer_margin 0
# Default colors and also border colors
default_color e6e6e6
#default_color e7e7ee
#default_color 020200
default_shade_color white
default_outline_color black
#color7 001DFF
color7 0ECB0E
color8 ffff00
color9 f40e0e
#alignment top_left
alignment bottom_middle
gap_x 0
gap_y 2
max_specials 1024
max_user_text 2048
text_buffer_size 2048
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer right
short_units yes
pad_percents 1
imlib_cache_size 0
#${image ~/conky/bar.xpm -p 0,0 -s 1600x16}
lua_load ~/conky/conky_luabg.lua
lua_draw_hook_pre draw_bg
TEXT
${goto 8}Uptime:${offset 5}$uptime_short${offset 16}*${offset 16}MB:${offset 5}${if_match ${hwmon 0 temp 1}<=50}${color7}${else}${if_match ${hwmon 0 temp 1}<=70}${color8}${else}${if_match ${hwmon 0 temp 1}>70}${color9}${endif}${endif}${endif}${hwmon 0 temp 1} °C${color}${offset 16}*${offset 16}Sda:${offset 5}${if_match ${hddtemp /dev/sda}<=50}${color7}${else}${if_match ${hddtemp /dev/sda}<=70}${color8}${else}${if_match ${hddtemp /dev/sda}>70}${color9}${endif}${endif}${endif}${hddtemp /dev/sda} °C${color}${offset 16}*${offset 16}Sdb:${offset 5}${if_match ${hddtemp /dev/sdb}<=50}${color7}${else}${if_match ${hddtemp /dev/sdb}<=70}${color8}${else}${if_match ${hddtemp /dev/sdb}>70}${color9}${endif}${endif}${endif}${hddtemp /dev/sdb} °C${color}${offset 16}*${offset 16}Sdc:${offset 5}${if_match ${hddtemp /dev/sdc}<=50}${color7}${else}${if_match ${hddtemp /dev/sdc}<=70}${color8}${else}${if_match ${hddtemp /dev/sdc}>70}${color9}${endif}${endif}${endif}${hddtemp /dev/sdc} °C${color}${offset 16}*${offset 16}CPU:${offset 5}${if_match ${hwmon 1 temp 1}<=50}${color7}${else}${if_match ${hwmon 1 temp 1}<=70}${color8}${else}${if_match ${hwmon 1 temp 1}>70}${color9}${endif}${endif}${endif}${hwmon 1 temp 1} °C${color}${offset 16}*${offset 16}CPU:${offset 5}${if_match ${cpu}<=50}${color7}${else}${if_match ${cpu}<=70}${color8}${else}${if_match ${cpu}>70}${color9}${endif}${endif}${endif}${cpu cpu1}%${color}${offset 16}*${offset 16}Mem:${offset 5}${if_match ${memperc}<=50}${color7}${else}${if_match ${memperc}<=70}${color8}${else}${if_match ${memperc}>70}${color9}${endif}${endif}${endif}$memperc%${color}${offset 16}*${offset 16}Eth0:${offset 5}Down:${offset 5}${downspeedf eth0} kb/s${offset 16}*${offset 16}Up:${offset 5}${upspeedf eth0} kb/s${offset 16}*${offset 16}Downloaded:${offset 5}${totaldown eth0}${offset 16}*${offset 16}Uploaded:${offset 5}${totalup eth0}${offset 16}*${offset 16}Month:${offset 5}${execpi 6000 vnstat -m | grep "`date +"%b"`" | awk '{print $9 $10}'}One-liner conky config - screenshot in the August screenshot thread:
background yes use_xft yes #xftfont DejaVu Sans Condensed:pixelsize=11 xftfont ubuntu:pixelsize=11 xftalpha 1.0 update_interval 1 total_run_times 0 ### Window own_window yes own_window_colour 1f1f1f # own_window_type normal own_window_type desktop own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager #own_window_hints undecorated,sticky,skip_taskbar,skip_pager ### double_buffer yes minimum_size 1424 4 maximum_width 1424 draw_shades no draw_outline no draw_borders no draw_graph_borders no border_width 1 border_inner_margin 0 border_outer_margin 0 # Default colors and also border colors default_color e6e6e6 #default_color e7e7ee #default_color 020200 default_shade_color white default_outline_color black #color7 001DFF color7 0ECB0E color8 ffff00 color9 f40e0e #alignment top_left alignment bottom_middle gap_x 0 gap_y 2 max_specials 1024 max_user_text 2048 text_buffer_size 2048 no_buffers yes uppercase no cpu_avg_samples 2 net_avg_samples 1 override_utf8_locale yes use_spacer right short_units yes pad_percents 1 imlib_cache_size 0 #${image ~/conky/bar.xpm -p 0,0 -s 1600x16} lua_load ~/conky/conky_luabg.lua lua_draw_hook_pre draw_bg TEXT ${goto 8}Uptime:${offset 5}$uptime_short${offset 16}*${offset 16}MB:${offset 5}${if_match ${hwmon 0 temp 1}<=50}${color7}${else}${if_match ${hwmon 0 temp 1}<=70}${color8}${else}${if_match ${hwmon 0 temp 1}>70}${color9}${endif}${endif}${endif}${hwmon 0 temp 1} °C${color}${offset 16}*${offset 16}Sda:${offset 5}${if_match ${hddtemp /dev/sda}<=50}${color7}${else}${if_match ${hddtemp /dev/sda}<=70}${color8}${else}${if_match ${hddtemp /dev/sda}>70}${color9}${endif}${endif}${endif}${hddtemp /dev/sda} °C${color}${offset 16}*${offset 16}Sdb:${offset 5}${if_match ${hddtemp /dev/sdb}<=50}${color7}${else}${if_match ${hddtemp /dev/sdb}<=70}${color8}${else}${if_match ${hddtemp /dev/sdb}>70}${color9}${endif}${endif}${endif}${hddtemp /dev/sdb} °C${color}${offset 16}*${offset 16}Sdc:${offset 5}${if_match ${hddtemp /dev/sdc}<=50}${color7}${else}${if_match ${hddtemp /dev/sdc}<=70}${color8}${else}${if_match ${hddtemp /dev/sdc}>70}${color9}${endif}${endif}${endif}${hddtemp /dev/sdc} °C${color}${offset 16}*${offset 16}CPU:${offset 5}${if_match ${hwmon 1 temp 1}<=50}${color7}${else}${if_match ${hwmon 1 temp 1}<=70}${color8}${else}${if_match ${hwmon 1 temp 1}>70}${color9}${endif}${endif}${endif}${hwmon 1 temp 1} °C${color}${offset 16}*${offset 16}CPU:${offset 5}${if_match ${cpu}<=50}${color7}${else}${if_match ${cpu}<=70}${color8}${else}${if_match ${cpu}>70}${color9}${endif}${endif}${endif}${cpu cpu1}%${color}${offset 16}*${offset 16}Mem:${offset 5}${if_match ${memperc}<=50}${color7}${else}${if_match ${memperc}<=70}${color8}${else}${if_match ${memperc}>70}${color9}${endif}${endif}${endif}$memperc%${color}${offset 16}*${offset 16}Eth0:${offset 5}Down:${offset 5}${downspeedf eth0} kb/s${offset 16}*${offset 16}Up:${offset 5}${upspeedf eth0} kb/s${offset 16}*${offset 16}Downloaded:${offset 5}${totaldown eth0}${offset 16}*${offset 16}Uploaded:${offset 5}${totalup eth0}${offset 16}*${offset 16}Month:${offset 5}${execpi 6000 vnstat -m | grep "`date +"%b"`" | awk '{print $9 $10}'}
Great...
Thanks packrat!
@PackRat
Having trouble locating
lua_load ~/conky/conky_luabg.lua
Doing a search takes me to several sites but not the actual file
Edit - Found it...
Thanks
Last edited by VastOne (2011-08-02 04:37:35)
@PackRat
Having trouble locating
lua_load ~/conky/conky_luabg.lua
Doing a search takes me to several sites but not the actual file
Edit - Found it...
Thanks
It's the standard lua semi-transparent background script; however, the one I'm using may not have all the fixes for the memory leaks others were having. Where did you find the version you're using?
Last edited by PackRat (2011-08-02 13:27:18)
VastOne wrote:@PackRat
Having trouble locating
lua_load ~/conky/conky_luabg.lua
Doing a search takes me to several sites but not the actual file
Edit - Found it...
Thanks
It's the standard lua semi-transparent background script; however, the one I'm using may not have all the fixes for the memory leaks others were having. Where did you find the version you're using?
Attached as a txt file on an Ubuntu forum thread... Here it is
conky_luabg.lua
--[[
Background by londonali1010 (2009)
This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
lua_load ~/scripts/draw_bg.lua
lua_draw_hook_pre
Changelog:
+ v1.0 -- Original release (07.10.2009)
]]
-- Change these settings to affect your background.
-- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
corner_r=12
-- Set the colour and transparency (alpha) of your background.
bg_colour=0x2a2a2a
bg_alpha=0.50
require 'cairo'
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg()
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
cr=cairo_create(cs)
cairo_move_to(cr,corner_r,0)
cairo_line_to(cr,w-corner_r,0)
cairo_curve_to(cr,w,0,w,0,w,corner_r)
cairo_line_to(cr,w,h-corner_r)
cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
cairo_line_to(cr,corner_r,h)
cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
cairo_line_to(cr,0,corner_r)
cairo_curve_to(cr,0,0,0,0,corner_r,0)
cairo_close_path(cr)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
cairo_fill(cr)
end@VastOne
This is the version I'm actually using. Note the last two lines. I believe those are the lines that fix the memory leak caused by the script. I didn't see them in the script you posted. I'm not entirely sure though. I've been using this conkyrc for so long, and never really hopped the on the lua bandwagon that I've forgotten the history of this particular script.
--[[
Background by londonali1010 (2009)
This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
lua_load ~/scripts/draw_bg.lua
lua_draw_hook_pre
Changelog:
+ v1.0 -- Original release (07.10.2009)
]]
-- Change these settings to affect your background.
-- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
corner_r=8
-- Set the colour and transparency (alpha) of your background.
bg_colour=0x2C303B
bg_alpha=0.70
require 'cairo'
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg()
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
cr=cairo_create(cs)
cairo_move_to(cr,corner_r,0)
cairo_line_to(cr,w-corner_r,0)
cairo_curve_to(cr,w,0,w,0,w,corner_r)
cairo_line_to(cr,w,h-corner_r)
cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
cairo_line_to(cr,corner_r,h)
cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
cairo_line_to(cr,0,corner_r)
cairo_curve_to(cr,0,0,0,0,corner_r,0)
cairo_close_path(cr)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
cairo_fill(cr)
cairo_destroy(cr)
cairo_surface_destroy(cs)
endI think this is the latest version:
http://ubuntuforums.org/showpost.php?p= ount=17738
Last edited by PackRat (2011-08-02 17:14:52)
I appreciate that PackRat...
I have a 2 line conky that does not use lua that I am enjoying...
I am using it as a panel and it works quite well, the only thing lacking is whether or not a panel setup in conky is capable of autohide.. that would make it complete... for me anyway
Last edited by VastOne (2011-08-02 22:28:55)
#avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent no
own_window_type desktop
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#borders
draw_borders no
border_margin 0
#shades
draw_shades yes
#position
gap_x 0
gap_y -3
alignment Top_Middle
#behaviour
update_interval 1.0
#colour
default_color 8f8f8f
default_shade_color 000000
#own_window_colour 222222
#font
#use_xft yes
xftfont Terminus Book:pixelsize=9
#to prevent window from moving
#use_spacer none
minimum_size 1280 0
#maximum_width 1920 0
#mpd
mpd_host localhost
mpd_port 6600
# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
# stuff after 'TEXT' will be formatted on screen
#$alignc center text
TEXT
${alignc}${voffset 0}${color e0e0e0} CPU: ${color}${cpu cpu1}% $freq MHz ${acpitemp}C ${color 00ff00}|${color}${color e0e0e0} Mem: ${color}${font}${mem} / ${memmax} ${memperc}% ${color 00ff00}|${color}${color e0e0e0} Uptime: ${color}${font}${uptime_short} ${color 00ff00}|${color}${color e0e0e0} Storage: ${color}${fs_used /home} / ${fs_size /home} ${fs_used_perc /home}%Nice one omns
In return, here is one of mine. It is for a single core machine with an Atheros wireless card. Anyone interested in using it can simply swap out the references to ath0 with wlan0 to use with more generic wireless cards.
Here in South Africa, 3G modems are the only practical Internet access! So how can I adapt this to display my 3G network details instead? ![]()
(gnome-system-monitor has thus far been my only solution
)
corenominal wrote:Nice one omns
In return, here is one of mine. It is for a single core machine with an Atheros wireless card. Anyone interested in using it can simply swap out the references to ath0 with wlan0 to use with more generic wireless cards.
Here in South Africa, 3G modems are the only practical Internet access! So how can I adapt this to display my 3G network details instead?
(gnome-system-monitor has thus far been my only solution)
http://crunchbanglinux.org/forums/post/27551/#p27551
Thanks! ![]()

Tried a fun cascading effect with conky. ![]()
I apologize for my sloppy config file. This was posted very quickly after finally achieving my goal.
##############################################
# Settings
##############################################
background yes
use_xft yes
xftfont Andale Mono:size=9
xftalpha 1
update_interval 1
total_run_times 0
own_window yes
own_window_argb_visual yes
own_window_transparent yes
own_window_type normal
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color d8d8d8
default_shade_color 000000
default_outline_color d9d7d6
alignment top_left
gap_y 8
gap_x 12
no_buffers yes
uppercase yes
minimum_size 1280 800
cpu_avg_samples 2
override_utf8_locale no
##############################################
# Output
##############################################
TEXT
${alignc}${font Anadale Mono:style=bold:size=26}${time %_I.%M%P}${font}
${alignc}${font Anadale Mono:size=14} ${time %A, %d %B %Y}${font}
${font Anadale Mono:style=Bold:size=16}SYSINFO-${font}
${font Anadale Mono:style=bold:size=13}Uptime:${font} $uptime ${font Anadale Mono:style=bold:size=13}CPU:${font} ${cpu cpu0 + cpu1}% ${font Anadale Mono:style=bold:size=13}RAM:${font} $mem/$memmax ${font Anadale Mono:style=bold:size=13}Root Disk:${font} ${fs_used /}/${fs_size /} ${font Anadale Mono:style=bold:size=13}Home Disk:${font} ${fs_used /home/}/${fs_size /home/}
${font Anadale Mono:style=Bold:size=16}PROCESSES-${font}
${font Anadale Mono:style=bold:size=13}${top name 1}${font}${top mem 1}% ${font Anadale Mono:style=bold:size=13}${top name 2}${font}${top mem 2}% ${font Anadale Mono:style=bold:size=13}${top name 3}${font}${top mem 3}% ${font Anadale Mono:style=bold:size=13}${top name 4}${font}${top mem 4}%
${font Anadale Mono:style=Bold:size=16}WEATHER-${font}
${font Anadale Mono:style=bold:size=13}${execi 300 /home/matt/.conky/weather.sh "55430"}${font}Last edited by viciousMinion (2011-08-03 21:39:22)
@ viciousMinion
Welcome! Very nice conky out of the gate!
Thanks!
Tried a fun cascading effect with conky.
I apologize for my sloppy config file. This was posted very quickly after finally achieving my goal.
Very nice --- looks like it's setting with the moon.
Can you show the weather.sh file and explain how it works?
Last edited by Sector11 (2011-08-03 21:47:14)
Sure!
The script is here.
#!/bin/sh
#AccuWeather (r) RSS weather tool for conky
#
#USAGE: weather.sh <locationcode>
#
#(c) Michael Seiler 2007
METRIC=0 #Should be 0 or 1; 0 for F, 1 for C
if [ -z $1 ]; then
echo
echo "USAGE: weather.sh <locationcode>"
echo
exit 0;
fi
curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 | perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print "$1"; }'Its actually pretty simple- You first need to have curl installed (sudo aptitude install curl)
Then you simply call the file in your .conkyrc with your location code, which can be looked up at accuweather.com. For US residents, it's just your zip code.
I know it's not one of the normal weather scripts for conky, but it's a non-graphical, one line display, which oddly enough is hard to come by. I think I actually ran across the link to the code while browsing this very thread! ![]()
Sure!
The script is here.#!/bin/sh #AccuWeather (r) RSS weather tool for conky # #USAGE: weather.sh <locationcode> # #(c) Michael Seiler 2007 METRIC=0 #Should be 0 or 1; 0 for F, 1 for C if [ -z $1 ]; then echo echo "USAGE: weather.sh <locationcode>" echo exit 0; fi curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 | perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print "$1"; }'Its actually pretty simple- You first need to have curl installed (sudo aptitude install curl)
Then you simply call the file in your .conkyrc with your location code, which can be looked up at accuweather.com. For US residents, it's just your zip code.I know it's not one of the normal weather scripts for conky, but it's a non-graphical, one line display, which oddly enough is hard to come by. I think I actually ran across the link to the code while browsing this very thread!
That is exactly what makes it special. vrkalak was asking about just this type of thing, I had no idea one existed. It's greatness is in it's simplicity!
And it's been around for a long time too: #(c) Michael Seiler 2007
Again; thanks.
EDIT: I have tried for over an hour to find the "location code" of any city outside of the USA where ZIP codes work. If anyone finds how to use this script for locations outside the US please let us know. Postal Codes for Canada do not work. and other countries draw a blank.
Found this ... getting there ... I have Toronto (and more) working:
Toronto: ${execi 300 ~/Conky/scripts/AccuWeather.sh "NAM|CA|ON|TORONTO"}# EUR|UK|UK001|LONDON
# ASI|JP|JA041|TOKYO
# EUR|FR|FR012|PARIS
# NAM|US|NY|NEW YORK
# NAM|CA|ON|TORONTO
# SAM|BR|BR017|RIO DE JANEIRO
# ASI|RU|RS052|MOSCOW
# OCN|AU|NSW|SYDNEY
# MEA|AE|AE005|DUBAI
# ASI|CN|CH002|BEIJING
# AFR|ZA|SF011|CAPE TOWN
# NAM|US|CA|LOS ANGELES
# EUR|DE|GM003|BERLIN
# EUR|ES|SP013|MADRID
Last edited by Sector11 (2011-08-04 19:11:26)
Posts [ 2,501 to 2,525 of 2,565 ]
CrunchBang Linux Forums » Tips, Tricks & Scripts » My Conky Config
Forums powered by PunBB. Hosted by Linode.
Copyright © CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.