You are not logged in.
greetings from germany
ive found this vlc script.
dont know if somebody already pasted
my english is scheisse ey
so wenn Ju faint a misstaik korrräkt mi
Offline
and this is a config i want to use but there is a problem ;
conky somethimes apeares in front of other programms and i have to restart it. do you find a answer in the script?
maybe it is a bug ?!
sorry for my egnlish
# set to yes if you want Conky to be forked in the background
background no
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=8
own_window_transparent no
#own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8
on_bottom yes
# mail spool
mail_spool $MAIL
# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar
own_window_type override
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 260 5
maximum_width 260
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders no
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white
# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 15
gap_y 70
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# none, xmms, bmp, audacious, infopipe (default is none)
xmms_player bmp
# boinc (seti) dir
# seti_dir /opt/seti
# 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,
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}
TEXT
${color #0077ff}$sysname $kernel $machine - $nodename
${color #0077ff}Uptime:${color lightgrey} $uptime ${color #0077ff} Load:${color lightgrey} $loadavg
${color #0077ff}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} ${color lightgrey}${freq_dyn}Mhz
${color #0077ff}Usage:${color #0077ff} ${color lightgrey}${cpu}% ${color #0077ff}${cpubar}
${color #0077ff}${cpugraph 000000 0077ff}
${color #0077ff}Proces:${color lightgrey} $processes ${color #0077ff}Run:${color lightgrey} $running_processes ${color #0077ff}CPU:${color lightgrey} ${i2c temp 2}C${color lightgrey} ${color #0077ff}MB:${color lightgrey} ${i2c temp 1}C
${color #0077ff}RAM:${color lightgrey} $mem/$memmax - $memperc% ${alignr}${color #0077ff}${membar 5,110}
${color #0077ff}SWP:${color lightgrey} $swap/$swapmax - $swapperc% ${alignr}${color #0077ff}${swapbar 5,110}
${color #0077ff}HD IO: ${color lightgrey}${diskio} ${alignr}${color #0077ff}Temperature: ${color lightgrey}${execi 10 /home/admin/.bin/hddconky}C
${color #0077ff}${diskiograph 000000 0077ff}
${color #0077ff}Hard Disks:
${color #0077ff} Root ${color lightgrey}${fs_used /}/${fs_size /}${alignr}${color #0077ff}${fs_bar 5,120 /}
${color #0077ff} Home ${color lightgrey}${fs_used /home}/${fs_size /home}${alignr}${color #0077ff}${fs_bar 5,120 /home}
${color #0077ff} Data ${color lightgrey}${fs_used /media/data}/${fs_size /media/data}${alignr}${color #0077ff}${fs_bar 5,120 /media/data}
${color #0077ff}CPU Usage PID CPU% MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #0077ff} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #0077ff} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #0077ff}Mem Usage
${color lightgrey} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #0077ff} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #0077ff} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color #0077ff}Network: ${color lightgrey}${addr eth0}
${color #0077ff}Down:${color lightgrey} ${downspeed eth0} k/s $alignr${color #0077ff} Up:${color lightgrey} ${upspeed eth0} k/s
${color #0077ff}${downspeedgraph eth0 27,120 000000 0077ff 180} $alignr${color #0077ff}${upspeedgraph eth0 27,120 000000 0077ff 25}
${color lightgrey}${totaldown eth0} $alignr${color lightgrey}${totalup eth0}
${color #0077ff}Port(s)${alignr}#Connections
${color #0077ff}Inbound: ${color lightgrey}${tcp_portmon 1 32767 count} ${color #0077ff}Outbound: ${color lightgrey}${tcp_portmon 32768 61000 count}${alignr}${color #0077ff}Total: ${color lightgrey}${tcp_portmon 1 65535 count}
${color #0077ff}Inbound Connection ${alignr} Local Service/Port${color lightgrey}
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
${tcp_portmon 1 32767 rhost 6} ${alignr} ${tcp_portmon 1 32767 lservice 6}
my english is scheisse ey
so wenn Ju faint a misstaik korrräkt mi
Offline
NICE!!!!!! I like that!
Images don't need to be "hidden", I keep the images I use in conky in
~/conky/images
That way they don't get mixed up with others.
Last edited by Sector11 (2010-09-17 14:13:41)
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
Try to put
#!/usr/bin/conky -qc
at the top of the conkyrc and give it execute permission
And your conkyrc become a script and you can launch (for example)
./conkyrc
For example I made this
#!/usr/bin/conky -qc
background no
use_xft yes
xftfont montecarlo:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent no
own_window_type desktop
own_window_colour 080808
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 180
double_buffer yes
minimum_size 200
maximum_width 200
draw_shades no
draw_outline no
draw_borders yes
draw_graph_borders no
default_color e3e0cf
default_shade_color 000000
default_outline_color d9d7d6
alignment top_right
gap_x 20
gap_y 40
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
color1 4169e1
color2 808080
border_inner_margin 6
border_outer_margin 1
border_width 1
override_utf8_locale yes
##############################################
# Output
##############################################
TEXT
$color1${font Terminus:size=32}${alignc}${time %T}$font$color
${execpi 3600 cal-cli}
I move it into ~/bin, I call it conky-cal and I can start it with a simple
conky-cal
and no more
conky -qc ~/bin/conky-cal
Enjoy!
"I'd rather run Linux on a 6.5KHz machine through an ARM emulator than run Vista"
Offline
here is a nice short simple lua script to give your rings a bit more color. (a slight 61 lines long )
you can specify what color you want the ring to be at 0% and what color the ring should be at 100% and the ring changes color as % changes
like this
so at 0% i get yellow and 100% i get red and then any color in between depending on the % number
--color change rings by mrpeachy 2010. Modified from londonali1010's original ring script
require 'cairo'
function draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
local angle_0=rstart*(2*math.pi/360)-math.pi/2
local angle_f=rend*(2*math.pi/360)-math.pi/2
local t_arc=(co/100)*(angle_f-angle_0)
-- Draw background ring
cairo_arc(cr,across,down,rad,angle_0,angle_f)
cairo_set_source_rgba(cr,bgr,bgg,bgb,bga)
cairo_set_line_width(cr,inlw)
cairo_stroke(cr)
-- Draw indicator ring
cairo_arc(cr,across,down,rad,angle_0,angle_0+t_arc)
cairo_set_source_rgba(cr,inr,ing,inb,ina)
cairo_stroke(cr)
end
function conky_draw_gring()
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)
cr = cairo_create(cs)
local updates=tonumber(conky_parse('${updates}'))
if updates> 3 then
--RING 1 SETUP-----------------------------------------------------------------------------
--conky object to be displayed-----
co=conky_parse('${cpu}')
--position-----------------------------
across=100
down=100
--radius of ring-----------------------
rad=50
--ring width---------------------------
inlw=8
--start and end angles---------------
rstart=0
rend=360
--color and alpha when ring is at 0----
inr0,ing0,inb0,ina0=1,1,0,1
--color and alpha when ring is at max-----
inrm,ingm,inbm,inam=1,0,0,1
--background ring color and alpha-----
bgr,bgg,bgb,bga=0.5,0.5,0.5,1
--calculations, do not edit below---------
rstep=(inr0-inrm)/100
gstep=(ing0-ingm)/100
bstep=(inb0-inbm)/100
astep=(ina0-inam)/100
irt={}
igt={}
ibt={}
iat={}
for i=0,100 do
irt[i]=inr0-(rstep*i)
igt[i]=ing0-(gstep*i)
ibt[i]=inb0-(bstep*i)
iat[i]=ina0-(astep*i)
end
inr=irt[tonumber(co)]
ing=igt[tonumber(co)]
inb=ibt[tonumber(co)]
ina=iat[tonumber(co)]
draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
--END RING 1 SETUP---------------copy setup section and paste for additional rings----------
end
end
note you can only really use conky variables which give you a percentage, i.e. values of 0 to 100, with this script without modifying it
with modifications i could make a ring change from green at 0% to yellow at 50% then change from yellow to red at 100%
this looks like it for the double color change - swap out the ring setup section for this one
--RING 1 SETUP-----------------------------------------------------------------------------
--conky object to be displayed-----
co=conky_parse('${cpu}')
--position-----------------------------
across=100
down=100
--radius of ring-----------------------
rad=20
--ring width---------------------------
inlw=5
--start and end angles---------------
rstart=0
rend=360
--color and alpha when ring is at 0----
inr0,ing0,inb0,ina0=0,1,0,1
--color and alpha when ring is at 50%----
inr50,ing50,inb50,ina50=1,1,0,1
--color and alpha when ring is at max-----
inrm,ingm,inbm,inam=1,0,0,1
--background ring color and alpha-----
bgr,bgg,bgb,bga=0.5,0.5,0.5,0.5
--calculations, do not edit below---------
r1step=(inr0-inr50)/100
g1step=(ing0-ing50)/100
b1step=(inb0-inb50)/100
a1step=(ina0-ina50)/100
r2step=(inr50-inrm)/100
g2step=(ing50-ingm)/100
b2step=(inb50-inbm)/100
a2step=(ina50-inam)/100
irt={}
igt={}
ibt={}
iat={}
for i=0,100 do
if i<=50 then
irt[i]=inr0-(r1step*i*2)
igt[i]=ing0-(g1step*i*2)
ibt[i]=inb0-(b1step*i*2)
iat[i]=ina0-(a1step*i*2)
else
irt[i]=inr50-(r2step*(i-50)*2)
igt[i]=ing50-(g2step*(i-50)*2)
ibt[i]=inb50-(b2step*(i-50)*2)
iat[i]=ina50-(a2step*(i-50)*2)
end
end
inr=irt[tonumber(co)]
ing=igt[tonumber(co)]
inb=ibt[tonumber(co)]
ina=iat[tonumber(co)]
--end calculations----------------------
draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
--END RING 1 SETUP---------------copy setup section and paste for additional rings----------
Last edited by mrpeachy (2010-09-18 01:46:52)
Offline
My current conky.
Conky script:
# — Conky settings — #
#background yes
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 1024
imlib_cache_size 0
# — Window specifications — #
own_window yes
#own_window_type override#
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
minimum_size 800 800
maximum_width 800
alignment top_middle
gap_x 1
gap_y 50
# — Graphics settings — #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# — Text settings — #
use_xft yes
xftfont Droid Sans:size=10
xftalpha 0.5
uppercase no
default_color 3E3E3E
color1 D23000
# — Lua Load — #
lua_load ~/.conky/brush_rings.lua
lua_draw_hook_pre clock_rings
TEXT
${voffset 8}${color 3399FF}${font Droid Sans:size=16}${time %A}${font}${voffset -8}${color FFFFFF}${font Droid Sans:size=32}${time %e}${font}
${color FFFFFF}${voffset -30}${color 3399FF}${font Droid Sans:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font Droid Sans:size=20}${time %Y}${font}${color 3399FF}${hr}
${voffset 5}${font Zarautz:size=16}${time %H:%M:%S}${voffset 5}${font Droid Sans:size=10}${alignr}muzieca${font}
${font Droid Sans:size=12}${color FFFFFF}${alignr}${acpitemp}°C${font}
${color 3399FF}${voffset 6}${alignr}${sysname} ${kernel} ${machine}
${alignr}Uptime:${color FFFFFF}$uptime_short
${color FFFFFF}${goto 235}${voffset 135}${cpu cpu0}%
${color 3399FF}${goto 232}CPU
${color FFFFFF}${goto 540}${voffset -30}${memperc}%
${color 3399FF}${goto 540}RAM
${color FFFFFF}${goto 255}${voffset -230}${swapperc}%
${color 3399FF}${goto 245}SWAP
${color FFFFFF}${goto 390}${voffset 50}${fs_used_perc /}%
${color 3399FF}${goto 388}Root
${color FFFFFF}${goto 305}${voffset 355}${upspeed ppp0}
${color 3399FF}${goto 305}Up
${color FFFFFF}${goto 510}${voffset 75}${downspeed ppp0}
${color 3399FF}${goto 503}Down
${color FFFFFF}${goto 50}${voffset -170}${fs_used_perc /media/DATA01}%
${color 3399FF}${goto 43}Data01
${color FFFFFF}${goto 720}${voffset -33}${fs_used_perc /media/DATA02}%
${color 3399FF}${goto 712}Data02
lua script:
--[[
Clock Rings by londonali1010 (2009) , mod by arpinux
This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.
IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
lua_load ~/scripts/clock_rings.lua
lua_draw_hook_pre clock_rings
Changelog:
+ v1.0 -- Original release (30.09.2009)
]]
settings_table = {
{
name='time',
arg='%M.%S',
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=400, y=400,
radius=56,
thickness=5,
start_angle=0,
end_angle=360
},
{
name='time',
arg='%S',
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.6,
x=400, y=400,
radius=62,
thickness=5,
start_angle=0,
end_angle=360
},
{
name='time',
arg='%d',
max=31,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.8,
x=400, y=400,
radius=70,
thickness=5,
start_angle=-90,
end_angle=90
},
{
name='time',
arg='%m',
max=12,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=1,
x=400, y=400,
radius=76,
thickness=5,
start_angle=-90,
end_angle=90
},
{
name='cpu',
arg='cpu0',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0xffff00,
fg_alpha=0.4,
x=350, y=400,
radius=200,
thickness=50,
start_angle=220,
end_angle=320
},
{
name='memperc',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x33ccff,
fg_alpha=0.8,
x=450, y=400,
radius=200,
thickness=50,
start_angle=40,
end_angle=140
},
{
name='swapperc',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x33ccff,
fg_alpha=0.8,
x=400, y=305,
radius=200,
thickness=20,
start_angle=-40,
end_angle=40
},
{
name='fs_used_perc',
arg='/',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x3399cc,
fg_alpha=0.3,
x=400, y=350,
radius=200,
thickness=30,
start_angle=-40,
end_angle=40
},
{
name='upspeedf',
arg='ppp0',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0xffff33,
fg_alpha=0.3,
x=400, y=440,
radius=200,
thickness=20,
start_angle=140,
end_angle=220
},
{
name='downspeedf',
arg='ppp0',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0xccff33,
fg_alpha=0.3,
x=400, y=470,
radius=210,
thickness=20,
start_angle=140,
end_angle=220
},
{
name='fs_used_perc',
arg='/media/DATA01',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x3399cc,
fg_alpha=0.8,
x=380, y=400,
radius=300,
thickness=50,
start_angle=220,
end_angle=320
},
{
name='fs_used_perc',
arg='/media/DATA02',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0xff4444,
fg_alpha=0.8,
x=420, y=400,
radius=300,
thickness=50,
start_angle=40,
end_angle=140
},
}
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)
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)
-- Draw background ring
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,ring_w)
cairo_stroke(cr)
-- Draw indicator ring
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end
function conky_clock_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)
value=tonumber(str)
pct=value/pt['max']
draw_ring(cr,pct,pt)
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
Cheers.
Life is really simple, but we insist on making it complicated. --Confucius--
Offline
muzieca:
Pretty slick.
Comparing the Rubik's Cube to conky is appropriate for me.
Took me a whole year to solve it the first time.
My best time is 39 seconds. (1983?)
Let's hope I can get a grip on Conky like I did the Cube.
Nice job.
Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.
Offline
one of those simple ones that chill at the bottom of the screen
own_window yes
own_window_colour 262729
own_window_transparent no
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_spacer right
use_xft no
alignment bottom_left
gap_x 0
gap_y 4
# --- Colours, Sizes, Fonts & Margins --- #
update_interval 1.0
minimum_size 1024
stippled_borders 0
border_margin 5
border_width 0
default_color 5e7175
# --- Text --- #
draw_outline no
draw_borders no
font -*-profont-*-*-*-11-*-*-*-*-*-*-*
uppercase no
draw_shades no
TEXT
${alignc}${color a6e22e}MSI Wind U100 ${color}- ${color f92672}Powered by FreeBSD ${color} | ${color beed5f}Machine${color d3d3d3} $nodename ${color fd971f}Uptime${color d3d3d3} $uptime ${color}| ${color ff669d}Kernel${color d3d3d3} $kernel ${color e6db74}Arch${color d3d3d3} $machine${color} | ${color 9e6ffe}Battery: ${color d3d3d3}${apm_battery_life}
Pack em in snow!
Offline
muzieca:
Pretty slick.
Comparing the Rubik's Cube to conky is appropriate for me.
Took me a whole year to solve it the first time.
My best time is 39 seconds. (1983?)Let's hope I can get a grip on Conky like I did the Cube.
Nice job.
wow, cool !!!
so you are a speed solver then. love the cube, but my best time still around 1 minute, 7 seconds to solve the cube.
Life is really simple, but we insist on making it complicated. --Confucius--
Offline
hey hi i m very new to linux and this conky stuffbut not new to programming so was trying to get my weather details.. but i dont know how to connect my conky with internet cause i m using cdma usb modem and wvdial to connect to internet... plz help me guys...
Offline
@habit
I'm yet to solve the cube. Any pointers from a veteran?
Pack em in snow!
Offline
here is my latest idea for visualizing data through conky... cpu data for this one
http://blip.tv/file/4167160
the direction the line writes to is random and the length of the line is proportional to cpu usage
as the data gets older the line gets fainter and redder
i have my update cycle set to 4 per second which along with record my desktop makes the output a little jumpy on my slow ass puter
needs some tweaking... as you can see the line that was written in the previous cycle moves during the writing of the current cpu line...
i think i know why, but it's going to take a little bit of working out to get it right i think!
also the script doesn't want to run if it gets restarted... have to go and edit a couple of things then edit them back.
Last edited by mrpeachy (2010-09-26 02:13:21)
Offline
here is my latest idea for visualizing data through conky... cpu data for this one
http://blip.tv/file/4167160
A screensaver conky.
I like it!
Last edited by Sector11 (2010-09-26 02:16:34)
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
@habit
I'm yet to solve the cube.
Any pointers from a veteran?
Yes, solve the "top" two layers first, all 18 blocks in place.
Then turn it over, and solve the "bottom" inside (middle) ones.
Then still turned over, the bottom corners.
Practice, practice practice.
These days, I'm lucky if I can manage a 5 minute cube.
The ravages of Drug Abuse.
Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.
Offline
here is my latest idea for visualizing data through conky... cpu data for this one
http://blip.tv/file/4167160the direction the line writes to is random and the length of the line is proportional to cpu usage
as the data gets older the line gets fainter and redderi have my update cycle set to 4 per second which along with record my desktop makes the output a little jumpy on my slow ass puter
needs some tweaking... as you can see the line that was written in the previous cycle moves during the writing of the current cpu line...
i think i know why, but it's going to take a little bit of working out to get it right i think!
also the script doesn't want to run if it gets restarted... have to go and edit a couple of things then edit them back.
Show off! (j/k)
Good work.
Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.
Offline
why thank you Sector11 and Habitual
it seems so far that the randomness of math.random has prevented the display wandering off the side of my conky window!
I will have to put in some "edge detection" code to stop that possibility...
i also might look into whether I can make the new lines thicker and have line width decrease with age if data
maybe even set a few variables off in the same space and see what happens... would be good if i could get them to intertwine... but as yet i cant think of a way to make it so that one will not always be above the other... hmmm
anyway, goodnight conkiers!
Offline
In the end I choose to go with a mod on the vorta config as well (its the same one that I used as base for my tintrc).
http://www.gnome-look.org/content/show. … tent=92498#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 1 #shades draw_shades no #position gap_x 0 gap_y 2 alignment bottom_left #behaviour update_interval 0.3 #colour default_color 8f8f8f #default_shade_color 000000 own_window_colour 222222 #font use_xft yes xftfont DejaVu Serif Book:pixelsize=9 #to prevent window from moving use_spacer none minimum_size 1024 0 maximum_width 1024 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 #${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M} #$alignc center text TEXT ${alignc}${voffset -1} Mem: ${color e0e0e0}${font}${mem} ${color} | ${color} Uptime: ${color e0e0e0}${font}${uptime_short}${color} | ${color} Down: ${color e0e0e0}${font} ${downspeed eth0} Kb/s ${color} ${totaldown eth0} downloaded${color} | Up: ${color} ${color e0e0e0} ${upspeed eth0} Kb/s ${color} ${totalup eth0} uploaded${color} | ${color}Home: ${color e0e0e0}${font}${fs_free /} ${color} Multimedia: ${color e0e0e0}${font}${fs_free /media/Multimedia}${color}
Any way to get the Now Playing conky to work with rhythmbox? also, I edited the gmail.py to use my username and password, but still not working? its in the same folder as my conky config (.gnome2)
any help is much appreciated
Offline
greetings from germany
ive found this vlc script.
dont know if somebody already pasted
Nice, if you use it can you past a screenshot.
I'd like to find Dgellow Jons without having to join twitter et al.
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
override_utf8_locale yes
When I do this it works for me too, but it borks my Cyrillic since the Cyrillic shows up right only when saved as "Cyrillic 125-Windows". That is, for some reason putting .conkyrc in UTF-8 format foobars the Cyrillic display. I can't figure out a way to get rid of the random letter insertion and keep the Cyrillic.
Is there a way to specify character encodings for particular lines within the document?
-->
...But I'm ever so squeezable!
Offline
ZeroTruths wrote:override_utf8_locale yes
When I do this it works for me too, but it borks my Cyrillic since the Cyrillic shows up right only when saved as "Cyrillic 125-Windows". That is, for some reason putting .conkyrc in UTF-8 format foobars the Cyrillic display. I can't figure out a way to get rid of the random letter insertion and keep the Cyrillic.
Is there a way to specify character encodings for particular lines within the document?
-->
i assume you are calling your weather via a script using execi?
post your conkyrc on the help thread, maybe you could use a sed command to edit out the B
Offline
i assume you are calling your weather via a script using execi?
post your conkyrc on the help thread, maybe you could use a sed command to edit out the B
...?!
How bizarre!! This must be a problem endemic to the default conkyrc setup.
I was just now pulling my hair out because when I installed conky-colors it overwrote my conkyrc and I stupidly hadn't had it backed up... And the template I was using was basically the default page at /etc/conky/conky.config (or was it the default #! Statler page??), with this appended execi:
${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=USAZ0247 --datatype=WF}${font}
${voffset -38}${font Schoolbook Uralic:size=26}${execi 600 conkyForecast --location=USAZ0247 --datatype=HT}${font}
I don't think it was a font issue because I tried about ten different fonts before my conkyrc got overwritten and the outcome was the same.
But it works now with the new template supplied by conky-colors. However, the error can be reproduced.
If one uses the default page at /etc/conky/conky.config, it blanks out the cyrillic as it did in my previous post even when saved in a proper cyrillic-specific format when you add, for example,
${font Schoolbook Uralic:size=20}ЦПУ Usage:${font}
It just blanks the "ЦПУ Usage:" part. On this computer anyway. Oddly it removes both the Cyrillic and the Latin in this example, but only on lines that contain Cyrillic.
This might also be a problem with the Crunchbang Statler default conkyrc.
Possible solution? Try conky-colors? http://gnome-look.org/content/show.php/ … tent=92328 ...
Funny how a catastrophe can solve problems.
// EDIT //
Maybe it's a problem with Gedit and Anthy or something... Because when I look at the newest and now functional page it's set to UTF-8 and Gedit *somehow* started accepting cyrillic in this format when it was not doing so yesterday. There's got to be something in the code...? Okay, I don't know anymore. I give up because it works!
Last edited by rabidfox (2010-09-26 22:35:50)
...But I'm ever so squeezable!
Offline
Maybe it's a problem with Gedit and Anthy or something...
I think it's Gedit's problem because it can't seem to hold onto Cyrillic after saving and reloading it in UTF-8. *Sigh*
...But I'm ever so squeezable!
Offline
My shiny new conky!
An homage to Final Fantasy VII. Okay, so what if it's really popular now. It's still great...
And it's just that I'm too much of a dork to use only one language. And I'm sorry, I'm sure the code is messy as all hell.
#########################
# - Conky settings FLF- #
#########################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
imlib_cache_size 0
double_buffer yes
no_buffers yes
#####################
# - Text settings - #
#####################
use_xft yes
xftfont LetteraTrentadue:size=13
override_utf8_locale yes
text_buffer_size 2048
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
gap_x 25
gap_y 40
minimum_size 182 0
maximum_width 200
default_bar_size 60 8
#########################
# - Graphics settings - #
#########################
draw_shades no
default_color cccccc
color0 skyblue3
color1 gainsboro
color2 white
color3 lightsteelblue
color4 snow2
color5 lightsteelblue3
color6 snow3
color7 B7C3D0
color8 lightskyblue3
##############
# - SYSTEM - #
##############
TEXT
${color8}${font Vtks Revolt:size=44}LIEBLOS${font}${color}
${voffset -5}${color7}${alignc}${font}${font final fantasy:size=20} FINAL LINUX FANTASY${font}${color}
${color3}sestemi${hr 2}${color}
${voffset 10}${font Devil inside:size=29}${color2}8${color}${font}
${voffset -43} CPU ${font}${font Final Fantasy:bold:size=10}I${font} ${voffset -5}${cpu cpu1}%${alignr}${cpubar cpu1 8,60}
${voffset 1} CPU ${font}${font Final Fantasy:bold:size=10}II${font} ${voffset -5}${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${font Devil inside:size=30}${color3}8${font}${color}${voffset -9}ZUPV $memperc% ${alignr}${membar 8,60}
${color3}diskovaq ${hr 2}${color}${hr 2}
${voffset 10}${color0}${font OpenLogos:size=34}J${font}${color}
${font Schoolbook Uralic:bold:size=17}${voffset -47} ~/: ${font}${fs_used_perc /home}% ${alignr}${fs_bar 8,60 /home}
${font Schoolbook Uralic:bold:size=17}${voffset 2} /: ${font}${fs_used_perc /}% ${alignr}${fs_bar 8,60 /}
${alignr 15} ${font LetteraTrentadue:bold:size=12}temperatura : ${execi 28800 hddtemp -n --unit=F /dev/sda} ${font}${font Bookman Uralic:size=15}°F${font}
${color3}set${font Mono Uralic:size=12}ь ${hr 2}${font}${color}${hr 2}
${color0}${if_existing /proc/net/route eth1}${voffset 4}${font PizzaDude Bullets:size=14}O${font} isxodqwij ${font 1942 report:bold}${alignr}${upspeed eth0}${font}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} vxodq]ij ${font 1942 report:bold}${alignr}${downspeed eth0}${font}${color}
${else}
${font PizzaDude Bullets:size=14}4${font} Network Unavailable ${endif}${color3}${hr 2}${color}
#############
# - WEATHER - #
#############
${color4}${font ConkyWeather:style=Bold:size=55}${execi 3600 conkyForecast -l USAZ0247 -d WF}${color}${color7}${font} ${voffset -33}${font Palladio Uralic:style=Bold:size=26}${execi 3600 conkyForecast -l USAZ0247 -d HT -i -x}${font}${voffset -12}${color} ${color2}${font MoonPhases:size=31}${execi 600 /usr/bin/conkyForecast --location=USAZ0247 --datatype=MF}${font}${color}
${voffset 8}${color8}${font Impact:size=12}дневной свет:${voffset -2}${font} ${alignr}${execi 600 /usr/bin/conkyForecast --location=USAZ0247 --datatype=SR} -${execi 600 /usr/bin/conkyForecast --location=USAZ0247 --datatype=SS}${color}
${color3}${hr 2}${color}
#############
# - TIME - #
#############
${font KouzanBrushFontGyousyo:size=23}${color2}日月火水木金土${font}${font KouzanBrushFontGyousyo:size=15}
${voffset 5}${color4}${execpi 60 DJS=`date +%_d`; cal | sed '2d' | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${goto 0} /' | sed /" $DJS "/s/" $DJS "/" "'${color6}'"$DJS"'${color4}'" "/}
${voffset 4}${font digitalk:style=Bold:size=8}DATE{font}
${voffset -10}${alignc 40}${color0}${font digitalk:size=30}${time %H:%M}${font}${font 1942 report:bold:size=12}${color}
${voffset 4}${color5}${alignc 8}${time %d %B %Y}
${alignc 13} ${uptime}${color}${font}
...But I'm ever so squeezable!
Offline
My shiny new conky!
An homage to Final Fantasy VII. Okay, so what if it's really popular now. It's still great...
A link to the wallpaper please. I love FF VII
${font KouzanBrushFontGyousyo:size=23}${color2}日月火水木金土${font}
I have to try that font too
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
A link to the wallpaper please. I love FF VII
rabidfox wrote:${font KouzanBrushFontGyousyo:size=23}${color2}日月火水木金土${font}
I have to try that font too
With pleasure!
Wallpaper: http://www.emuparadise.org/fup/up/19987 … 3%5D-1.jpg
Font: http://www.urbanfonts.com/fonts/FINAL_FANTASY.htm
Audacious Skin (which includes the classic finger image for you to reapply elsewhere!): http://ahvia.livejournal.com/318119.html
For the ease of potential cloners, the code for this conky uses conky-colors ( http://gnome-look.org/content/show.php/ … tent=92328 ) and the following fonts:
LetteraTrentadue (rustic Latin and Cyrillic chars), Vtks Revolt (fancy for hostname title), Final Fantasy (subtitle), Devil inside (for the shuriken icons), OpenLogos (Debian logo), PizzaDude Bullets (network up/down icons), KouzanBrushFontGyousyo (Japanese Sunday-Saturday calligraphy), digitalk (the digital clock), ConkyWeather and Moon Phases (weather), 1942 report (rustic typewriter Latin chars), and for more general purposes: Schoolbook Uralic / Bookman Uralic / Mono Uralic / Palladio Uralic / Impact (which can do Cyrillic!).
If someone wants to do something rather Japanese-themed or has other needs, I speak Japanese pretty fluently, though my Russian is not so great (yet). I'm not trying to advertise my help to the entire Debian community, but if some #!er has need then that's more manageable...
What would be great is if someone knew how to integrate this save icon as something that could save OpenBox sessions: ... "C" is for "conky", which means, save a backup of your conkyrc!!
Last edited by rabidfox (2010-09-28 04:19:51)
...But I'm ever so squeezable!
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat