Hi everyone! I took this file from one of Bruce's MUCH older posts:
I don't yet use more than one conky, so I've commented out other conkyrc files but kept them for future use. However, double-clicking the file doesn't start/stop conky, it just gets opened in gedit. Where am I doing this wrong? Also, how do you put this file on the panel with an icon?Code:#!/bin/sh # click to start, click to stop if pidof conky | grep [0-9] > /dev/null then exec killall conky else sleep 5 # sleep not required for xfce on startup - 30 or more for others conky -c ~/conky/conkymain & #sleep 0 #conky -c ~/Conky/conkyforecast & #sleep 0 #conky -c ~/Conky/conkyemail & #sleep 0 #conky -c ~/Conky/conkygcal & #sleep 0 #conky -c ~/Conky/todo & #sleep 0 #conky -c ~/Conky/calendar & #sleep 0 #conky -c ~/Conky/test & exit fi
No. You need sub PPA to your team account like XBMC-Team. They have main account and there is several PPA for different Ubuntu distribution and separate PPA for themes (ups!, they deleted alot of PPA's but still they have 2 PPA's inside launchpad team account): http://launchpad.net/~team-xbmc
Linux Debian Sid (Minted) x86_64/3.12.10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Lenovo T61, Intel X3100, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | My Conky Pitstop corner | One4All project
My current set up, using regular gnome, with a tiny bar hidden with just one or two applets.
Now I'm using AWN and using Gnome-Do Glass as a launcher.
I had to do some dirty hacks to make it how I want so it might turn out bad for you. If so, you'll have to hack around too. Not much changed. Here are the configurations:
.conkyrc
lisbonforecast.templateCode:# Conky, a system monitor, based on torsmo # # Any original torsmo code is licensed under the BSD license # # All code written since the fork of torsmo is licensed under the GPL # # Please see COPYING for details # # Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen # Copyright (c) 2005-2007 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) # All rights reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. override_utf8_locale yes use_spacer none use_xft yes xftfont FreeMono:bold:size=7 xftalpha 1 double_buffer yes minimum_size 1270 34 no_buffers yes update_interval 1 own_window yes own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below own_window_transparent yes own_window_type override border_inner_margin 0 border_width 0 draw_borders no draw_shades no stippled_borders 0 default_color D3D3D3 #default_outline_color 1E1C1A #default_shade_color white own_window_colour ffffff alignment bottom_middle gap_x 0 gap_y -118 cpu_avg_samples 1 net_avg_samples 1 no_buffers yes text_buffer_size 1024 #short_units true #Lua Scripts lua_load ~/.conkygui/scripts/background_mod.lua lua_load ~/.conkygui/scripts/rings_mod.lua lua_draw_hook_pre background lua_draw_hook_post rings TEXT ${offset 1220}${voffset -10}${font FreeMono:bold:size=8}${time %a}${font} ${offset 1220}${voffset -2}${font FreeMono:bold:size=8}${time %b}${font} ${offset 1240}${voffset -35}${font FreeSans:bold:size=18}${time %d}${font} ${offset 1230}${voffset -4}${font FreeSans:bold:size=10}${time %Y}${font} ${offset 1160}${voffset -49}${font FreeSans:bold:size=18}${time %H:}${font FreeSans:bold:size=14}${time %M}${font} ${offset 1182}${voffset -3}${font FreeSans:bold:size=10}${time %S}${font} ${offset 1070}${voffset -43}${execpi 1800 conkyForecast --location=POXX0016 --template=/home/proxess/.conkygui/templates/lisbonforecast.template} ${offset 970}${voffset -40}${execpi 1800 conkyForecast --location=JAXX0071 --template=/home/proxess/.conkygui/templates/osakaforecast.template} ${offset 900}${voffset -40} ${offset 900}${voffset 0} ${offset 900}${voffset 0} ${offset 870}${voffset -40} ${offset 870}${voffset 0} ${offset 870}${voffset 0} ${offset 24}${voffset -40}${if_match ${cpu cpu1}<10}0${endif}${if_match ${cpu cpu1}<100}0${endif}${cpu cpu1}% ${offset 24}${voffset 0}${exec sensors | grep "Core 0:" | cut -c15-16 ;}°C ${offset 6}${voffset 0}${if_match ${freq cpu1}<1000}0${endif}${freq cpu1}MHz ${offset 76}${voffset -40}${if_match ${cpu cpu2}<10}0${endif}${if_match ${cpu cpu2}<100}0${endif}${cpu cpu2}% ${offset 76}${voffset 0}${exec sensors | grep "Core 1:" | cut -c15-16 ;}°C ${offset 58}${voffset 0}${if_match ${freq cpu2}<1000}0${endif}${freq cpu2}MHz ${offset 108}${voffset -40}M ${offset 108}${voffset -4}m ${offset 108}${voffset -4}y ${offset 108}${voffset -2} ${offset 166}${voffset -38} ${offset 166}${voffset -4}S ${offset 166}${voffset -4}w ${offset 166}${voffset -4}p ${offset 116}${voffset -40} ${offset 116}${voffset 0} ${offset 116}${voffset 0}${if_match ${memperc}<10}0${endif}${if_match ${memperc}<100}0${endif}${memperc}% ${offset 140}${voffset -40}${if_match ${swapperc}<10}0${endif}${if_match ${swapperc}<100}0${endif}${swapperc}% ${offset 140}${voffset 0} ${offset 140}${voffset 0} ${offset 177}${voffset -40}W ${offset 177}${voffset -4}L ${offset 177}${voffset -4}a ${offset 177}${voffset -4}n ${offset 235}${voffset -38}${if_existing /sys/class/power_supply/BAT0/}B${endif} ${offset 235}${voffset -4}${if_existing /sys/class/power_supply/BAT0/}a${else}A${endif} ${offset 235}${voffset -4}${if_existing /sys/class/power_supply/BAT0/}t${else}c${endif} ${offset 235}${voffset -2}0 ${offset 185}${voffset -40} ${offset 185}${voffset 0} ${offset 185}${voffset 0}${if_match ${wireless_link_qual_perc wlan0}<10}0${endif}${if_match ${wireless_link_qual_perc wlan0}<100}0${endif}${if_match ${wireless_link_qual_perc wlan0}!=unk}${wireless_link_qual_perc wlan0}${else}0${endif}% ${offset 209}${voffset -40}${if_existing /sys/class/power_supply/BAT0/}${if_match ${battery_percent BAT0}<10}0${endif}${if_match ${battery_percent BAT0}<100}0${endif}${battery_percent BAT0}%${else}240V${endif} ${offset 209}${voffset 0} ${offset 209}${voffset 0} ${offset 247}${voffset -40} ${offset 247}${voffset 0}/ ${offset 247}${voffset 0} ${offset 315}${voffset -40} ${offset 315}${voffset 0}G ${offset 315}${voffset 0} ${offset 247}${voffset -40} ${offset 247}${voffset 0} ${offset 247}${voffset 0}${fs_free /} ${offset 285}${voffset -40}${fs_free /media/G/} ${offset 285}${voffset 0} ${offset 285}${voffset 0}
osakaforecast.templateCode:[--datatype=OB] ${offset 1070}${voffset 0}${if_match [--datatype=HT --hideunits --hidedegreesymbol]>-10}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<10}0${endif}${endif}[--datatype=HT --hideunits]C ${offset 1082}${voffset 0}${if_match [--datatype=HT --hideunits --hidedegreesymbol --startday=1]>-10}${if_match [--datatype=HT --hideunits --hidedegreesymbol --startday=1]<10}0${endif}${endif}[--datatype=HT --hideunits --startday=1]C ${offset 1030}${voffset -40}${image [--datatype=WI] -s 36x36 -p 1030,-6} ${offset 1112}${voffset 0}${image [--datatype=WI --startday=1] -s 36x36 -p 1112,8} ${offset 1070}${voffset 0}
background_mod.luaCode:[--datatype=OB] ${offset 970}${voffset 0}${if_match [--datatype=HT --hideunits --hidedegreesymbol]>-10}${if_match [--datatype=HT --hideunits --hidedegreesymbol]<10}0${endif}${endif}[--datatype=HT --hideunits]C ${offset 982}${voffset 0}${if_match [--datatype=HT --hideunits --hidedegreesymbol --startday=1]>-10}${if_match [--datatype=HT --hideunits --hidedegreesymbol --startday=1]<10}0${endif}${endif}[--datatype=HT --hideunits --startday=1]C ${offset 930}${voffset -40}${image [--datatype=WI] -s 36x36 -p 930,-6} ${offset 1012}${voffset 0}${image [--datatype=WI --startday=1] -s 36x36 -p 1012,8} ${offset 970}${voffset 0}
rings_mod.luaCode:require 'cairo' function rgb_to_r_g_b(colour,alpha) return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha end corner_r_tr=32 corner_r_br=32 corner_r_tl=32 corner_r_bl=32 -- Set colour and transparency. bg_colour=0x3A5439 bg_alpha=0.2 function conky_background() if conky_window==nil then return end local w=conky_window.width local h=conky_window.height-119 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_tr,0) cairo_line_to(cr,w-corner_r_tr,0) cairo_curve_to(cr,w,0,w,0,w,corner_r_tl) cairo_line_to(cr,w,h-corner_r_br) cairo_curve_to(cr,w,h,w,h,w-corner_r_br,h) cairo_line_to(cr,corner_r_bl,h) cairo_curve_to(cr,0,h,0,h,0,h-corner_r_bl) cairo_line_to(cr,0,corner_r_tl) cairo_curve_to(cr,0,0,0,0,corner_r_tl,0) cairo_close_path(cr) cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha)) cairo_fill(cr) end
Code:settings_table = { { name='cpu', arg='cpu1', max=100, x=12, y=12, radius=4, thickness=8, start_angle=0, end_angle=360, bg_colour=0x000000, bg_alpha=0.2, fg_colour=0xD3D3D3, fg_alpha=0.8, colour_coding=true, coding_direction=true, warning=70, danger=90, warning_bgc=0xE38513, warning_bga=0.2, warning_colour=0xE38513, warning_alpha=0.5, danger_bgc=0x840000, danger_bga=0.2, danger_colour=0x840000, danger_alpha=0.8 }, { name='cpu', arg='cpu2', max=100, x=64, y=12, radius=4, thickness=8, start_angle=0, end_angle=360, bg_colour=0x000000, bg_alpha=0.2, fg_colour=0xD3D3D3, fg_alpha=0.8, colour_coding=true, coding_direction=true, warning=70, danger=90, warning_bgc=0xE38513, warning_bga=0.2, warning_colour=0xE38513, warning_alpha=0.5, danger_bgc=0x840000, danger_bga=0.2, danger_colour=0x840000, danger_alpha=0.8 }, { name='memperc', arg='', max=100, x=128, y=12, radius=4, thickness=8, start_angle=0, end_angle=360, bg_colour=0x000000, bg_alpha=0.2, fg_colour=0xD3D3D3, fg_alpha=0.8, colour_coding=true, coding_direction=true, warning=70, danger=90, warning_bgc=0xE38513, warning_bga=0.2, warning_colour=0xE38513, warning_alpha=0.5, danger_bgc=0x840000, danger_bga=0.2, danger_colour=0x840000, danger_alpha=0.8 }, { name='swapperc', arg='', max=100, x=153, y=22, radius=4, thickness=8, start_angle=0, end_angle=360, bg_colour=0x000000, bg_alpha=0.2, fg_colour=0xD3D3D3, fg_alpha=0.8, colour_coding=true, coding_direction=true, warning=70, danger=90, warning_bgc=0xE38513, warning_bga=0.2, warning_colour=0xE38513, warning_alpha=0.5, danger_bgc=0x840000, danger_bga=0.2, danger_colour=0x840000, danger_alpha=0.8 }, { name='wireless_link_qual_perc', arg='wlan0', max=100, x=197, y=12, radius=4, thickness=8, start_angle=0, end_angle=360, bg_colour=0x000000, bg_alpha=0.2, fg_colour=0xD3D3D3, fg_alpha=0.8, colour_coding=true, coding_direction=false, warning=30, danger=10, warning_bgc=0xE38513, warning_bga=0.2, warning_colour=0xE38513, warning_alpha=0.5, danger_bgc=0x840000, danger_bga=0.2, danger_colour=0x840000, danger_alpha=0.8 }, { name='battery_percent', arg='BAT0', max=100, x=222, y=22, radius=4, thickness=8, start_angle=0, end_angle=360, bg_colour=0x000000, bg_alpha=0.2, fg_colour=0xD3D3D3, fg_alpha=0.8, colour_coding=true, coding_direction=false, warning=30, danger=10, warning_bgc=0xE38513, warning_bga=0.2, warning_colour=0xE38513, warning_alpha=0.5, danger_bgc=0x840000, danger_bga=0.2, danger_colour=0x840000, danger_alpha=0.8 }, { name='fs_free_perc', arg='/', max=100, x=264, y=12, radius=4, thickness=8, start_angle=0, end_angle=360, bg_colour=0x000000, bg_alpha=0.2, fg_colour=0xD3D3D3, fg_alpha=0.8, colour_coding=true, coding_direction=false, warning=30, danger=10, warning_bgc=0xE38513, warning_bga=0.2, warning_colour=0xE38513, warning_alpha=0.5, danger_bgc=0x840000, danger_bga=0.2, danger_colour=0x840000, danger_alpha=0.8 }, { name='fs_free_perc', arg='/media/G', max=100, x=305, y=22, radius=4, thickness=8, start_angle=0, end_angle=360, bg_colour=0x000000, bg_alpha=0.2, fg_colour=0xD3D3D3, fg_alpha=0.8, colour_coding=true, coding_direction=false, warning=30, danger=10, warning_bgc=0xE38513, warning_bga=0.2, warning_colour=0xE38513, warning_alpha=0.5, danger_bgc=0x840000, danger_bga=0.2, danger_colour=0x840000, danger_alpha=0.8 } } 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 draw_ring(cr,t,pt,value) local w,h=conky_window.width,conky_window.height local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle'] local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha'] local angle_0=sa*(2*math.pi/360)-math.pi/2 local angle_f=ea*(2*math.pi/360)-math.pi/2 local t_arc=t*(angle_f-angle_0) local cc, cd=pt['colour_coding'], pt['coding_direction'] local wn, dn=pt['warning'], pt['danger'] local wbgc, wbga, wc, wa=pt['warning_bgc'], pt['warning_bga'], pt['warning_colour'], pt['warning_alpha'] local dbgc, dbga, dc, da=pt['danger_bgc'], pt['danger_bga'], pt['danger_colour'], pt['danger_alpha'] -- Draw background ring cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f) cairo_set_line_width(cr,ring_w) if cc == false then cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga)) else if cd == true then if value < wn then cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga)) elseif value >= dn then cairo_set_source_rgba(cr,rgb_to_r_g_b(dbgc,dbga)) else cairo_set_source_rgba(cr,rgb_to_r_g_b(wbgc,wbga)) end else if value > wn then cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga)) elseif value <= dn then cairo_set_source_rgba(cr,rgb_to_r_g_b(dbgc,dbga)) else cairo_set_source_rgba(cr,rgb_to_r_g_b(wbgc,wbga)) end end end cairo_stroke(cr) -- Draw indicator ring cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc) if cc == false then cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga)) else if cd == true then if value < wn then cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga)) elseif value >= dn then cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,da)) else cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,wa)) end else if value > wn then cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga)) elseif value <= dn then cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,da)) else cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,wa)) end end end cairo_stroke(cr) end function conky_rings() local function setup_rings(cr,pt) local str='' local value=0 str=string.format('${%s %s}',pt['name'],pt['arg']) str=conky_parse(str) if pt['name'] == 'wireless_link_qual_perc' and str == 'unk' then value=0 elseif pt['name'] == 'time' and pt['arg'] == '%I' then local his=tonumber(str)*60*60 local mis=tonumber(conky_parse('${time %M.%S}'))*60 local secs=tonumber(conky_parse('${time %S}')) value=his+mis+secs elseif pt['name'] == 'time' and pt['arg'] == '%M.%S' then local mis=tonumber(str)*60 local secs=tonumber(conky_parse('${time %S}')) value=mis+secs else value=tonumber(str) end if value == 0 then pct = 0 else pct=value/pt['max'] end draw_ring(cr,pct,pt,value) end -- Check that Conky has been running for at least 5s if conky_window==nil then return end local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height) local cr=cairo_create(cs) local updates=conky_parse('${updates}') update_num=tonumber(updates) if update_num>5 then for i in pairs(settings_table) do setup_rings(cr,settings_table[i]) end end end
Laptop: i7 4930MX @3.9GHz undervolted; 32GB 4x8GB Kingston HyperX Impact 1600MHz; Nvidia 780M 4GB; Samsung 840 EVO mSATA 250GB; Ubuntu 16.04 and Windows 10 Pro.
Ubuntu #8076 / Linux #429448
I sent norsetto an email earlier. conky starting with 1.7.2 won't work with Hardy anyway. That's the main reason I wanted to do that. Not just because I use Hardy myself but to have newer versions of conky for any currently supported Ubuntu version. He said that the newer conky would require some backports and some of those backports would require some backports.
It basically sounds like the beginning of a never ending task. Then again, writing/rewriting .conkyrc files is never ending...
Registered Ubuntu User #29430
Registered Ubuntu User #29430
I'm looking for a .conkyrc that'll go well with this http://traance.deviantart.com/art/Vinyl-73175447 wallpaper. Ideas? I need RAM/CPU/SWAP usage, rhythmbox album art would be cool, and hard drive usage.
Ubuntu is not a mission. It is an operating system. If Windows or OS X works for somebody, good for them.
Get dropbox!
the "rings" setup might work well with that wallpaper. I haven't used it yet, so I don't know how to set one up, but I'm sure there are examples all over the place.
Bookmarks