You are not logged in.
I'm using Openbox with tint2 and conky with a modified lua rings script.
Last edited by SimpleKiwi (2011-03-06 01:39:58)
Offline
-- mod edit: read the rules and only post thumbnails https://bbs.archlinux.org/viewtopic.php?id=61754 [jwr] --
And tell me what it was, dear mod? Openbox running on phone device?
Barthalion ,could you share your wallpaper?
Offline
I'm using Openbox with tint2 and conky with a modified lua rings script.
Can you post your tint and conky config please
Offline
Tint2 Config:
# Tint2 config file
# Generated by tintwizard (http://code.google.com/p/tintwizard/)
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure
# To use this as default tint2 config: save as $HOME/.config/tint2/tint2rc
# Background definitions
# ID 1
rounded = 0
border_width = 0
background_color = #000000 29
border_color = #FFFFFF 100
# Panel
panel_monitor = 1
panel_position = top left vertical
panel_size = 0 36
panel_margin = 0 0
panel_padding = 0 0 0
panel_dock = 0
wm_menu = 1
panel_layer = bottom
panel_background_id = 1
# Panel Autohide
autohide = 0
autohide_show_timeout = 0.0
autohide_hide_timeout = 0.0
autohide_height = 0
strut_policy = none
# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 0 0 0
taskbar_background_id = 0
#taskbar_active_background_id = 0
# Tasks
urgent_nb_of_blink = 7
task_icon = 1
task_text = 0
task_centered = 0
task_maximum_size = 200 32
task_padding = 2 0
task_background_id = 0
task_active_background_id = 0
task_urgent_background_id = 0
task_iconified_background_id = 0
# Task Icons
task_icon_asb = 100 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 100 0 0
# Fonts
task_font = typo3 12
task_font_color = #FFFFFF 47
task_active_font_color = #FFFFFF 100
task_urgent_font_color = #FFFFFF 100
task_iconified_font_color = #FFFFFF 100
font_shadow = 0
# System Tray
systray = 1
systray_padding = 0 0 0
systray_sort = ascending
systray_background_id = 0
systray_icon_size = 0
systray_icon_asb = 100 0 0
# Tooltips
tooltip = 0
tooltip_padding = 0 0
tooltip_show_timeout = 0
tooltip_hide_timeout = 0
tooltip_background_id = 0
tooltip_font = Sans 12
tooltip_font_color = #FFFFFF 100
# Mouse
mouse_middle = none
mouse_right = close
mouse_scroll_up = desktop_right
mouse_scroll_down = desktop_left
# Battery
battery = 0
battery_low_status = 20
battery_low_cmd = notify-send "battery low"
battery_hide = 90
bat1_font = Sans 12
bat2_font = Sans 12
battery_font_color = #FFFFFF 100
battery_padding = 0 0
battery_background_id = 0
# End of config
And my .conkyrc:
# — Conky settings — #
#background yes
update_interval 0.5
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/clock_rings.lua
lua_draw_hook_pre clock_rings
TEXT
${color 33FF5E}${voffset 0}${font Neuropolitical:size=24}${alignr}jesse@${nodename}
${alignr}Uptime: ${color FFFFFF}$uptime_short
${alignr}${color 33FF5E}IP: ${color FFFFFF}${addr wlan0}${font}
${color FFFFFF}${goto 35}${voffset 65}WLAN
${color 33FF5E}${goto 35}QUAL
${color FFFFFF}${goto 700}${voffset -35}${fs_used_perc /}%
${color 33FF5E}${goto 700}HDD
${color FFFFFF}${goto 675}${font Neuropolitical:size=24}${voffset 100}${cpu cpu0}%
${color 33FF5E}${goto 675}CPU
${color FFFFFF}${goto 15}${voffset -80}${battery_percent BAT1 /}%
${color 33FF5E}${goto 15}BAT
${color FFFFFF}${goto 35}${font}${voffset 70}${swapperc}%
${color 33FF5E}${goto 35}SWAP
${color FFFFFF}${goto 700}${voffset -35}${memperc}%
${color 33FF5E}${goto 700}RAM
${voffset -515}${goto 0}${font Neuropolitical:size=24}${time %H:%M:%S}
${color FFFFFF}${goto 0}${time %D}
${color 33FF5E}${goto 0}${time %A}
And my rings script (.scripts/clock_rings.lua):
--[[
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='%S',
max=60,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x33ff5e,
fg_alpha=0.4,
x=400, y=270,
radius=50,
thickness=20,
start_angle=290,
end_angle=430
},
{
name='time',
arg='%M',
max=60,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x33ff5e,
fg_alpha=0.4,
x=400, y=270,
radius=100,
thickness=20,
start_angle=290,
end_angle=430
},
{
name='time',
arg='%H',
max=24,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x33ff5e,
fg_alpha=0.4,
x=400, y=270,
radius=150,
thickness=20,
start_angle=290,
end_angle=430
},
{
name='swapperc',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x33ff5e,
fg_alpha=0.4,
x=60, y=500,
radius=50,
thickness=10,
start_angle=90,
end_angle=360
},
{
name='wireless_link_qual_perc',
arg='wlan0',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x33ff5e,
fg_alpha=0.4,
x=60, y=200,
radius=50,
thickness=10,
start_angle=180,
end_angle=450
},
{
name='battery_percent',
arg='BAT1',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x33ff5e,
fg_alpha=0.4,
x=60, y=350,
radius=100,
thickness=10,
start_angle=0,
end_angle=180
},
{
name='cpu',
arg='cpu0',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x33ff5e,
fg_alpha=0.4,
x=720, y=350,
radius=100,
thickness=10,
start_angle=180,
end_angle=360
},
{
name='memperc',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x33ff5e,
fg_alpha=0.4,
x=720, y=500,
radius=50,
thickness=10,
start_angle=0,
end_angle=270
},
{
name='fs_used_perc',
arg='/',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x33ff5e,
fg_alpha=0.4,
x=720, y=200,
radius=50,
thickness=10,
start_angle=-90,
end_angle=180
},
}
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
Also a 1024x600 screenshot of my desktop is here: 1024x600
Offline
@arus7: http://i.imgur.com/LvpMG.jpg
Offline
Offline
http://www.dodaj.rs/t/1b/vK/PEaKpyQ/screenshot-1.jpg
I test some bmpanel2 themes...
configs please?
Offline
na12 wrote:http://www.dodaj.rs/t/1b/vK/PEaKpyQ/screenshot-1.jpg
I test some bmpanel2 themes...
configs please?
What configs?
There is only conky configs,and you can look for conky_HUD on gnome-look.org.
Offline
@Na12
What about conky weather config?
I do not speak English, but I understand...
Offline
@Na12
What about conky weather config?
this is template for conkyforecast from AUR
${color ffff00}${goto 94}Now ${goto 168}[--datatype=DW --startday=1 --shortweekday]${goto 260}[--datatype=DW --startday=2 --shortweekday]${goto 350}[--datatype=DW --startday=3 --shortweekday]${goto 440}[--datatype=DW --startday=4 --shortweekday]$color
${goto 85}${font ConkyWeather:size=30}[--datatype=WF]${goto 140} [--datatype=WF --startday=1 --endday=4 --spaces=5]${font ProFont:size=8}${color green}
${goto 85}[--datatype=HT --hideunits --centeredwidth=3]/[--datatype=LT --hideunits --centeredwidth=3]${goto 165}[--datatype=HT --startday=1 --hideunits --centeredwidth=0]/[--datatype=LT --startday=1 --hideunits --centeredwidth=3]${goto 250}[--datatype=HT --startday=2 --hideunits --centeredwidth=3]/[--datatype=LT --startday=2 --hideunits --centeredwidth=3]${goto 342}[--datatype=HT --startday=3 --hideunits --centeredwidth=3]/[--datatype=LT --startday=3 --hideunits --centeredwidth=3]${goto 433}[--datatype=HT --startday=4 --hideunits --centeredwidth=3]/[--datatype=LT --startday=4 --hideunits --centeredwidth=3]
Offline
@na12
Did you have to do anything special to getthe gauges to show up?
I am getting this non-encouraging message.
Conky: conkyrc_HUD: 47: no such configuration: 'lua_load'
Conky: conkyrc_HUD: 48: no such configuration: 'lua_draw_hook_post'
Offline
Offline
More and more I've been going back to simple, clean setup (although I love playing with lua):
I love that wallpaper, where did you get that?
Mind sharing your conky files?
And how can i make my terminal look like yours?
Thx
Sven
Last edited by killerturtle (2011-03-08 06:51:20)
Offline
@jwhendy You're right, I just needed to install the conky-lua package. Thanks!
Last edited by codeRage (2011-03-08 07:01:57)
Offline
@codeRage: no prob!
Offline
Mate, can you please post the name of the GTK theme, Openbox theme and Fonts that you are using?
Offline
@Cloudef
Very pretty, what are you using to display music playing?
Offline
@Cloudef
Very pretty, what are you using to display music playing?
Offline
a suggest: trayicon for controlling pulseaudio volume ?
+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome
Offline
http://ompldr.org/tN3F3ZA
Might look bit bright without redshift.
Wow, this is pure awesomeness. Everything fits in beautifully, especially the very nice, high quality background image. Are you using tint2 and nautilus or is it something different?
Last edited by tolga9009 (2011-03-14 19:04:39)
Offline