You are not logged in.
Can you please explain me (or a good link) to get only the icons in your tint2.
Thank you in advance.
You might look into Tintwizard, a gui for configuring tint2. Works pretty well for me.
Offline
@Pyntux wow I like the widgets on the desktop. What program and theme is it?
That's only conky with lua script for rings...
Look here:
I think you will need conky-lua from AUR.
This is new setup of my Openbox:
Last edited by Pyntux (2011-02-23 20:04:00)
I do not speak English, but I understand...
Offline
@Pyntux : Do you mind sharing your conky and lua setup of rings please ? I'd tried to do such as your desktop but failed nicely .
Offline
@twix
Sure...
First, I think you will need to install conky-lua from AUR because with conky from extra I also failed to setup this...
This is .conkyrc:
# — 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 30
# — Graphics settings — #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# — Text settings — #
use_xft yes
xftfont Neuropolitical:size=10
xftalpha 0.5
uppercase no
default_color 3E3E3E
color1 D23000
# — Lua Load — #
lua_load ~/.scripts/big_rings.lua
lua_draw_hook_pre clock_rings
TEXT
${voffset 8}${color 3399FF}${font Droid Sans:size=16}${time %A}${font}${voffset -12}${color FFFFFF}${font Droid Sans:size=32}${time %e}${font}
${color FFFFFF}${voffset -10}${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}${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 wlan0}
${color 3399FF}${goto 305}Up
${color FFFFFF}${goto 510}${voffset 75}${downspeed wlan0}
${color 3399FF}${goto 503}Down
${color FFFFFF}${goto 50}${voffset -170}${fs_used_perc /home}%
${color 3399FF}${goto 43}Home
${color FFFFFF}${goto 720}${voffset -33}${fs_used_perc /fajlovi}%
${color 3399FF}${goto 712}Fajlovi
# ${voffset 5}${color}${font Droid Sans:size=17}&${font}${color slate grey} Muzika:
# ${color e0e0e0}${font Droid Sans:size=9}${exec rhythmbox-client --no-start --print-playing-format %tt} -
# ${exec rhythmbox-client --no-start --print-playing-format %aa} ${color adadad}#${font Droid Sans:size=8}
Ofcourse, you will need to change some thinks, like hdd partitions which will conky show...Also, you will need to change that in lua script to work good. Here's 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='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='wlan0',
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='wlan0',
max=480,
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='/home',
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='/fajlovi',
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
I save scripts in ~/.scripts/, but you can put where you want, but change path in .conkyrc.
Font which conky use i Neuropolitical: http://www.dafont.com/neuropolitical.font.
Here's another lua script, with clock inside the big ring:
--[[
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
If you get stuck, ask for help, we will make it work!
I do not speak English, but I understand...
Offline
Thanks you so much Pyntux, so much explanation !
We will see more conky rings setups now
Offline
Thanks you so much Pyntux, so much explanation !
We will see more conky rings setups now
You're welcome!
Last edited by Pyntux (2011-02-24 11:08:25)
I do not speak English, but I understand...
Offline
Could we see that conky scripts for the weather?
Thx!
Offline
http://img21.imageshack.us/img21/4575/desktop1003.th.png
clean
http://img94.imageshack.us/img94/7065/desktop1004.th.png
busy
openbox, tint2, 4x conky, cairodock, cairo comp.manager
Could we see you conky scripts?
Thx!
Sven
Offline
Some sexy *box shots there everyone, well here is mine. The tint and conky aren't very original, actually they were taken from corenominal over at the crunchbang forums,
Screenshot:
Running Programs = Exaile, Deluge, Tint2, Conky, Network-Manager-Applet, Midori, volwheel
Openbox theme is mire v2 blue
GTK Theme is clearlooks brave dark
Icon theme is Faenza
Tint2 Config = http://pastebin.com/2nugvK74
Conky Config = http://pastebin.com/D7N5t1pq
Autostart.sh = http://pastebin.com/68SHKQug
Menu.xml = http://pastebin.com/WTby5R5N
Any other questions?
My System:
IBM T41 laptop ~ Pentium M 1.6Ghz ~ 1gb RAM ~ Mobility Radeon 7500
ArchLinux Kernel 2.6.37
Offline
The openbox theme is a personal modification of Elegant Brit (WIP), GTK theme I'm using is Atolm.
The wallpaper is a quick modification I did of Ultra 2.
Visible apps are tint2, conky, gvolwheel and wicd.
If anyone wants anything from it, just reply and I'll post the config.
Last edited by neurolysis (2011-02-27 01:12:41)
Offline
arch+tint2+openbox+conky+mpd/sonata+sakura
Which terminal is that, and how did you loose the borders?
Thx.
Sven
Offline
gregory.kovalev wrote:arch+tint2+openbox+conky+mpd/sonata+sakura
Which terminal is that, and how did you loose the borders?
Thx.
Sven
It's sakura, also you can see it from the screenshot "...greg@myhost~ - sakura". You can disable window decorations from "~/.config/openbox/rc.xml" file, if you want to remove borders install and launch "obconf" and untick "Windows retain a border when undecorated" box.
Offline
MW wrote:Could we see that conky scripts for the weather?
Thx!
Sorry for the late reply, I just got back from a trip.
The script is too long to post on the board, I'll just show the conkyrc and link to the script download, very simple to use:
.conkyrc
background yes
use_xft yes
xftalpha 0.8
update_interval 60
double_buffer yes
draw_shades yes
draw_outline no
draw_borders no
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
minimum_size 350 300
alignment bottom_right
maximum_width 350
gap_x 10
gap_y 40
#uppercase no
text_buffer_size 2048
TEXT
${color #93AAA9}${font Santana:style=Bold:size=11}Potchefstroom${font} ${hr 2}$color${execi 600 sh /home/xxxx/.scripts/conky_weather/weather_script.sh}
${font conkyweather:size=35}${execi 600 sed -n '4p' /home/xxxx/.scripts/conky_weather/weather1}${font} ${voffset -20}${execi 600 sed -n '1p' /home/xxxx/.scripts/conky_weather/weather1}
${rss http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=AFR|ZA|SF007|POTCHEFSTROOM 10 item_title 1}
${font conkyweather:size=35}${execi 600 sed -n '5p' /home/xxxx/.scripts/conky_weather/weather1}${font} ${voffset -20}${execi 600 sed -n '2p' /home/xxxx/.scripts/conky_weather/weather1}
${rss http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=AFR|ZA|SF007|POTCHEFSTROOM 10 item_title 2}
${font conkyweather:size=35}${execi 600 sed -n '6p' /home/xxxx/.scripts/conky_weather/weather1}${font} ${voffset -20}${execi 600 sed -n '3p' /home/xxxx/.scripts/conky_weather/weather1}
${color #93AAA9}${font Santana:style=Bold:size=14}@ ${font Santana:style=Bold:size=11}EMail${font} ${hr 2}$color
${font Terminus}${execpi 600 conkyEmail --template=/home/xxxx/.scripts/conkyEmail.template}${font}
Offline
killerturtle wrote:MW wrote:Could we see that conky scripts for the weather?
Thx!Sorry for the late reply, I just got back from a trip.
The script is too long to post on the board, I'll just show the conkyrc and link to the script download, very simple to use:
.conkyrcbackground yes use_xft yes xftalpha 0.8 update_interval 60 double_buffer yes draw_shades yes draw_outline no draw_borders no own_window yes own_window_transparent yes own_window_argb_visual yes own_window_type normal own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager minimum_size 350 300 alignment bottom_right maximum_width 350 gap_x 10 gap_y 40 #uppercase no text_buffer_size 2048 TEXT ${color #93AAA9}${font Santana:style=Bold:size=11}Potchefstroom${font} ${hr 2}$color${execi 600 sh /home/xxxx/.scripts/conky_weather/weather_script.sh} ${font conkyweather:size=35}${execi 600 sed -n '4p' /home/xxxx/.scripts/conky_weather/weather1}${font} ${voffset -20}${execi 600 sed -n '1p' /home/xxxx/.scripts/conky_weather/weather1} ${rss http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=AFR|ZA|SF007|POTCHEFSTROOM 10 item_title 1} ${font conkyweather:size=35}${execi 600 sed -n '5p' /home/xxxx/.scripts/conky_weather/weather1}${font} ${voffset -20}${execi 600 sed -n '2p' /home/xxxx/.scripts/conky_weather/weather1} ${rss http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=AFR|ZA|SF007|POTCHEFSTROOM 10 item_title 2} ${font conkyweather:size=35}${execi 600 sed -n '6p' /home/xxxx/.scripts/conky_weather/weather1}${font} ${voffset -20}${execi 600 sed -n '3p' /home/xxxx/.scripts/conky_weather/weather1} ${color #93AAA9}${font Santana:style=Bold:size=14}@ ${font Santana:style=Bold:size=11}EMail${font} ${hr 2}$color ${font Terminus}${execpi 600 conkyEmail --template=/home/xxxx/.scripts/conkyEmail.template}${font}
Yo, Thanks! Uhm... while we're at it....how do I get those really nice icons?
Thx again!
Sven
Last edited by killerturtle (2011-02-28 17:57:43)
Offline
Which ones are you referring to? The ones in the Cairo Dock?
Offline
yep, the ones in the left middle and right bottom
Offline
@andrews where did you get that wallpaper from
Offline
->OpenBox Theme: mookid
http://bl1nks.deviantart.com/art/mookid … enbox&qo=0
->GTK2 Theme: elementary
http://danrabbit.deviantart.com/art/ele … xutil&qo=0
->Icons: elementary Icons
http://browse.deviantart.com/customizat … /#/d12yjq7
Apps: Sonata,Thunar,OpenBox menu,Conky,tint2
Last edited by AurosGamma (2011-03-02 01:03:21)
Offline
@SimpleKiwi from here :
Offline
if you want to remove borders install and launch "obconf" and untick "Windows retain a border when undecorated" box.
You could do that also by editing the rc.xml file. There is a <keepBorder>no</keepBorder> setting (in the default configuration file somewhere at the beginning, just after the theme and button settings).
Offline
Offline