SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#4851 2013-03-01 22:51:39

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

For those who like it - that's you ichase  big_smile

My version of the "HUD-week-2 combo" --> adgUuCNN.jpg
This shows:

  1. Ext 250GB HDD not mounted - USB - not mounted

  2. Ext 250GB HDD mounted

  3. Ext 250GB HDD mounted - USB mounted

  4. Ext 250GB HDD not mounted - USB mounted

I won't include the VSIDO orb that can be any image you want really - a distro logo.  big_smile
This would make a nice one for CrunchBang, I can't find the round one by omns.

S11_HUD3.conky

# killall conky && conky -c /media/5/Conky/S11_HUD3.conky &
###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager
#own_window_colour black
own_window_class Conky
own_window_title HUD 3

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type override
#own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#own_window_argb_value 200

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

minimum_size 250 910 ## width, height
maximum_width 250  ## width

gap_x 10 # left-right
gap_y 10 # up-down

alignment top_left
###################################################  End Window Settings  ###
###  Font Settings  #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Monofur:bold:size=10

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 0
# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades no # amplifies text if yes
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black

default_color DCDCDC #220 220 220	Gainsboro
color0 8FBC8F #143 188 143	DarkSeaGreen
color1 778899 #119 136 153	LightSlateGray
color2 FF8C00 #255 140   0	DarkOrange
color3 7FFF00 #127 255   0	Chartreuse
color4 FFA07A #255 160 122	LightSalmon
color5 FFDEAD #255 222 173	NavajoWhite
color6 00BFFF #  0 191 255	DeepSkyBlue
color7 00FFFF #  0 255 255	Cyan
color8 FFFF00 #255 255   0	Yellow
color9 B22222 #178  34  34	FireBrick
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 0
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes
#default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################

# Boolean value, if true, Conky will be forked to background when started.
background no

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 510

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load ~/Conky/LUA/draw-bg.lua
#TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.6}
#
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## OR Both above TEXT (No composite manager required - no blinking!)
#
lua_load ~/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 15 0 0 0 0 0x000000 0.2
#
lua_load /media/5/Conky/LUA/HUD3.lua
lua_draw_hook_post main
#
#######################################################  End LUA Settings  ###
# The all important - How often conky refreshes.
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
update_interval 1


TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.3}\
${image /media/5/Conky/images/VSIDO_ORB_black.png -p 82,45 -s 75x75}\
${image /media/5/Conky/images/4.250.374_2.png -p 0,200 -s 250x374}\
${color7}CPU Fan${alignr 5}${platform f71882fg.2560 fan 1} rpm
${color6}Freq${alignr 5}${freq_g} GHz
${color7}Temp${alignr 5}${platform f71882fg.2560 temp 1}°

${color6}Mobo${alignr 5}${platform f71882fg.2560 temp 2}°

${color7}SDA ${alignr 5}${platform f71882fg.2560 temp 2}°

${color6}GPU ${alignr 5}${nvidia temp}°
${color7}Freq${alignr 5}${nvidia gpufreq} MHz${color}
${color6}Mem${alignr 5}${nvidia memfreq} MHz${color}

${goto 60}${execpi 600 /media/5/Conky/scripts/week-2.sh}\
${voffset -4}${goto 5}${font Digital tech:size=25}${color7}${time %a}${goto 190}${time %b}${color}\
${font digitalk:bold:size=13}${goto 65}${color8}${time %C}${goto 165}${time %y}${color}${font}



${goto 50}${color}MEM${goto 125}${color}SDA
${goto 120}/ &${goto 165}${color}CPU
${goto 120}/h${goto 160}${color}% ${color6}Nº${goto 197}1${goto 207}2${goto 217}3${goto 227}${color8}A${color}${font monofur:pixelsize=24}
${font}  /${goto 40}${color5}${fs_size /}${goto 100}${color9}${fs_used /}${goto 160}${color6}${fs_free /}${color}${font monofur:pixelsize=27}
${font}  /h${goto 40}${color5}${fs_size /home}${goto 100}${color9}${fs_used /home}${goto 160}${color6}${fs_free /home}${color}${font monofur:pixelsize=28}
${font}  m/5${goto 40}${color5}${fs_size /media/5}${goto 100}${color9}${fs_used /media/5}${goto 160}${color6}${fs_free /media/5}${color}${font monofur:pixelsize=28}
${font}  m/6${goto 40}${color5}${fs_size /media/6}${goto 100}${color9}${fs_used /media/6}${goto 160}${color6}${fs_free /media/6}${color}${font monofur:pixelsize=28}
${font}  m/7${goto 40}${color5}${fs_size /media/7}${goto 100}${color9}${fs_used /media/7}${goto 160}${color6}${fs_free /media/7}${color}${font monofur:pixelsize=27}
${font}  ext${goto 40}${color5}${if_mounted /media/disk}\
${fs_size /media/disk}${goto 100}${color9}${fs_used /media/disk}\
${goto 160}${color6}${fs_free /media/disk}\
${image /media/5/Conky/images/4-blue.png -p 213,494}\
${else}${goto 90}Not Mounted${endif}${color}${font monofur:pixelsize=27.5}
${font}  usb${goto 40}${color5}${if_mounted /media/VSIDO_LiveCD}\
${fs_size /media/VSIDO_LiveCD}${goto 100}${color9}${fs_used /media/VSIDO_LiveCD}\
${goto 160}${color6}25${fs_free /media/VSIDO_LiveCD}\
${image /media/5/Conky/images/4-blue.png -p 213,534}\
${else}${goto 90}Not Mounted${endif}${color}

${alignc}${kernel}

${color6}Processes ${color}${running_processes} of${processes} ${color7}${hr}${color}
Load${goto 70}${loadavg 1}${goto 140}${loadavg 2}${alignr 5}${loadavg 3}

${color6}RAM ${color}${memmax} ${color7}${hr}${color}
${alignc}Used ${memperc}% for ${mem}
Buffered ${buffers}${alignr 5}Cached ${cached}

${color6}DISK Activity ${color7}${hr}${color}
${font Monofur:bold:size=13}R${goto 40}${diskiograph_read /dev/sda 14,130 00ffff ff0000 5 -lt}${alignr 5}${diskio_read /dev/sda}
W${goto 40}${diskiograph_write /dev/sda 14,130 ff0000 00ffff 5 -lt}${alignr 5}${diskio_write /dev/sda}${font}

${color6}NETWORK ${color7}${hr}${color}
${font Monofur:bold:size=13}Dn${goto 40}${downspeedgraph eth0 14,130 00ffff ff0000 5 -lt}${alignr 5}${downspeedf eth0}
Up${goto 40}${upspeedgraph eth0 14,130 ff0000 00ffff 5 -lt}${alignr 5}${upspeedf eth0}
${font}${color0}       Down      Up         Total${font monofur:pixelsize=16}
${font}${color}${time %b %y}${goto 50}${color6}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $3 $4}'}${goto 125}${color7}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6 $7}'}${goto 200}${color}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9 $10}'}${font monofur:pixelsize=16}
${font}${color}${exec date | awk '{print $3" "$2}'}${goto 50}${color6}${execi 300 vnstat | grep "today" | awk '{print $2 $3}'}${goto 125}${color7}${execi 300 vnstat | grep "today" | awk '{print $5 $6}'}${goto 200}${color}${execi 300 vnstat | grep "today" | awk '{print $8 $9}'}
${exec date --date="-1 day" | awk '{print $3" "$2}'}${goto 50}${color6}${execi 300 vnstat | grep "yesterday" | awk '{print $2 $3}'}${goto 125}${color7}${execi 300 vnstat | grep "yesterday" | awk '{print $5 $6}'}${goto 200}${color}${execi 300 vnstat | grep "yesterday" | awk '{print $8 $9}'}
${color}Last 7${goto 50}${color6}${execi 300 vnstat -w | grep "last 7 days" | awk '{print $4 $5}'}${goto 125}${color7}${execi 300 vnstat -w | grep "last 7 days" | awk '{print $7 $8}'}${goto 200}${color}${execi 300 vnstat -w | grep "last 7 days" | awk '{print $10 $11}'}

HUD3.lua

--==============================================================================
--  Origianl by: SLK
--  license : Distributed under the terms of GNU GPL version 2 or later
--  modified by Sector11 - Feb 2013
--==============================================================================

require 'cairo'

--------------------------------------------------------------------------------
--                                                                    gauge DATA
gauge = {
{
    name='cpu',                    arg='cpu0',                  max_value=100,
    x=170,                         y=270, --180,150
    graph_radius=60,
    graph_thickness=5,
    graph_start_angle=0,
    graph_unit_angle=0.9,          graph_unit_thickness=0.9,
    graph_bg_colour=0xFFFF00,      graph_bg_alpha=0.3,
    graph_fg_colour=0xFFFF00,      graph_fg_alpha=0.0,
    hand_fg_colour=0xFFFF00,       hand_fg_alpha=1.0,
    txt_radius=60,				-- yellow
    txt_weight=1,                  txt_size=10.0,
    txt_fg_colour=0xFFFF00,        txt_fg_alpha=0.8,
    graduation_radius=30,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFF00, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu1',                  max_value=100,
    x=170,                         y=270, --180,150
    graph_radius=50,
    graph_thickness=5,
    graph_start_angle=0,
    graph_unit_angle=0.9,          graph_unit_thickness=0.9,
    graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.3,
    graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.0,
    hand_fg_colour=0x00BFFF,       hand_fg_alpha=1.0,
    txt_radius=50,				-- green
    txt_weight=1,                  txt_size=10.0,
    txt_fg_colour=0x00BFFF,        txt_fg_alpha=0.8,
    graduation_radius=55,
    graduation_thickness=5,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0x00BFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu2',                  max_value=100,
    x=170,                         y=270, --180,150
    graph_radius=40,
    graph_thickness=5,
    graph_start_angle=0,
    graph_unit_angle=0.9,          graph_unit_thickness=0.9,
    graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.3,
    graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.0,
    hand_fg_colour=0x00BFFF,       hand_fg_alpha=1.0,
    txt_radius=40,
    txt_weight=1,                  txt_size=10.0,
    txt_fg_colour=0x00BFFF,        txt_fg_alpha=0.8,
    graduation_radius=30,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0x00BFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu3',                  max_value=100,
    x=170,                         y=270, --180,150
    graph_radius=30,
    graph_thickness=5,
    graph_start_angle=0,
    graph_unit_angle=0.9,          graph_unit_thickness=0.9,
    graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.3,
    graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.0,
    hand_fg_colour=0x00BFFF,       hand_fg_alpha=1.0,
    txt_radius=30,
    txt_weight=1,                  txt_size=10.0,
    txt_fg_colour=0x00BFFF,        txt_fg_alpha=0.8,
    graduation_radius=35,
    graduation_thickness=5,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0x00BFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='memperc',                arg='',                      max_value=100,
    x=60,                          y=245, --40,115
    graph_radius=34,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2,            graph_unit_thickness=2,
    graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.3,
    graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.0,
    hand_fg_colour=0x00BFFF,       hand_fg_alpha=1.0,
    txt_radius=20,
    txt_weight=1,                  txt_size=10.0,
    txt_fg_colour=0x00BFFF,        txt_fg_alpha=0.8,
    graduation_radius=24,
    graduation_thickness=6,        graduation_mark_thickness=2,
    graduation_unit_angle=10,
    graduation_fg_colour=0x00BFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=10.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
{
    name='fs_used_perc',           arg='/',                     max_value=100,
    x=130,                         y=250, --120,70
    graph_radius=25, --40,
    graph_thickness=4,
    graph_start_angle=210,
    graph_unit_angle=2,            graph_unit_thickness=2,
    graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.3,
    graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.0,
    hand_fg_colour=0x00BFFF,       hand_fg_alpha=1.0,
    txt_radius=17, --32,
    txt_weight=1,                  txt_size=10.0,
    txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
    graduation_radius=31, --46,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=20,
    graduation_fg_colour=0x00BFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
{
    name='fs_used_perc',           arg='/home/',                max_value=100,
    x=130,                         y=250, --120,70
    graph_radius=35, --50,
    graph_thickness=8,
    graph_start_angle=210,
    graph_unit_angle=2,            graph_unit_thickness=2,
    graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.3,
    graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.0,
    hand_fg_colour=0x00BFFF,       hand_fg_alpha=1.0,
    txt_radius=50, --65,
    txt_weight=1,                  txt_size=10.0,
    txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
    graduation_radius=43, --58,
    graduation_thickness=4,        graduation_mark_thickness=2,
    graduation_unit_angle=20,
    graduation_fg_colour=0x00BFFF, graduation_fg_alpha=0.6,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
}
-------------------------------------------------------------------------------
--                                                                 rgb_to_r_g_b
-- converts color in hexa to decimal
--
function rgb_to_r_g_b(colour, alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

-------------------------------------------------------------------------------
--                                                            angle_to_position
-- convert degree to rad and rotate (0 degree is top/north)
--
function angle_to_position(start_angle, current_angle)
    local pos = current_angle + start_angle
    return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
end

-------------------------------------------------------------------------------
--                                                              draw_gauge_ring
-- displays gauges
--
function draw_gauge_ring(display, data, value)
    local max_value = data['max_value']
    local x, y = data['x'], data['y']
    local graph_radius = data['graph_radius']
    local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
    local graph_start_angle = data['graph_start_angle']
    local graph_unit_angle = data['graph_unit_angle']
    local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
    local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']
    local hand_fg_colour, hand_fg_alpha = data['hand_fg_colour'], data['hand_fg_alpha']
    local graph_end_angle = (max_value * graph_unit_angle) % 360

    -- background ring
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, 0), angle_to_position(graph_start_angle, graph_end_angle))
    cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
    cairo_set_line_width(display, graph_thickness)
    cairo_stroke(display)

    -- arc of value
    local val = (value or 0) % (max_value +1)
    local start_arc = 0
    local stop_arc = 0
    local i = 1
    while i <= val do
        start_arc = (graph_unit_angle * i) - graph_unit_thickness
        stop_arc = (graph_unit_angle * i)
        cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
        cairo_set_source_rgba(display, rgb_to_r_g_b(graph_fg_colour, graph_fg_alpha))
        cairo_stroke(display)
        i = i + 1
    end
    local angle = start_arc

    -- hand
    start_arc = (graph_unit_angle * val) - (graph_unit_thickness * 2)
    stop_arc = (graph_unit_angle * val)
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
    cairo_set_source_rgba(display, rgb_to_r_g_b(hand_fg_colour, hand_fg_alpha))
    cairo_stroke(display)

    -- graduations marks
    local graduation_radius = data['graduation_radius']
    local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
    local graduation_unit_angle = data['graduation_unit_angle']
    local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
    if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
        local nb_graduation = graph_end_angle / graduation_unit_angle
        local i = 0
        while i < nb_graduation do
            cairo_set_line_width(display, graduation_thickness)
            start_arc = (graduation_unit_angle * i) - (graduation_mark_thickness / 2)
            stop_arc = (graduation_unit_angle * i) + (graduation_mark_thickness / 2)
            cairo_arc(display, x, y, graduation_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
            cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
            cairo_stroke(display)
            cairo_set_line_width(display, graph_thickness)
            i = i + 1
        end
    end

    -- text
    local txt_radius = data['txt_radius']
    local txt_weight, txt_size = data['txt_weight'], data['txt_size']
    local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
    local movex = txt_radius * math.cos(angle_to_position(graph_start_angle, angle))
    local movey = txt_radius * math.sin(angle_to_position(graph_start_angle, angle))
    cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, txt_weight)
    cairo_set_font_size (display, txt_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
    cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
    cairo_show_text (display, value)
    cairo_stroke (display)

    -- caption
    local caption = data['caption']
    local caption_weight, caption_size = data['caption_weight'], data['caption_size']
    local caption_fg_colour, caption_fg_alpha = data['caption_fg_colour'], data['caption_fg_alpha']
    local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, caption_weight);
    cairo_set_font_size (display, caption_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
    cairo_move_to (display, x + tox + 5, y + toy + 1)
    -- bad hack but not enough time !
    if graph_start_angle < 105 then
        cairo_move_to (display, x + tox - 30, y + toy + 1)
    end
    cairo_show_text (display, caption)
    cairo_stroke (display)
end

-------------------------------------------------------------------------------
--                                                               go_gauge_rings
-- loads data and displays gauges
--
function go_gauge_rings(display)
    local function load_gauge_rings(display, data)
        local str, value = '', 0
        str = string.format('${%s %s}',data['name'], data['arg'])
        str = conky_parse(str)
        value = tonumber(str)
        draw_gauge_ring(display, data, value)
    end

    for i in pairs(gauge) do
        load_gauge_rings(display, gauge[i])
    end
end


--------------------------------------------------------------------------------
--                                                                    clock DATA
-- HOURS
clock_h = {
    {
    name='time',                   arg='%H',                    max_value=12,
    x=120,                          y=85,
    graph_radius=62, --58, --53,
    graph_thickness=3,
    graph_unit_angle=30,           graph_unit_thickness=30,
    graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.0,
    graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.3,
    txt_radius=70, --39, --34,
    txt_weight=1,                  txt_size=15.0,
    txt_fg_colour=0xFFDEAD,        txt_fg_alpha=1.0,
    graduation_radius=58, --53,
    graduation_thickness=6,        graduation_mark_thickness=2,
    graduation_unit_angle=30,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    },
}
-- MINUTES
clock_m = {
    {
    name='time',                   arg='%M',                    max_value=60,
    x=120,                          y=85,
    graph_radius=58, --62, --57,
    graph_thickness=2,
    graph_unit_angle=6,            graph_unit_thickness=6,
    graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.2,
    graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.7,
    txt_radius=47, --39, --70, --65,
    txt_weight=1,                  txt_size=15.0,
    txt_fg_colour=0xFFDEAD,        txt_fg_alpha=1.0,
    graduation_radius=62, --57,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=30,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    },
}
-- SECONDS
clock_s = {
    {
    name='time',                   arg='%S',                    max_value=60,
    x=120,                          y=85,
    graph_radius=55, --50,
    graph_thickness=2,
    graph_unit_angle=6,            graph_unit_thickness=2,
    graph_bg_colour=0xFFDEAD,      graph_bg_alpha=0.0,
    graph_fg_colour=0xFFDEAD,      graph_fg_alpha=0.7,
    txt_radius=47, --42,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFFDEAD,        txt_fg_alpha=1.0,
    graduation_radius=0,
    graduation_thickness=0,        graduation_mark_thickness=0,
    graduation_unit_angle=0,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.0,
    },
}

--------------------------------------------------------------------------------
--                                                                 rgb_to_r_g_b
-- converts color in hexa to decimal
--
function rgb_to_r_g_b(colour, alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

-------------------------------------------------------------------------------
--                                                            angle_to_position
-- convert degree to rad and rotate (0 degree is top/north)
--
function angle_to_position(start_angle, current_angle)
    local pos = current_angle + start_angle
    return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
end

-------------------------------------------------------------------------------
--                                                              draw_clock_ring
-- displays clock
--
function draw_clock_ring(display, data, value)
    local max_value = data['max_value']
    local x, y = data['x'], data['y']
    local graph_radius = data['graph_radius']
    local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
    local graph_unit_angle = data['graph_unit_angle']
    local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
    local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']

    -- background ring
    cairo_arc(display, x, y, graph_radius, 0, 2 * math.pi)
    cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
    cairo_set_line_width(display, graph_thickness)
    cairo_stroke(display)

    -- arc of value
    local val = (value % max_value)
    local i = 1
    while i <= val do
        cairo_arc(display, x, y, graph_radius,(  ((graph_unit_angle * i) - graph_unit_thickness)*(2*math.pi/360)  )-(math.pi/2),((graph_unit_angle * i) * (2*math.pi/360))-(math.pi/2))
        cairo_set_source_rgba(display,rgb_to_r_g_b(graph_fg_colour,graph_fg_alpha))
        cairo_stroke(display)
        i = i + 1
    end
    local angle = (graph_unit_angle * i) - graph_unit_thickness

    -- graduations marks
    local graduation_radius = data['graduation_radius']
    local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
    local graduation_unit_angle = data['graduation_unit_angle']
    local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
    if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
        local nb_graduation = 360 / graduation_unit_angle
        local i = 1
        while i <= nb_graduation do
            cairo_set_line_width(display, graduation_thickness)
            cairo_arc(display, x, y, graduation_radius, (((graduation_unit_angle * i)-(graduation_mark_thickness/2))*(2*math.pi/360))-(math.pi/2),(((graduation_unit_angle * i)+(graduation_mark_thickness/2))*(2*math.pi/360))-(math.pi/2))
            cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
            cairo_stroke(display)
            cairo_set_line_width(display, graph_thickness)
            i = i + 1
        end
    end

    -- text
    local txt_radius = data['txt_radius']
    local txt_weight, txt_size = data['txt_weight'], data['txt_size']
    local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
    local movex = txt_radius * (math.cos((angle * 2 * math.pi / 360)-(math.pi/2)))
    local movey = txt_radius * (math.sin((angle * 2 * math.pi / 360)-(math.pi/2)))
    cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, txt_weight);
    cairo_set_font_size (display, txt_size);
    cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha));
    cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3);
    cairo_show_text (display, value);
    cairo_stroke (display);
end

-------------------------------------------------------------------------------
--                                                               go_clock_rings
-- loads data and displays clock
--
function go_clock_rings(display)
    local function load_clock_rings(display, data)
        local str, value = '', 0
        str = string.format('${%s %s}',data['name'], data['arg'])
        str = conky_parse(str)
        value = tonumber(str)
        draw_clock_ring(display, data, value)
    end

    for i in pairs(clock_h) do
        load_clock_rings(display, clock_h[i])
    end
    for i in pairs(clock_m) do
        load_clock_rings(display, clock_m[i])
    end
    for i in pairs(clock_s) do
        load_clock_rings(display, clock_s[i])
    end
end


-------------------------------------------------------------------------------
--                                                                         MAIN
function conky_main()
    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 display = cairo_create(cs)

    local updates = conky_parse('${updates}')
    update_num = tonumber(updates)

    if update_num > 5 then
        go_gauge_rings(display)
        go_clock_rings(display)
    end

    cairo_surface_destroy(cs)
    cairo_destroy(display)
end

week-2.sh

#!/bin/bash
# By: mobilediesel

font=("\${voffset -10}\${font digitalk:size=4}" "\${voffset -0}\${font digitalk:size=8}" "\${voffset -0}\${font digitalk:size=12}" "\${voffset -3}\${font digitalk:size=30}\${color 00FFFF}" "\${voffset -15}\${font digitalk:size=12}" "\${voffset -4}\${font digitalk:size=7}" "\${voffset -2}\${font digitalk:size=4}")
color=("" "" "" "\${color}" "" "" "")

for i in $(seq -3 3); do
echo -n "${font[$[i+3]]}$(date '+%d' -d "$i days")${color[3]}\${offset 3}"
done

And because I am using it and it has a calendar by mrpeachy: draw-bg.lua

--[[Background originally by londonali1010 (2009)
    ability to set any size for background mrpeachy 2011
    ability to set variables for bg in conkyrc dk75

  the change is that if you set width and/or height to 0
  then it assumes the width and/or height of the conky window

so:

Above and After TEXT  (requires a composite manager or it blinks!)

 lua_load ~/wea_conky/draw_bg.lua
 TEXT
 ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}

OR Both above TEXT (no composite manager required - no blinking!)

 lua_load ~/wea_conky/draw_bg.lua
 lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.5
 TEXT

Note
${lua conky_draw_bg 20 0 0 0 0 0x000000 0.4}
  See below:        1  2 3 4 5 6        7

${lua conky_draw_bg corner_radius x_position y_position width height color alpha}

covers the whole window and will change if you change the minimum_size setting

1 = 20             corner_radius
2 = 0             x_position
3 = 0             y_position
3 = 0             width
5 = 0             height
6 = 0x000000      color
7 = 0.4           alpha

######### calendar function ##################################################

then to use it, you activate the calendar function BELOW TEXT like this

${lua luacal {settings}}

#${lua luacal {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gh=,gt=,gv=,sd=}}
#    x=x position top left
#    y=y position top left
#    tf=title font, eg "mono" must be in quotes
#    tfs=title font size
#    tc=title color
#    ta=title alpha
#    bf=body font, eg "mono" must be in quotes
#    bfs=body font size
#    bc=body color
#    ba=body alpha
#    hf=highlight font, eg "mono" must be in quotes
#    hfs=highlight font size
#    hc=highlight color
#    ha=highlight alpha
#    sp=spacer, eg " " or sp="0"... 0,1 or 2 spaces can help with positioning of non-monospaced fonts

#    gt=gap from title to body
#    gh=gap horizontal between columns
#    gv=gap vertical between rows
#    sd=start day, 0=Sun, 1=Mon

#    hstyle = heading style, 0=just days, 1=date insert
#    tdf=title date font, eg "mono" must be in quotes
#    tdfs=title date font size
#    tdc=title date color
#    tda=title date alpha

# test line
-- ${lua luacal {x=10,y=100,tf="Purisa",tfs=24,tc=0xf67e16,ta=1,bf="First Order",bfs=26,bc=0xecd32a,ba=1,hf="Purisa",hfs=18,hc=0xf67e16,ha=1,sp=" ",gh=40,gt=25,gv=20,sd=0,hstyle=1,tdf="First Order",tdfs=28,tdc=0xff0000,tda=1}}


]]

require 'cairo'
local    cs, cr = nil
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(r,x,y,w,h,color,alpha)
if conky_window == nil then return end
if cs == nil then cairo_surface_destroy(cs) end
if cr == nil then cairo_destroy(cr) 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)
w=w
h=h
if w=="0" then w=tonumber(conky_window.width) end
if h=="0" then h=tonumber(conky_window.height) end
cairo_set_source_rgba (cr,rgb_to_r_g_b(color,alpha))
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
-----------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_fill (cr)
------------------------------------------------------------
cairo_surface_destroy(cs)
cairo_destroy(cr)
return ""
end
-- ###### calendar function ##################################################
function conky_luacal(caltab) -- {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gt=,gh=,gv=,sd=,hstyle=,tdf=,tdfs=,tdc=,tda=}
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)
--############################################################################
if caltab.x==nil then
caltab=loadstring("return" .. caltab)()
end
local cal_x=caltab.x
local cal_y=caltab.y
local tfont=caltab.tf		or "mono"
local tfontsize=caltab.tfs	or 12
local tc=caltab.tc			or 0xffffff
local ta=caltab.ta			or 1
local bfont=caltab.bf		or "mono"
local bfontsize=caltab.bfs	or 12
local bc=caltab.bc			or 0xffffff
local ba=caltab.ba			or 1
local hfont=caltab.hf		or "mono"
local hfontsize=caltab.hfs	or 12
local hc=caltab.hc			or 0xff0000
local ha=caltab.ha			or 1
local spacer=caltab.sp		or " "
local gaph=caltab.gh		or 20
local gapt=caltab.gt		or 15
local gapl=caltab.gv		or 15
local sday=caltab.sd		or 0
local hstyle=caltab.hstyle	or 0
--convert colors
--local font=string.gsub(font,"_"," ")
local tred,tgreen,tblue,talpha=rgb_to_r_g_b(tc,ta)
--main body text color
local bred,bgreen,bblue,balpha=rgb_to_r_g_b(bc,ba)
--highlight text color
local hred,hgreen,hblue,halpha=rgb_to_r_g_b(hc,ha)
--############################################################################
--calendar calcs
local year=os.date("%G")
local today=tonumber(os.date("%d"))
local t1 = os.time( {    year=year,month=03,day=01,hour=00,min=0,sec=0} );
local t2 = os.time( {    year=year,month=02,day=01,hour=00,min=0,sec=0} );
local feb=(os.difftime(t1,t2))/(24*60*60)
local monthdays={ 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
local day=tonumber(os.date("%w"))+1-sday
local day_num = today
local remainder=day_num % 7
local start_day=day-(day_num % 7)
if start_day<0 then start_day=7+start_day end
local month=os.date("%m")
local mdays=monthdays[tonumber(month)]
local x=mdays+start_day
local dnum={}
local dnumh={}
if mdays+start_day<36 then
dlen=35
plen=29
else
dlen=42
plen=36
end
for i=1,dlen do
    if i<=start_day then
    dnum[i]="  "
    else
    dn=i-start_day
        if dn=="nil" then dn=0 end
        if dn<=9 then dn=(spacer .. dn) end
        if i>x then dn="" end
        dnum[i]=dn
        dnumh[i]=dn
        if dn==(spacer .. today) or dn==today then
        dnum[i]=""
        end
        if dn==(spacer .. today) or dn==today then
        dnumh[i]=dn
        place=i
        else dnumh[i]="  "
        end
    end
end--for
cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, tfontsize);
cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
local extents=cairo_text_extents_t:create()
tolua.takeownership(extents)
if hstyle==0 then
    if tonumber(sday)==0 then
    dys={"SU","MO","TU","WE","TH","FR","SA"}
    else
    dys={"MO","TU","WE","TH","FR","SA","SU"}
    end
    --draw calendar titles
elseif hstyle==1 then
    if tonumber(sday)==0 then
    dys={"SU","MO"," ","  ","  ","FR","SA"}
    cairo_text_extents(cr,"MO",extents)
    local s=extents.x_advance+gaph
    local f=gaph*5
    local tdfont=caltab.tdf        or "mono"
    local tdfontsize=caltab.tdfs    or 12
    local tdc=caltab.tdc        or 0xffffff
    local tda=caltab.tda        or 1
    cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tdfontsize);
    local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
    cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
    local insert=os.date("%b %y")
    cairo_text_extents(cr,insert,extents)
    local w=extents.x_advance
    cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
    cairo_show_text (cr,insert)
    cairo_stroke (cr)
    else
    dys={"MO","TU"," ","  ","  ","SA","SU"}
    cairo_text_extents(cr,"TU",extents)
    local s=extents.x_advance+gaph
    local f=gaph*5
    local tdfont=caltab.tdf        or "mono"
    local tdfontsize=caltab.tdfs    or 12
    local tdc=caltab.tdc        or 0xffffff
    local tda=caltab.tda        or 1
    cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tdfontsize);
    local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
    cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
    local insert=os.date("%b %y")
    cairo_text_extents(cr,insert,extents)
    local w=extents.x_advance
    cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
    cairo_show_text (cr,insert)
    cairo_stroke (cr)
    end
end
--draw calendar titles
for i=1,7 do
cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, tfontsize);
cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
cairo_move_to (cr, cal_x+(gaph*(i-1)), cal_y)
cairo_show_text (cr, dys[i])
cairo_stroke (cr)
end
--draw calendar body
cairo_select_font_face (cr, bfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, bfontsize);
cairo_set_source_rgba (cr,bred,bgreen,bblue,balpha)
for i=1,plen,7 do
local fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, dnum[i])
    cairo_stroke (cr)
    end
end
--highlight
cairo_select_font_face (cr, hfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, hfontsize);
cairo_set_source_rgba (cr,hred,hgreen,hblue,halpha)
for i=1,plen,7 do
local fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, dnumh[i])
    cairo_stroke (cr)
    end
end
--############################################################################
caltab=nil
dlen=nil
plen=nil
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end
-- end main function #########################################################

The stack of harddrives: acuHXn4N.jpg
And links to the blue and red  lights.  I include the red although I don't use it.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Help fund CrunchBang, donate to the project!

#4852 2013-03-01 23:02:31

Dobbie03
Resident Metaller
From: New Zealand
Registered: 2009-08-15
Posts: 1,591

Re: Conky v1.9 Thread

Sector11 wrote:

For those who like it - that's you ichase  big_smile

My version of the "HUD-week-2 combo" --> http://t.imgbox.com/adgUuCNN.jpg

Mate, that looks amazing.

Offline

#4853 2013-03-01 23:19:26

ichase
#! CrunchBanger
Registered: 2011-03-16
Posts: 146

Re: Conky v1.9 Thread

Thanks a million S11, now to go in and start setting them up with my paths.   cool

Offline

#4854 2013-03-01 23:30:35

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

@ Dobbie03

Thank you.  Glad you like it it was a while coming because I goofed and dd'd my Ext 250GB HD.  Had to get it back into usable condition before posting this.

@ ichase

Say what!  Use it? Of course you realize there is a surcharge if you use it.
- - One screenshot or it running (with mods)  big_smile


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4855 2013-03-02 00:01:42

ichase
#! CrunchBanger
Registered: 2011-03-16
Posts: 146

Re: Conky v1.9 Thread

Well no doubt the NOOB borked this up BAD.  LOL  I edited the conkyrc_hud with the correct paths to the images, lua scripts ect.
This was the result.  Look quick, this is ugly  LOL  big_smile at the minimum, not sure why none of the images drew to the screen?  I was expecting this not to be right the first time, but was not expecting this.  LOL

60ead2240197400.jpg

This is the output from terminal.  I obviously did SOMETHING, maybe A LOT of SOMETHINGS wrong.  LOL  big_smile

[ichase02@arch64 ~]$ conky -c .conkyrc_hud
Conky: .conkyrc_hud: 16: no such configuration: 'with'
Conky: .conkyrc_hud: 21: no such configuration: 'value'
Conky: .conkyrc_hud: 23: no such configuration: 'opacity.'
Conky: .conkyrc_hud: 53: no such configuration: 'Settings'
Conky: .conkyrc_hud: 74: no such configuration: 'Settings'
Conky: .conkyrc_hud: 89: no such configuration: 'Secton'
Conky: .conkyrc_hud: 94: no such configuration: 'started.'
Conky: .conkyrc_hud: 98: no such configuration: 'things'
Conky: .conkyrc_hud: 118: no such configuration: 'Section'
Conky: .conkyrc_hud: 128: no such configuration: 'color'
Conky: .conkyrc_hud: 132: no such configuration: 'lua_load'
Conky: .conkyrc_hud: 135: no such configuration: 'lua_load'
Conky: .conkyrc_hud: 136: no such configuration: 'lua_draw_hook_post'
Conky: .conkyrc_hud: 139: no such configuration: 'Settings'
Conky: .conkyrc_hud: 142: no such configuration: 'UP!'
Conky: can't open '/sys/bus/platform/devices/f71882fg.2560/temp1_input': No such file or directory
please check your device or remove this var from Conky
Conky: statfs64 '/mnt/external': No such file or directory
Conky: statfs64 '/mnt/cd': No such file or directory
Conky: desktop window (83) is root window
Conky: window type - normal
Conky: drawing to created window (0x1400001)
Conky: drawing to double buffer
Conky: statfs64 '/mnt/cd': No such file or directory
Conky: statfs64 '/mnt/external': No such file or directory
sh: /home/ichase02/Conky/week-2.sh: Permission denied
sh: vnstat: command not found
sh: vnstat: command not found
sh: vnstat: command not found
sh: vnstat: command not found
sh: vnstat: command not found
sh: vnstat: command not found
Usage: awk [POSIX or GNU style options] -f progfile [--] file ...
Usage: awk [POSIX or GNU style options] [--] 'program' file ...
POSIX options:		GNU long options: (standard)
	-f progfile		--file=progfile
	-F fs			--field-separator=fs
	-v var=val		--assign=var=val
Short options:		GNU long options: (extensions)
	-b			--characters-as-bytes
	-c			--traditional
	-C			--copyright
	-d[file]		--dump-variables[=file]
	-e 'program-text'	--source='program-text'
	-E file			--exec=file
	-g			--gen-pot
	-h			--help
	-L [fatal]		--lint[=fatal]
	-n			--non-decimal-data
	-N			--use-lc-numeric
	-O			--optimize
	-p[file]		--profile[=file]
	-P			--posix
	-r			--re-interval
	-S			--sandbox
	-t			--lint-old
	-V			--version

To report bugs, see node `Bugs' in `gawk.info', which is
section `Reporting Problems and Bugs' in the printed version.

gawk is a pattern scanning and processing language.
By default it reads standard input and writes standard output.

Examples:
	gawk '{ sum += $1 }; END { print sum }' file
	gawk -F: '{ print $1 }' /etc/passwd
sh: line 1: {print $8 $9}: command not found
sh: vnstat: command not found
sh: vnstat: command not found
Usage: awk [POSIX or GNU style options] -f progfile [--] file ...
Usage: awk [POSIX or GNU style options] [--] 'program' file ...
POSIX options:		GNU long options: (standard)
	-f progfile		--file=progfile
	-F fs			--field-separator=fs
	-v var=val		--assign=var=val
Short options:		GNU long options: (extensions)
	-b			--characters-as-bytes
	-c			--traditional
	-C			--copyright
	-d[file]		--dump-variables[=file]
	-e 'program-text'	--source='program-text'
	-E file			--exec=file
	-g			--gen-pot
	-h			--help
	-L [fatal]		--lint[=fatal]
	-n			--non-decimal-data
	-N			--use-lc-numeric
	-O			--optimize
	-p[file]		--profile[=file]
	-P			--posix
	-r			--re-interval
	-S			--sandbox
	-t			--lint-old
	-V			--version

To report bugs, see node `Bugs' in `gawk.info', which is
section `Reporting Problems and Bugs' in the printed version.

gawk is a pattern scanning and processing language.
By default it reads standard input and writes standard output.

Examples:
	gawk '{ sum += $1 }; END { print sum }' file
	gawk -F: '{ print $1 }' /etc/passwd
sh: line 1: {print $5 $6}: command not found
sh: vnstat: command not found
sh: -c: line 1: syntax error near unexpected token `|'
sh: -c: line 1: `| awk '{print $8 $9}''
sh: vnstat: command not found
sh: vnstat: command not found
sh: vnstat: command not found

Offline

#4856 2013-03-02 00:19:28

ichase
#! CrunchBanger
Registered: 2011-03-16
Posts: 146

Re: Conky v1.9 Thread

Ok, making a "little" progress but still A LONG WAY OFF  big_smile
2f8c18240198794.jpg

Offline

#4857 2013-03-02 01:00:54

ew
#! Die Hard
Registered: 2012-09-27
Posts: 1,975

Re: Conky v1.9 Thread

ichase wrote:

Ok, making a "little" progress but still A LONG WAY OFF  big_smile

Looks promising. I like it a lot, but I see that there is still some polish to do, mainly with the conky-config, but it will look awesome when it`s finsihed. Awesome Wall. Love it.


- apt-mark hold account

Offline

#4858 2013-03-02 01:07:44

ichase
#! CrunchBanger
Registered: 2011-03-16
Posts: 146

Re: Conky v1.9 Thread

Thanks ew, actually there is A LOT of polishing to do.  LOL  I will  work with it for the mean time, I know S11 will show up and probably see the issue right of the bat knowing him.  smile

Offline

#4859 2013-03-02 02:54:43

ichase
#! CrunchBanger
Registered: 2011-03-16
Posts: 146

Re: Conky v1.9 Thread

Well my info Conky is growing.  Added the additional partitions along with the file server mounted as well as the processor.  I'm running out of room, may need to start moving to the side.  LOL
Here is the screeny, this is temporary until I can get the info conky S11 provided working.  big_smile

4faf7e240232588.jpg

And here is the .conkyrc

background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type normal #desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 200
maximum_width 400
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color white
alignment top_right
gap_x 15
gap_y 5
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

#default_color 86b5ea
default_color blue
#default_color firebrick
#default_color green
#default_color blue
#default_color deeppink
#default_color yellow
#default_color darkslateblue
#default_color darkviolet
color1 white
default_shade_color 7a999c
default_outline_color green

TEXT
${color1}${font Radio Space:bold:size=10:}SYSTEM${hr 2}
${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine
Host:$alignr$nodename
Uptime:$alignr$uptime
File System: $alignr${fs_type}

${font Radio Space:bold:size=10}${color1}PROCESSORS ${hr 2}${font sans-serif:normal:size=8}${color1}
${color1}Intel i5 Q4 $alignr $freq MHz
${color1} AVG: ${cpu cpu0}% ${color}${cpubar cpu0}
${color1}CPU1: ${cpu cpu1}% ${color}${cpubar cpu1}
${color1}CPU2: ${cpu cpu2}% ${color}${cpubar cpu2}
${color1}CPU3: ${cpu cpu3}% ${color}${cpubar cpu3}
${color1}CPU4: ${cpu cpu4}% ${color}${cpubar cpu4}

${font Radio Space:bold:size=10}${color1}TEMPS ${hr 2}${font sans-serif:normal:size=8}${color1}
${color1}CORE 1: ${color red}${exec sensors -f | grep "Core 0" | cut -c8-24}
${color1}CORE 2: ${color red}${exec sensors -f | grep "Core 2" | cut -c8-24}

${font Radio Space:bold:size=10}${color1}BATTERY ${hr 2}${font sans-serif:normal:size=8}${color1}
${color1}ACPI Battery: ${color}${battery_short}   ${battery_bar 11,0}
${color1}Remaining Time: ${color1}$battery_time

${font Radio Space:bold:size=10}${color1}MEMORY ${hr 2}
${font sans-serif:normal:size=8}${color1}RAM $alignc $mem / $memmax $alignr $memperc% 
${color}$membar

${font Radio Space:bold:size=10}${color1}DISK SPACE ${hr 2} 
${font sans-serif:normal:size=8}${color1}/ $alignc ${fs_used /} / ${fs_size /} $alignr${fs_used_perc /}%
${color}${fs_bar /}
${if_existing /mnt/server}${font sans-serif:normal:size=8}${color1}Server $alignc ${fs_used /mnt/server} / ${fs_size /mnt/server} $alignr${fs_used_perc /mnt/server}% ${endif} 
${if_existing /mnt/server}${color}${fs_bar /mnt/server}${endif}
${if_existing /mnt/windows}${font sans-serif:normal:size=8}${color1}SDA2 $alignc ${fs_used /mnt/windows} / ${fs_size /mnt/windows} $alignr${fs_used_perc /mnt/windows}% ${endif}
${if_existing /mnt/windows}${color}${fs_bar /mnt/windows}${endif}
${if_existing /mnt/mint}${font sans-serif:normal:size=8}${color1}SDA4 $alignc ${fs_used /mnt/mint} / ${fs_size /mnt/mint} $alignr${fs_used_perc /mnt/mint}% ${endif}
${if_existing /mnt/mint}${color}${fs_bar /mnt/mint}${endif}

${font Radio Space:bold:size=10}${color1}TOP PROCESSES ${hr 2}
${color red}${font sans-serif:normal:size=8}${color red}${top_mem name 1}${alignr}${top mem 1} %
${color1}${top_mem name 2}${alignr}${top mem 2} %
${color1}$font${top_mem name 3}${alignr}${top mem 3} %
${color1}$font${top_mem name 4}${alignr}${top mem 4} %
${color1}$font${top_mem name 5}${alignr}${top mem 5} %

${font Radio Space:bold:size=10}${color1}NETWORK ${hr 2}
${font sans-serif:normal:size=8}${color1}IP address: $alignr ${addr wlan0}
ESSID: $alignr ${wireless_essid wlan0}
Connection Quality: $alignr ${wireless_link_qual_perc wlan0}%
${hr 2}
#${font Radio Space:bold:size=10}${color1}CURRENT WEATHER ${hr 2}
#${color1}${execi 300 /home/ichase02/weather.sh 23454}
#$alignr Download
#${color}${downspeedgraph wlan0}
#${color}${downspeed wlan0}/s $alignr ${totaldown wlan0}

#${color1}$alignr Upload
#${color}${upspeedgraph wlan0}
#${color}${upspeed wlan0}/s $alignr ${totalup wlan0}

Offline

#4860 2013-03-02 12:38:27

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ichase wrote:

Thanks ew, actually there is A LOT of polishing to do.  LOL  I will  work with it for the mean time, I know S11 will show up and probably see the issue right of the bat knowing him.  smile

Font hint: grab the monofur font.  big_smile

OH OH!  I didn't see this coming.  A few years back I ran into a problem with vnstat using:

Mar '13

I can't remember if it was conky that complained about the ' or something else, probably conky if you look at the commands:

grep "`date +"%b %y"`"  <--- works

grep "`date +"%b '%y"`" <--- doesn't work

So I checked

man vnstat

and saw:

FILES
       /var/lib/vnstat/
              This directory contains all databases the program uses. Files are named according to the monitored inter‐
              faces.

       /etc/vnstat.conf
              Config file that will be used unless $HOME/.vnstatrc exists. See vnstat.conf(5) for more information.

CLICK: unless $HOME/.vnstatrc exists
ever since then I have been using: $HOME/.vnstatrc (~/.vnstatrc) and in there I got rid of the ' before the year.

My $HOME/.vnstatrc

# vnStat 1.11 config file
##

# default interface
Interface "eth0"

# location of the database directory
DatabaseDir "/var/lib/vnstat"
#DatabaseDir "/home/sector11/vnstat"

# locale (LC_ALL) ("-" = use system locale)
Locale "-"

# on which day should months change
MonthRotate 1

# date output formats for -d, -m, -t and -w
# see 'man date' for control codes
DayFormat    "%x"
MonthFormat  "%b %y"
TopFormat    "%x"

# characters used for visuals
RXCharacter       "%"
TXCharacter       ":"
RXHourCharacter   "r"
TXHourCharacter   "t"

# how units are prefixed when traffic is shown
# 0 = IEC standard prefixes (KiB/MiB/GiB/TiB)
# 1 = old style binary prefixes (KB/MB/GB/TB)
UnitMode 1

# output style
# 0 = minimal & narrow, 1 = bar column visible
# 2 = same as 1 except rate in summary and weekly
# 3 = rate column visible
OutputStyle 3

# used rate unit (0 = bytes, 1 = bits)
RateUnit 1

# maximum bandwidth (Mbit) for all interfaces, 0 = disable feature
# (unless interface specific limit is given)
MaxBandwidth 100

# interface specific limits
#  example 8Mbit limit for eth0 (remove # to activate):
#MaxBWeth0 8

# how many seconds should sampling for -tr take by default
Sampletime 5

# default query mode
# 0 = normal, 1 = days, 2 = months, 3 = top10
# 4 = dumpdb, 5 = short, 6 = weeks, 7 = hours
QueryMode 0

# filesystem disk space check (1 = enabled, 0 = disabled)
CheckDiskSpace 1

# database file locking (1 = enabled, 0 = disabled)
UseFileLocking 1

# how much the boot time can variate between updates (seconds)
BootVariation 15

# log days without traffic to daily list (1 = enabled, 0 = disabled)
TrafficlessDays 1


# vnstatd
##

# how often (in seconds) interface data is updated
UpdateInterval 30

# how often (in seconds) interface status changes are checked
PollInterval 5

# how often (in minutes) data is saved to file
SaveInterval 5

# how often (in minutes) data is saved when all interface are offline
OfflineSaveInterval 30

# force data save when interface status changes (1 = enabled, 0 = disabled)
SaveOnStatusChange 1

# enable / disable logging (0 = disabled, 1 = logfile, 2 = syslog)
UseLogging 2

# file used for logging if UseLogging is set to 1
LogFile "/var/log/vnstat.log"

# file used as daemon pid / lock file
PidFile "/var/run/vnstat.pid"


# vnstati
##

# title timestamp format
HeaderFormat "%x %H:%M"

# show hours with rate (1 = enabled, 0 = disabled)
HourlyRate 1

# show rate in summary (1 = enabled, 0 = disabled)
SummaryRate 1

# layout of summary (1 = with monthly, 0 = without monthly)
SummaryLayout 1

# transparent background (1 = enabled, 0 = disabled)
TransparentBg 0

# image colors
CBackground     "FFFFFF"
CEdge           "AEAEAE"
CHeader         "606060"
CHeaderTitle    "FFFFFF"
CHeaderDate     "FFFFFF"
CText           "000000"
CLine           "B0B0B0"
CLineL          "-"
CRx             "92CF00"
CTx             "606060"
CRxD            "-"
CTxD            "-"

Notice that line 20:

MonthFormat  "%b %y"

Not:

MonthFormat  "%b '%y"

OPINION ALERT For me it even looks cleaner in a terminal:

 sector11 @ sector11
 02 Mar 13 | 09:35:02 ~
         $ vnstat
Database updated: Sat Mar  2 09:34:04 2013

   eth0 since 02/13/13

          rx:  19.58 GB      tx:  785.24 MB      total:  20.35 GB

   monthly
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
        Feb 13      19.42 GB |   759.31 MB |    20.16 GB |   69.92 kbit/s
        Mar 13     159.94 MB |    25.92 MB |   185.87 MB |   12.60 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated       3.44 GB |      554 MB |     3.98 GB |

   daily
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
     yesterday     153.85 MB |    24.86 MB |   178.71 MB |   16.94 kbit/s
         today       6.09 MB |     1.07 MB |     7.16 MB |    1.70 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated         15 MB |        2 MB |       17 MB |
 sector11 @ sector11
 02 Mar 13 | 09:35:12 ~
         $ 

Last edited by Sector11 (2013-03-02 12:42:51)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4861 2013-03-02 13:08:15

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ichase wrote:

Here is the screeny, this is temporary until I can get the info conky S11 provided working.  big_smile

Use another desktop, or pop conkys into windows - open them to look at, close them when not wanted.

Like network connections - unless you're running a server - not necessary - but it is doable and neat to have:
acjhyXLM.jpg

Put a conky in a window - drop the undecorated and sticky:

own_window_hints skip_taskbar,skip_pager

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4862 2013-03-02 13:13:20

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,108

Re: Conky v1.9 Thread

Where is Mr. Peachy?

Offline

#4863 2013-03-02 13:22:20

ichase
#! CrunchBanger
Registered: 2011-03-16
Posts: 146

Re: Conky v1.9 Thread

Well, I did not have vnstat installed, so that was part of the problem, but the issue now is, I can get anything to line up and for the life of me, I can't get lua rings to populate.  Here is an example of the .conky_HUD that you posted about a week ago.
a25cdc240377824.jpg

Something tells me I am missing a package that works with lua.  I have conky-lua installed vice the normal conky package, I do have lua installed so not real sure at this point.

Thanks as ALWAYS for the assist,

Ian

Offline

#4864 2013-03-02 13:22:49

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread

^^ Everywhere

If you need something you can PM him


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#4865 2013-03-02 14:32:59

Dodge ram
#! CrunchBanger
Registered: 2011-04-26
Posts: 140

Re: Conky v1.9 Thread

Hi all It's been awhile since I have been in the forums. Been busy and going thru a few personal battles. Anyway, I was sent a PM asking me to share the latest code for the last unfinished conky I was working on. I don't have much time,but I hope someone is able to finish it .  http://dl.dropbox.com/u/30953293/Conky.tar.gz

Offline

#4866 2013-03-02 16:52:06

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: Conky v1.9 Thread

Sector11 wrote:

OH OH!  I didn't see this coming.  A few years back I ran into a problem with vnstat using:

Mar '13

I can't remember if it was conky that complained about the ' or something else, probably conky if you look at the commands:

grep "`date +"%b %y"`"  <--- works

grep "`date +"%b '%y"`" <--- doesn't work

This work no matter in which format vnstat gives dates:

  • vstat English at non English system:

    vnstat -m |gawk '/'$(env LC_ALL=en_US.UTF-8 date +%b.\{1,2\}%y)'/ {print "Total:",$9,$10,"\t","Avg.:",$12,$13}'
  • vnstat native:

    vnstat -m |gawk '/'$(date +%b.\{1,2\}%y)'/ {print "Total:",$9,$10,"\t","Avg.:",$12,$13}'

Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#4867 2013-03-02 19:25:28

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ichase wrote:

Well, I did not have vnstat installed, so that was part of the problem, but the issue now is, I can get anything to line up and for the life of me, I can't get lua rings to populate.  Here is an example of the .conky_HUD that you posted about a week ago.
http://thumbnails101.imagebam.com/24038/a25cdc240377824.jpg

Something tells me I am missing a package that works with lua.  I have conky-lua installed vice the normal conky package, I do have lua installed so not real sure at this point.

Thanks as ALWAYS for the assist,

Ian

In a terminal:

conky -V

It should end with:

... ...
... ...
  * apcupsd
  * iostats
  * ncurses
  * Lua

  Lua bindings:
   * Cairo
   * Imlib2
 sector11 @ sector11
 02 Mar 13 | 16:13:48 ~
         $ 

If it doesn't end like that you need to update your conky version.  Not sure how you do that in ARCH though.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4868 2013-03-02 19:32:37

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

dk75 wrote:
Sector11 wrote:

grep "`date +"%b %y"`"  <--- works

grep "`date +"%b '%y"`" <--- doesn't work

This work no matter in which format vnstat gives dates:

  • vstat English at non English system:

    vnstat -m |gawk '/'$(env LC_ALL=en_US.UTF-8 date +%b.\{1,2\}%y)'/ {print "Total:",$9,$10,"\t","Avg.:",$12,$13}'
  • vnstat native:

    vnstat -m |gawk '/'$(date +%b.\{1,2\}%y)'/ {print "Total:",$9,$10,"\t","Avg.:",$12,$13}'

Or; I would imagine: LC_ALL=en_GB.UTF-8 or LC_ALL=en_CA.UTF-8, etc would work as well as long as they are English based?

SUPER stuff dk75 - logged that one in a text file for future use.

Thank you!


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4869 2013-03-02 19:37:08

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: Conky v1.9 Thread

Not really.
Only "en_US.UTF-8" locales are installed by default in all distributions regardless of user selected one.


Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#4870 2013-03-02 20:45:02

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

dk75 wrote:

Not really.
Only "en_US.UTF-8" locales are installed by default in all distributions regardless of user selected one.

Hmmmmmm ... I didn't know that.  I deleted en_US.UTF-8 here the only one I have is en_CA.UTF-8.
I originally set it up to use en_CA.UTF-8 on install.  I found out quite by accident that it was still using en_US.UTF-8
So I guess what you say makes sense.

That's why did: How To: Change the Default Locale

Will store that away little tidbit away as well.  Thank you yet again.

Seem like every time I meet you I'm thanking you.  I think I need an open port to your brain.  cool


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4871 2013-03-02 22:11:56

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

@Sector11
Hi !
Great conky stuf again ! Well done.
I had a little question:
How did you display differents background images on each desktop ? (I'm on openbox) I got an idea to display different weather forecast citys on each desktop.(I've got 4)
Thanks

Offline

#4872 2013-03-03 00:53:32

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ragamatrix wrote:

@Sector11
Hi !
Great conky stuf again ! Well done.
I had a little question:
How did you display differents background images on each desktop ? (I'm on openbox) I got an idea to display different weather forecast citys on each desktop.(I've got 4)
Thanks

No idea how to display different backgrounds of each desktop but with conkys it's easy.

1. install wmctrl
2 create the conkys you want on a single desktop without "sticky"

own_window_hints undecorated,below,skip_taskbar,skip_pager

3. last lne in OpenBox's autostart bash script starts a StartStopConky bash script:

## Start conkys
(sleep 5s && /media/5/Conky/OBMenuS/S11_T2_SSC.sh) &

And here's mine: S11_T2_SSC.sh

   #!/bin/bash
   # click to start, click to stop

if pidof conky | grep [0-9] > /dev/null
  then
	exec killall conky
  else

# on all desktops
	conky -c /media/5/Conky/S11_Email_1.conky &

# Start with low sleep and build sleep up per desktop to allow conkys to start before switching.
# wmctrl starts with 0 so "wmctrl -s 3" is desktop 4

# on desktop 4 only
#	(sleep 0s && wmctrl -s 3 && conky -c /media/5/conky/Bruce_Conky/S11_HUD3.conky) &

# on desktop 3 only
	(sleep 5s && wmctrl -s 2 && conky) &
	(sleep 5s && wmctrl -s 2 && conky -c /media/5/conky/main.conky) &

# on desktop 2 only (change to 5s if using desktop 3)
	(sleep 7s && wmctrl -s 1 && conky -c /media/5/Conky/S11_Dates.conky) &
	(sleep 7s && wmctrl -s 1 && conky -c /media/5/Conky/S11_VNS.conky) &
	(sleep 7s && wmctrl -s 1 && conky -c /media/5/Conky/S11_Rem_Cal.conky) &
	(sleep 7s && wmctrl -s 1 && conky -c /media/5/Conky/S11_Disk_Activity.conky) &

# on desktop 1 only (change to 10s if using desktop 3)
	(sleep 9s && wmctrl -s 0 && conky -c /media/5/Conky/S11_ConkyForecast_2013) &
     (sleep 9s && wmctrl -s 0 && conky -c /media/5/Conky/S11_Cal_br.conky) &
  exit
fi

Hope that is what you wanted.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4873 2013-03-03 04:33:08

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread

ragamatrix wrote:

@Sector11
Hi !
Great conky stuf again ! Well done.
I had a little question:
How did you display differents background images on each desktop ? (I'm on openbox) I got an idea to display different weather forecast citys on each desktop.(I've got 4)
Thanks

Openbox itself does not manage the desktop wallpaper so you will have to use an app that can set different wallpaper for each desktop. I know that feh and nitrogen can set a different wallpaper for individual screens (dual monitor), but I don't know if it will do the same for desktops.

Last edited by PackRat (2013-03-03 04:35:08)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#4874 2013-03-03 10:49:10

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

i have a problem with the type of my file system:

aczT4Xnr.png?st=kIzQ1ZpTmnN861oLsh_liw&e=1362309218

this is the code:

local fs_folder_root=conky_parse('${fs_free /}')
local typ_hdd_root=conky_parse("${fs_type /}")

out({x=0,y=130,c=dunkel,face="italic",shaded="yes",txt='root:'})
out({x=200,y=130,c=hell,face="italic",shaded="yes",txt=chgEnd(fs_folder_root,',')..' ('..typ_hdd_root..')',hj='r'})

it should be 'ext4'. do u have an idea how to fix this problem? it works when i display the type of another folder!

i compared this output with the output of gparted.

Last edited by lionhead (2013-03-03 11:01:04)

Offline

Be excellent to each other!

#4875 2013-03-03 12:20:01

DrakarNoir
#! CrunchBanger
From: just beyond the sign post
Registered: 2011-09-02
Posts: 132
Website

Re: Conky v1.9 Thread

ragamatrix wrote:

@Sector11
Hi !
Great conky stuf again ! Well done.
I had a little question:
How did you display differents background images on each desktop ? (I'm on openbox) I got an idea to display different weather forecast citys on each desktop.(I've got 4)
Thanks

Take a look at Wallpapoz.

From the author:

The most important feature is you could have Gnome and XFCE desktop wallpaper changes when you change workspace. It means you could group your wallpapers into specific workspace.

EDIT:

Found this link to the latest version deb.

Last edited by DrakarNoir (2013-03-03 12:49:23)


"The nine most terrifying words in the English language are, 'I'm from the government and I'm here to help.'.”  ~Ronald Reagan

Offline

Board footer

Powered by FluxBB

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

Debian Logo