Author Topic: Conky thread, show your work!  (Read 119697 times)

0 Members and 1 Guest are viewing this topic.

Offline mandog

  • Held Mitglied
  • *****
  • Posts: 1921
  • Architect Forum And G+ Forum Owner With Daniel S
  • Branch: All
  • Desktop: Gnome, Mate, E19, Openbox,FLuxbox,Budgie, XFCE openRC,
  • GPU Card: nvidia
  • GPU driver: Non Free
  • Kernel: latest
  • Skill: Advanced
Re: Conky thread, show your work!
« Reply #510 on: 14. August 2015, 01:40:15 »
@CyberWolf2k14
If it were my system I would move  "all the MP3's I wanted to the MUSIC folder, and all the MP4's and Divx to VIDEOS". to another partition reason being if you hose the system they are always easy to access  I use a 2 tb disc just for this and its 75% full.
Don't get me wrong not trying to tell you what to do but I have been there a few year ago and lost the lot.
A ENGLISHMAN IN PERU
I'm dyslexic Please do not complain about punctuation or spelling,
FANBOY,Taken from the urban dictionary
 A pathetic insult often used by fanboys themselves to try and put down people who don't like whatever it is they like.

Offline CyberWolf2k14

  • Held Mitglied
  • *****
  • Posts: 1184
  • Computers make very fast, very accurate mistakes.
  • Branch: Stable-sysd229-LightDM
  • Desktop: MATE/Cinnamon/GNOME
  • GPU Card: nVidia GeForce GT740
  • GPU driver: nVidia-NF-364.19
  • Kernel: 4.4.9x64 / 4.2.8.9x64 / 4.1.23x64
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #511 on: 14. August 2015, 03:00:49 »
@CyberWolf2k14
If it were my system I would move  "all the MP3's I wanted to the MUSIC folder, and all the MP4's and Divx to VIDEOS". to another partition reason being if you hose the system they are always easy to access  I use a 2 tb disc just for this and its 75% full.
Don't get me wrong not trying to tell you what to do but I have been there a few year ago and lost the lot.
Not to worry. I habitually create disk images on a separate disk. If say /home partition is hosed, I just restore image, and voila...back in business again.
PowerSpec Quad core Intel Core i5-4690K w/ 16GB RAM
Dual Boot = Win 7 Ult x64 and Manjaro 15.12 x64
===================================================
"A computer lets you make more mistakes faster than any invention in human history...
with the possible exceptions of handguns and tequila".

Offline ksose

  • Neuling
  • *
  • Posts: 33
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #512 on: 14. August 2015, 13:42:13 »
For the .lua file, if you don't mind, yes :)
Is it secret?

No sorry, i ask because i'm not sure ask to me

Code: [Select]
--==============================================================================
--                            9ColdRings.lua
--
--  Date    : 03|2015
--  Author  : kSose
--  Version : 0.3
--  License : Distributed under the terms of GNU GPL version 2 or later
--
--  This version is a modification of conky_orange.lua and lunatico_rings.lua
--
--  conky_orange.lua:    http://gnome-look.org/content/show.php?content=137503&forumpage=0
--  lunatico_rings.lua:  http://gnome-look.org/content/show.php?content=142884
--==============================================================================

require 'cairo'


--------------------------------------------------------------------------------
--                                                                    gauge DATA
gauge = {
{
    name='cpu',                    arg='cpu0',                  max_value=100,
    x=70,                          y=140,
    graph_radius=55,
    graph_thickness=6,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=1.5,
    graph_bg_colour=0x0000FF,      graph_bg_alpha=0.2,
    graph_fg_colour=0x0000FF,      graph_fg_alpha=0.2,
    hand_fg_colour=0x00DFE5,       hand_fg_alpha=1.0,
    txt_radius=62,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x00DFE5,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0x00DFE5, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0x00DFE5,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu1',                  max_value=100,
    x=70,                          y=140,
    graph_radius=47,
    graph_thickness=6,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=1.5,
    graph_bg_colour=0x0000FF,      graph_bg_alpha=0.2,
    graph_fg_colour=0x0000FF,      graph_fg_alpha=0.2,
    hand_fg_colour=0x00DFE5,       hand_fg_alpha=1.0,
    txt_radius=40,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x00DFE5,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0x00DFE5, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0x00DFE5,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu2',                  max_value=100,
    x=70,                          y=140,
    graph_radius=22,
    graph_thickness=6,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=1.5,
    graph_bg_colour=0x0000FF,      graph_bg_alpha=0.2,
    graph_fg_colour=0x0000FF,      graph_fg_alpha=0.2,
    hand_fg_colour=0x00DFE5,       hand_fg_alpha=1.0,
    txt_radius=32,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x00DFE5,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0x00DFE5, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0x00DFE5,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu3',                  max_value=100,
    x=70,                          y=140,
    graph_radius=15,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=1.5,
    graph_bg_colour=0x0000FF,      graph_bg_alpha=0.2,
    graph_fg_colour=0x0000FF,      graph_fg_alpha=0.2,
    hand_fg_colour=0x00DFE5,       hand_fg_alpha=1.0,
    txt_radius=7,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x00DFE5,        txt_fg_alpha=1.0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0x00DFE5, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0x00DFE5,    caption_fg_alpha=0.3,
},
{
    name='memperc',                arg='',                      max_value=100,
    x=150,                          y=310,
    graph_radius=54,
    graph_thickness=10,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=1,
    graph_bg_colour=0x0000FF,      graph_bg_alpha=0.2,
    graph_fg_colour=0x0000FF,      graph_fg_alpha=0.3,
    hand_fg_colour=0x00DFE5,       hand_fg_alpha=1.0,
    txt_radius=42,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x00DFE5,        txt_fg_alpha=1.0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0x00DFE5, graduation_fg_alpha=0.5,
    caption='',
    caption_weight=1,              caption_size=10.0,
    caption_fg_colour=0x00DFE5,    caption_fg_alpha=0.3,
},
{
    name='fs_used_perc',           arg='/boot/efi/',                     max_value=100,
    x=100,                          y=470,
    graph_radius=90,
    graph_thickness=7,
    graph_start_angle=182,
    graph_unit_angle=2.7,          graph_unit_thickness=1,
    graph_bg_colour=0x0000FF,      graph_bg_alpha=0.2,
    graph_fg_colour=0x0000FF,      graph_fg_alpha=0.2,
    hand_fg_colour=0x00DFE5,       hand_fg_alpha=1.0,
    txt_radius=98,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x00DFE5,        txt_fg_alpha=1.0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xE300FF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=12.0,
    caption_fg_colour=0xE300FF,    caption_fg_alpha=0.5,
},
{
    name='fs_used_perc',           arg='/boot/',                     max_value=100,
    x=100,                          y=470,
    graph_radius=75,
    graph_thickness=7,
    graph_start_angle=182,
    graph_unit_angle=2.7,          graph_unit_thickness=1,
    graph_bg_colour=0x0000FF,      graph_bg_alpha=0.2,
    graph_fg_colour=0x0000FF,      graph_fg_alpha=0.2,
    hand_fg_colour=0x00DFE5,       hand_fg_alpha=1.0,
    txt_radius=83,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x00DFE5,        txt_fg_alpha=1.0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xE300FF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=12.0,
    caption_fg_colour=0xE300FF,    caption_fg_alpha=0.5,
},
{
    name='fs_used_perc',           arg='/var',                     max_value=100,
    x=100,                          y=470,
    graph_radius=60,
    graph_thickness=7,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=1,
    graph_bg_colour=0x0000FF,      graph_bg_alpha=0.1,
    graph_fg_colour=0x0000FF,      graph_fg_alpha=0.2,
    hand_fg_colour=0x00DFE5,       hand_fg_alpha=1.0,
    txt_radius=70,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x00DFE5,        txt_fg_alpha=1.0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xE300FF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=12.0,
    caption_fg_colour=0xE300FF,    caption_fg_alpha=0.5,
},
{
    name='fs_used_perc',           arg='/home',                     max_value=100,
    x=100,                          y=470,
    graph_radius=45,
    graph_thickness=7,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=1,
    graph_bg_colour=0x0000FF,      graph_bg_alpha=0.1,
    graph_fg_colour=0x0000FF,      graph_fg_alpha=0.2,
    hand_fg_colour=0x00DFE5,       hand_fg_alpha=1.0,
    txt_radius=55,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x00DFE5,        txt_fg_alpha=1.0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0x00DFE5, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=12.0,
    caption_fg_colour=0x00DFE5,    caption_fg_alpha=0.5,
},
{
    name='fs_used_perc',           arg='/',                     max_value=100,
    x=100,                          y=470,
    graph_radius=30,
    graph_thickness=7,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=1,
    graph_bg_colour=0x0000FF,      graph_bg_alpha=0.1,
    graph_fg_colour=0x0000FF,      graph_fg_alpha=0.2,
    hand_fg_colour=0x00DFE5,       hand_fg_alpha=1.0,
    txt_radius=42,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x00DFE5,        txt_fg_alpha=1.0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0x0000FF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=12.0,
    caption_fg_colour=0x0000FF,    caption_fg_alpha=0.5,
},
{
    name='downspeedf',           arg='enp9s0',                     max_value=100,
    x=60,                          y=650,
    graph_radius=54,
    graph_thickness=7,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=1,
    graph_bg_colour=0x0000FF,      graph_bg_alpha=0.2,
    graph_fg_colour=0x0000FF,      graph_fg_alpha=0.2,
    hand_fg_colour=0x00DFE5,       hand_fg_alpha=1.0,
    txt_radius=63,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x00DFE5,        txt_fg_alpha=1.0,
    graduation_radius=28,
    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=12.0,
    caption_fg_colour=0xFFFF00,    caption_fg_alpha=0.5,
},
{
    name='upspeedf',           arg='enp9s0',                     max_value=100,
    x=60,                          y=648,
    graph_radius=30,
    graph_thickness=7,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=1,
    graph_bg_colour=0x0000FF,      graph_bg_alpha=0.2,
    graph_fg_colour=0x0000FF,      graph_fg_alpha=0.2,
    hand_fg_colour=0x00DFE5,       hand_fg_alpha=1.0,
    txt_radius=39,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x00DFE5,        txt_fg_alpha=1.0,
    graduation_radius=28,
    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=12.0,
    caption_fg_colour=0xFFFF00,    caption_fg_alpha=0.5,
},
{
    name='downspeedf',           arg='wlp8s0',                     max_value=100,
    x=100,                          y=800,
    graph_radius=54,
    graph_thickness=7,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=1,
    graph_bg_colour=0x0000FF,      graph_bg_alpha=0.2,
    graph_fg_colour=0x0000FF,      graph_fg_alpha=0.2,
    hand_fg_colour=0x00DFE5,       hand_fg_alpha=1.0,
    txt_radius=63,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x00DFE5,        txt_fg_alpha=1.0,
    graduation_radius=28,
    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=12.0,
    caption_fg_colour=0xFFFF00,    caption_fg_alpha=0.5,
},
{
    name='upspeedf',           arg='wlp8s0',                     max_value=100,
    x=100,                          y=800,
    graph_radius=30,
    graph_thickness=7,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=1,
    graph_bg_colour=0x0000FF,      graph_bg_alpha=0.2,
    graph_fg_colour=0x0000FF,      graph_fg_alpha=0.2,
    hand_fg_colour=0x00DFE5,       hand_fg_alpha=1.0,
    txt_radius=39,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x00DFE5,        txt_fg_alpha=1.0,
    graduation_radius=28,
    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=12.0,
    caption_fg_colour=0xFFFF00,    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 % (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

-------------------------------------------------------------------------------
--                                                                         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)
    end

    cairo_surface_destroy(cs)
    cairo_destroy(display)

end

enjoy
« Last Edit: 14. August 2015, 13:51:59 by ksose »
Semina Linux tanto Windows si pianta da solo!

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #513 on: 14. August 2015, 14:18:54 »
enjoy
I will ;D
Very cool, thanks! :D
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline omni

  • Jr. Mitglied
  • **
  • Posts: 82
  • I'm new. Be nice!
  • Branch: testing
  • Desktop: KDE Plasma 5
  • GPU Card: ATi HD 7970
  • GPU driver: nonfree
  • Kernel: 4.4-Manjaro
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #514 on: 16. August 2015, 20:27:21 »
Here is my Conky with conkyrc
its a light modified version of the smooth conky from deviantart http://www.deviantart.com/browse/all/?section=&global=1&q=smooth+conky in the zip you can also find the fonts and script to get the external ip.

for conky 1.10 i changed "pre_exec" and had no transparency issue but i disliked the empty fields during loading. downgraded to conky 1.9




Code: [Select]
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 220 50
#maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color D9D4CC
#default_shade_color black
#default_outline_color white
#own_window_colour FFFFFF

# Text alignment, other possible values are commented
#alignment top_left
alignment top_left
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 1650
gap_y 50

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 1

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 1

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none

own_window_argb_value 0
own_window_argb_visual yes
TEXT
${font :size=10:style=bold}SYSTEM${font} ${hr 1}
${voffset 8}${font OpenLogos:size=16}${color 7B9494}u${color}${font}   ${voffset -6} User:  ${alignr 20}${pre_exec users | cut -d " " -f1}@${nodename}
${voffset 3}         Release:  ${alignr 20}${pre_exec lsb_release -r -s} (${pre_exec lsb_release -c -s})
${voffset 3}         Kernel:  ${alignr 20}${kernel}
${voffset 3}         Updates: ${alignr 20}${execpi 3600 checkupdates | wc -l} available
${voffset 10}${font :size=10:style=bold}Temps${font} ${hr 1}
${voffset 8}${font StyleBats:size=16}${color 7B9494}H${color}${font}   CPU Temp: ${alignr 20}${exec sensors | grep "CPU Temp (rel):" | cut -d "+" -f2 | cut -c1-6}C
${font StyleBats:size=16}${color 7B9494}H${color}${font}   GPU Temp: ${alignr 20}${exec aticonfig --od-gettemperature | grep Temperature | cut -c43-44},0°C
${font StyleBats:size=16}${color 7B9494}H${color}${font}   Sys Temp:  ${alignr 20}${exec sensors | grep "M/B Temp:" | cut -d "+" -f2 | cut -c1-6}C
${voffset 10}${font :size=10:style=bold}Usage${font} ${hr 1}
${voffset 8}${font StyleBats:size=16}${color 7B9494}A${color}${font}${voffset -5}   CPU1: ${cpu cpu1}% ${color}${alignr}${color 7B9494}${cpubar cpu1 8,60}${color}
${font StyleBats:size=16}${color 7B9494}A${color}${font}   CPU2: ${cpu cpu2}% ${color}${alignr}${color 7B9494}${cpubar cpu2 8,60}
${font StyleBats:size=16}${color 7B9494}A${color}${font}   CPU3: ${cpu cpu3}% ${color}${alignr}${color 7B9494}${cpubar cpu2 8,60}
${font StyleBats:size=16}${color 7B9494}A${color}${font}   CPU4: ${cpu cpu4}% ${color}${alignr}${color 7B9494}${cpubar cpu2 8,60}
${voffset 5}${font StyleBats:size=16}${color 7B9494}g${color}${font}   ${voffset -5}RAM: $memperc% ${alignr}${color 7B9494}${membar 8,60}${color}
${voffset 5}${font StyleBats:size=16}${color 7B9494}j${color}${font}   ${voffset -5}SWAP: $swapperc% ${alignr}${color 7B9494}${swapbar 8,60}${color}
#${voffset 5}${font Webdings:size=16}${color 7B9494}~${color}${font}  ${voffset -5}Battery: ${battery_percent BAT1}% ${alignr}${color 7B9494}${battery_bar 8,60 BAT1}${color}
${voffset 5}${font StyleBats:size=16}${color 7B9494}q${color}${font}   ${voffset -5}Uptime: ${alignr}${uptime}
${voffset 5}${font StyleBats:size=16}${color 7B9494}k${color}${font}   ${voffset -5}Processes: ${alignr}$processes ($running_processes running)

${voffset 10}${font :size=10:style=bold}FILE SYSTEM${font} ${hr 1}
#${voffset 8} ${color 7B9494}${font Weather:size=17}yz${font}${color}    ${voffset -4}Temperatur: ${color 7B9494}${hddtemp /dev/sda}°C${color}${alignr}/dev/sda
${voffset 8}${font Poky:size=15}${color 7B9494}y${color}${font}${offset 6}${voffset -7}Root: ${font Liberation Sans:size=8}${color 7B9494}${fs_used_perc /}%${font}${color}
${color 7B9494}${voffset 2}${fs_bar 4,20 /}${offset 8}${voffset -2}${color}Free: ${fs_free /}${alignr}Used: ${fs_used /}
${voffset 8}${font Poky:size=15}${color 7B9494}y${color}${font}${offset 6}${voffset -7}Home: ${font Liberation Sans:size=8}${color 7B9494}${fs_used_perc /home}%${font}${color}
${color 7B9494}${voffset 2}${fs_bar 4,20 /home}${offset 8}${voffset -2}${color}Free: ${fs_free /home}${alignr}Used: ${fs_used /home}
${voffset 8}${font :size=10:style=bold}NETWORK${font} ${hr 1}
${if_existing /proc/net/route wlan0}
${voffset 2}${color 7B9494}${voffset -6}${font PizzaDude Bullets:size=14}O${color}${font}   ${voffset -2}Up: ${upspeed enp2s0}/s ${alignr}${color 7B9494}${upspeedgraph enp2s0 8,60}${color}
${voffset 2}${color 7B9494}${voffset 4}${font PizzaDude Bullets:size=14}U${color}${font}   ${voffset -2}Down: ${downspeed enp2s0}/s ${alignr}${color 7B9494}${downspeedgraph enp2s0 8,60}${color}
${voffset 2}${color 7B9494}${voffset 4}${font PizzaDude Bullets:size=14}N${color}${font}   ${voffset -2}Upload: ${alignr}${totalup enp2s0}
${voffset 2}${color 7B9494}${voffset 4}${font PizzaDude Bullets:size=14}T${color}${font}   ${voffset -2}Download: ${alignr}${totaldown enp2s0}
${voffset 2}${color 7B9494}${voffset 4}${font PizzaDude Bullets:size=14}Z${color}${font}   ${voffset -2}Signal: ${wireless_link_qual enp2s0}% ${alignr}${wireless_link_bar 8,60 wlan0}
${voffset 2}${color 7B9494}${voffset 4}${font PizzaDude Bullets:size=14}a${color}${font}   ${voffset -2}Local Ip: ${alignr}${addr wlan0}
${voffset 2}${color 7B9494}${voffset 4}${font PizzaDude Bullets:size=14}b${color}${font}   ${voffset -2}Public Ip: ${alignr}${execi 1 ~/.conky/smooth_conky/ip.sh}
${else}${if_existing /proc/net/route enp2s0}
${voffset 2}${color 7B9494}${voffset -6}${font PizzaDude Bullets:size=14}O${color}${font}   ${voffset -2}Up: ${upspeed enp2s0}/s ${alignr}${color 7B9494}${upspeedgraph enp2s0 8,60}${color}
${voffset 2}${color 7B9494}${voffset 4}${font PizzaDude Bullets:size=14}U${color}${font}   ${voffset -2}Down: ${downspeed enp2s0}/s ${alignr}${color 7B9494}${downspeedgraph enp2s0 8,60}${color}
${voffset 2}${color 7B9494}${voffset 4}${font PizzaDude Bullets:size=14}N${color}${font}   ${voffset -2}Upload: ${alignr}${totalup enp2s0}
${voffset 2}${color 7B9494}${voffset 4}${font PizzaDude Bullets:size=14}T${color}${font}   ${voffset -2}Download: ${alignr}${totaldown enp2s0}
${voffset 2}${color 7B9494}${voffset 4}${font PizzaDude Bullets:size=14}a${color}${font}   ${voffset -2}Local Ip: ${alignr}${addr enp2s0}
${voffset 2}${color 7B9494}${voffset 4}${font PizzaDude Bullets:size=14}b${color}${font}   ${voffset -2}Public Ip: ${alignr}${execi 10800 ~/.conky/smooth_conky/extip.sh}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font}   Network Unavailable
${endif}






Offline rhade

  • Neuling
  • *
  • Posts: 11
  • I'm new. Be nice!
  • Branch: Stable
  • Desktop: Xfce
  • GPU Card: AMD Radeon HD 8370D
  • GPU driver: free
  • Kernel: x86_64 Linux 3.18.20-1-MANJARO
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #515 on: 20. August 2015, 12:51:04 »
This is mine. Made with conky-colors
Code: [Select]
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
if_up_strictness link

imlib_cache_size 0
double_buffer yes
no_buffers yes

format_human_readable

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Liberation Sans:size=8
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_value 200
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_right
gap_x 25
gap_y 40
minimum_size 182 600
maximum_width 182

default_bar_size 60 8

#########################
# - Graphics settings - #
#########################
draw_shades no

default_color D6D6D6

color0 F2F2F2
color1 7296BB
color2 FFFFFF
color3 7296BB

TEXT
${font Liberation Sans:style=Bold:size=8}SYSTEM $stippled_hr${font}
##############
# - SYSTEM - #
##############
${color0}${voffset 8}${offset 4}${font ConkyColorsLogos:size=9}a${font}${color}${voffset -16}
${color0}${font ConkyColors:size=16}b${font}${color}
${goto 32}${voffset -23}Kernel: ${alignr}${color2}${kernel}${color}
${goto 32}Uptime: ${alignr}${color2}${uptime}${color}
# |--UPDATES
${goto 32}Updates: ${alignr}${font Liberation Sans:style=Bold:size=8}${color1}${execi 360 aptitude search "~U" | wc -l | tail}${color}${font} ${color2}Packages${color}
# |--CPU
${voffset 4}${color0}${font ConkyColors:size=16}c${font}${offset -20}${voffset 6}${cpubar cpu0 4,17}${color}${voffset -16}${goto 32}CPU1: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu1}%${color}${font} ${alignr}${color2}${cpugraph cpu1 8,60 7296BB 7296BB}${color}
${goto 32}CPU2: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu2}%${color}${font} ${alignr}${color2}${cpugraph cpu2 8,60 7296BB 7296BB}${color}
# |--MEM
${voffset 2}${color0}${font ConkyColors:size=15}g${font}${color}${goto 32}${voffset -7}RAM: ${font Liberation Sans:style=Bold:size=8}${color1}$memperc%${color}${font}
${offset 1}${color0}${membar 4,17}${color}${goto 32}F: ${font Liberation Sans:style=Bold:size=8}${color2}${memeasyfree}${color}${font} U: ${font Liberation Sans:style=Bold:size=8}${color2}${mem}${color}${font}
# |--SWAP
${voffset 2}${color0}${font ConkyColors:size=15}z${font}${color}${voffset -8}${goto 32}SWAP: ${font Liberation Sans:style=Bold:size=8}${color1}${swapperc}%${color}${font}
${voffset 2}${offset 1}${color0}${swapbar 4,17}${color}${voffset -2}${goto 32}F: ${font Liberation Sans:style=Bold:size=8}${color2}$swapmax${color}${font} U: ${font Liberation Sans:style=Bold:size=8}${color2}$swap${color}${font}
# |--PROC
${voffset 4}${color0}${font ConkyColors:size=16}C${font}${color}${goto 32}${voffset -10}Processes: ${color2}${alignr 13}CPU${alignr}RAM${color}
${voffset -1}${goto 42}${color2}${top name 1}${color}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 126}${top cpu 1}${alignr }${top mem 1}${color}${font}
${voffset -1}${goto 42}${color2}${top name 2}${color}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 126}${top cpu 2}${alignr }${top mem 2}${color}${font}
${voffset -1}${goto 42}${color2}${top name 3}${color}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 126}${top cpu 3}${alignr }${top mem 3}${color}${font}
${voffset -1}${goto 42}${color2}${top name 4}${color}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 126}${top cpu 4}${alignr }${top mem 4}${color}${font}
${voffset -1}${goto 42}${color2}${top name 5}${color}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 126}${top cpu 5}${alignr }${top mem 5}${color}${font}
#############
# - CLOCK - #
#############
${voffset 4}${font Liberation Sans:style=Bold:size=8}DATE $stippled_hr${font}
${font Digital Readout Thick Upright:size=40}${goto 18}${color2}${time %k}${voffset -9}:${voffset 9}${time %M}${goto 130}${color2}${voffset -14}${font Digital Readout Thick Upright:size=24}${goto 130}${color2}${time %d}${font Digital Readout Thick Upright:size=12}${voffset 14}${goto 130}${color2}${time %m}${goto 144}${color2}${time %y}${font}
################
# - CALENDAR - #
################
${voffset -2}${color0}${font ConkyColors:size=15}D${font}${voffset -8}${font Liberation Sans:style=Bold:size=7}${offset -17}${voffset 4}${time %d}${font}${color}${voffset -1}${font Liberation Mono:size=7}${execpi 300 DJS=`date +%_d`; ncal -h -M -b|sed '2,8!d'| sed '/./!d' | sed 's/^/${goto 42} /'| sed 's/$/ /' | sed 's/^/ /' | sed /" $DJS "/s/" $DJS "/" "'${font Liberation Sans:style=Bold:size=8}${voffset -2}${offset -4}${color1} '"$DJS"'${color}${font Liberation Mono:size=7}'" "/}${voffset -1}
##########
# - HD - #
##########
${voffset 4}${font Liberation Sans:style=Bold:size=8}HD $stippled_hr${font}
${execpi 30 /usr/share/conkycolors/bin/conkyHD2}
###############
# - NETWORK - #
###############
${voffset -4}${font Liberation Sans:style=Bold:size=8}NETWORK $stippled_hr${font}
# |--WLAN0
${if_up wlan0}
${voffset -5}${color0}${font ConkyColors:size=15}s${font}${color}${goto 32}${voffset -12}Up: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed wlan0}${color}${font} ${alignr}${color2}${upspeedgraph wlan0 8,60 7296BB 7296BB}${color}
${goto 32}Total: ${font Liberation Sans:style=Bold:size=8}${color2}${totalup wlan0}${color}${font}
${voffset 2}${color0}${font ConkyColors:size=15}t${font}${color}${goto 32}${voffset -12}Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed wlan0}${color}${font} ${alignr}${color2}${downspeedgraph wlan0 8,60 7296BB 7296BB}${color}
${goto 32}Total: ${font Liberation Sans:style=Bold:size=8}${color2}${totaldown wlan0}${color}${font}
${color0}${font ConkyColors:size=15}j${font}${color}${voffset -6}${goto 32}Signal: ${font Liberation Sans:style=Bold:size=8}${color1}${wireless_link_qual_perc wlan0}%${color}${font} ${alignr}${color2}${wireless_link_bar 8,60 wlan0}${color}
${voffset 2}${color0}${font ConkyColors:size=15}B${font}${color}${goto 32}${voffset -6}Local IP: ${alignr}${color2}${addr wlan0}${color}
# |--enp1s0
${else}${if_up enp1s0}
${voffset -5}${color0}${font ConkyColors:size=15}s${font}${color}${goto 32}${voffset -12}Up: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed enp1s0}${color}${font} ${alignr}${color2}${upspeedgraph enp1s0 8,60 7296BB 7296BB}${color}
${goto 32}Total: ${font Liberation Sans:style=Bold:size=8}${color2}${totalup enp1s0}${color}${font}
${voffset 4}${color0}${font ConkyColors:size=15}t${font}${color}${goto 32}${voffset -12}Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed enp1s0}${color}${font} ${alignr}${color2}${downspeedgraph enp1s0 8,60 7296BB 7296BB}${color}
${goto 32}Total: ${font Liberation Sans:style=Bold:size=8}${color2}${totaldown enp1s0}${color}${font}
${voffset 2}${color0}${font ConkyColors:size=15}B${font}${color}${goto 32}${voffset -6}Local IP: ${alignr}${color2}${addr enp1s0}${color}
# |--ENP4S0
${else}${if_up enp4s0}
${voffset -5}${color0}${font ConkyColors:size=15}s${font}${color}${goto 32}${voffset -12}Up: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed enp4s0}${color}${font} ${alignr}${color2}${upspeedgraph enp4s0 8,60 7296BB 7296BB}${color}
${goto 32}Total: ${font Liberation Sans:style=Bold:size=8}${color2}${totalup enp4s0}${color}${font}
${voffset 2}${color0}${font ConkyColors:size=15}t${font}${color}${goto 32}${voffset -12}Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed enp4s0}${color}${font} ${alignr}${color2}${downspeedgraph enp4s0 8,60 7296BB 7296BB}${color}
${goto 32}Total: ${font Liberation Sans:style=Bold:size=8}${color2}${totaldown enp4s0}${color}${font}
${voffset 4}${color0}${font ConkyColors:size=15}B${font}${color}${goto 32}${voffset -6}Local IP: ${alignr}${color2}${addr enp4s0}${color}
# |--PPP0
${else}${if_up ppp0}
${voffset -5}${color0}${font ConkyColors:size=15}s${font}${color}${goto 32}${voffset -12}Up: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed ppp0}${color}${font} ${alignr}${color2}${upspeedgraph ppp0 8,60 7296BB 7296BB}${color}
${goto 32}Total: ${font Liberation Sans:style=Bold:size=8}${color2}${totalup ppp0}${color}${font}
${voffset 2}${color0}${font ConkyColors:size=15}t${font}${color}${goto 32}${voffset -12}Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed ppp0}${color}${font} ${alignr}${color2}${downspeedgraph ppp0 8,60 7296BB 7296BB}${color}
${goto 32}Total: ${font Liberation Sans:style=Bold:size=8}${color2}${totaldown ppp0}${color}${font}
${voffset 2}${color0}${font ConkyColors:size=15}B${font}${color}${goto 32}${voffset -6}Local IP: ${alignr}${color2}${addr ppp0}${color}
${else}${voffset 4}${color0}${font ConkyColors:size=15}q${font}${color}${voffset -6}${goto 32}Network Unavailable${voffset 14}${endif}${endif}${endif}${endif}

Offline LogicWavelength

  • Neuling
  • *
  • Posts: 23
  • I'm new. Be nice!
  • Branch: stable
  • Desktop: KDE Plasma 5
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #516 on: 09. September 2015, 15:58:36 »
So I too jumped on the "Smooth Conky" bandwagon, but I heavily modded mine to fit the Maia theme as well as my wallpaper proposal for Manjaro 0.9. I used the Oxygen Sans font to match, as well as the correct Maia green.

Let me know what you think!

Offline twodogsdave

  • Jr. Mitglied
  • **
  • Posts: 89
  • Desktop: i3
  • GPU Card: Radeon HD Graphics
  • GPU driver: free
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #517 on: 24. September 2015, 22:09:27 »
So I too jumped on the "Smooth Conky" bandwagon, but I heavily modded mine to fit the Maia theme as well as my wallpaper proposal for Manjaro 0.9. I used the Oxygen Sans font to match, as well as the correct Maia green.

Let me know what you think!
Looks sweet!  I like that green.  Only thing I would add is a big 'digital clock' in that empty space above your current conky.  :)

Offline crazyg4merz

  • Held Mitglied
  • *****
  • Posts: 879
  • Experience it, that's the way of learning!!
  • Branch: stable
  • Desktop: Gnome
  • GPU Card: Nvidia GTX 970
  • GPU driver: non-free
  • Kernel: Linux420-x64
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #518 on: 26. September 2015, 12:08:45 »
Guys, can you help me with my conky script? Here's how it looks like now:

Notice the intel and nvidia logo? It's transparent because the background is in bright colour (the problem is my background is set to slideshow mode every 2 minutes)
Here's how it should looks like when the background is black:



Here is my conky script for the Nvidia information:
Code: [Select]
conky.config = {
   background = true,
   double_buffer = true,
   alignment = 'bottom_left',
   border_width = 1,
   cpu_avg_samples = 2,
   default_color = 'white',
   default_outline_color = 'white',
   default_shade_color = 'white',
   draw_borders = false,
   draw_graph_borders = true,
   draw_outline = false,
   draw_shades = false,
   default_bar_height = 5,
   default_bar_width = 200,
   gap_x = 800,
   gap_y = 10,
   net_avg_samples = 2,
   no_buffers = true,
   out_to_console = false,
   out_to_stderr = false,
   extra_newline = false,
   own_window = true,
   own_window_type = 'desktop',
   own_window_transparent = true,
   own_window_colour = 'black',
   own_window_argb_visual = true,
   own_window_argb_value = 0,
   own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
   minimum_height = 290,
   minimum_width = 200,
   stippled_borders = 0,
   update_interval = 1.0,
   uppercase = false,
   use_spacer = none,
   show_graph_scale = false,
   show_graph_range = false,
   use_xft = true,
   xftalpha = 0.1,
   font = 'Droid Sans:size=10',
   override_utf8_locale = true,
   color0 = 'white',
   color1 = 'EAEAEA',
   color2 = 'FFA300',
   color3 = 'grey',
}


conky.text = [[
${color2}GPU Temp ${alignr}${color0}${nvidia temp} °C
${execibar 1 nvidia-smi -q | grep "GPU Current Temp" | awk '{print $5}'}
${color2}Fan Speed ${alignr}${color0}${execi 5 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t} %
${execibar 1 nvidia-smi -q | grep "Fan Speed" | awk '{print $4 $5}'}
${color2}GPU Clock ${alignr}${color0}${nvidia gpufreq} MHz
${color2}Mem Clock ${alignr}${color0}${nvidia memfreq} MHz
${color2}Mem Used ${alignr}${color0}${execi 5 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t} / ${exec nvidia-settings -q [gpu:0]/TotalDedicatedGPUMemory -t} MiB
${image /home/budiman/.conkyrc/nvidia-linux.png -p 0,110 -s 200x132 -f 86400}
]]


Note: this problem didn't exit in XFCE, but when I came into Gnome, the own_window_transparent must be set to true or else it will give me a black background in conky, in xfce it respect my own_window_argb_value parameter.
Also, I use Variety to change my background images in Gnome.
My question is: can I set a different value for the ${image} so that it is not transparent? Hope someone can help me here, thanks before  :) [/code]
« Last Edit: 26. September 2015, 12:12:46 by crazyg4merz »

Offline CyberWolf2k14

  • Held Mitglied
  • *****
  • Posts: 1184
  • Computers make very fast, very accurate mistakes.
  • Branch: Stable-sysd229-LightDM
  • Desktop: MATE/Cinnamon/GNOME
  • GPU Card: nVidia GeForce GT740
  • GPU driver: nVidia-NF-364.19
  • Kernel: 4.4.9x64 / 4.2.8.9x64 / 4.1.23x64
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #519 on: 26. September 2015, 14:50:49 »
Guys, can you help me with my conky script? Here's how it looks like now:

Notice the intel and nvidia logo? It's transparent because the background is in bright colour (the problem is my background is set to slideshow mode every 2 minutes)
Here's how it should looks like when the background is black:



Here is my conky script for the Nvidia information:
Code: [Select]
conky.config = {
   background = true,
   double_buffer = true,
   alignment = 'bottom_left',
   border_width = 1,
   cpu_avg_samples = 2,
   default_color = 'white',
   default_outline_color = 'white',
   default_shade_color = 'white',
   draw_borders = false,
   draw_graph_borders = true,
   draw_outline = false,
   draw_shades = false,
   default_bar_height = 5,
   default_bar_width = 200,
   gap_x = 800,
   gap_y = 10,
   net_avg_samples = 2,
   no_buffers = true,
   out_to_console = false,
   out_to_stderr = false,
   extra_newline = false,
   own_window = true,
   own_window_type = 'desktop',
   own_window_transparent = true,
   own_window_colour = 'black',
   own_window_argb_visual = true,
   own_window_argb_value = 0,
   own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
   minimum_height = 290,
   minimum_width = 200,
   stippled_borders = 0,
   update_interval = 1.0,
   uppercase = false,
   use_spacer = none,
   show_graph_scale = false,
   show_graph_range = false,
   use_xft = true,
   xftalpha = 0.1,
   font = 'Droid Sans:size=10',
   override_utf8_locale = true,
   color0 = 'white',
   color1 = 'EAEAEA',
   color2 = 'FFA300',
   color3 = 'grey',
}


conky.text = [[
${color2}GPU Temp ${alignr}${color0}${nvidia temp} °C
${execibar 1 nvidia-smi -q | grep "GPU Current Temp" | awk '{print $5}'}
${color2}Fan Speed ${alignr}${color0}${execi 5 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t} %
${execibar 1 nvidia-smi -q | grep "Fan Speed" | awk '{print $4 $5}'}
${color2}GPU Clock ${alignr}${color0}${nvidia gpufreq} MHz
${color2}Mem Clock ${alignr}${color0}${nvidia memfreq} MHz
${color2}Mem Used ${alignr}${color0}${execi 5 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t} / ${exec nvidia-settings -q [gpu:0]/TotalDedicatedGPUMemory -t} MiB
${image /home/budiman/.conkyrc/nvidia-linux.png -p 0,110 -s 200x132 -f 86400}
]]


Note: this problem didn't exit in XFCE, but when I came into Gnome, the own_window_transparent must be set to true or else it will give me a black background in conky, in xfce it respect my own_window_argb_value parameter.
Also, I use Variety to change my background images in Gnome.
My question is: can I set a different value for the ${image} so that it is not transparent? Hope someone can help me here, thanks before  :) [/code]

During experimentation, I have always ran into "problems" between conky and GNOME as well conky and KDE. That is why in MATE and Cinnamon I have no transparency issues, and in GNOME I just put up a background that is dark where the conky is. And as of this point, the only KDE install I have is located in a VM.

But, no sorry no ideas. I have spent a LOT of time with my conky and tried many things. So, it is basically either:a. a guru here can help or
b. experiment like I did (only if if ya have patience and time...and lots of them).  ;D
PowerSpec Quad core Intel Core i5-4690K w/ 16GB RAM
Dual Boot = Win 7 Ult x64 and Manjaro 15.12 x64
===================================================
"A computer lets you make more mistakes faster than any invention in human history...
with the possible exceptions of handguns and tequila".

Offline crazyg4merz

  • Held Mitglied
  • *****
  • Posts: 879
  • Experience it, that's the way of learning!!
  • Branch: stable
  • Desktop: Gnome
  • GPU Card: Nvidia GTX 970
  • GPU driver: non-free
  • Kernel: Linux420-x64
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #520 on: 26. September 2015, 16:15:32 »
During experimentation, I have always ran into "problems" between conky and GNOME as well conky and KDE. That is why in MATE and Cinnamon I have no transparency issues, and in GNOME I just put up a background that is dark where the conky is. And as of this point, the only KDE install I have is located in a VM.

But, no sorry no ideas. I have spent a LOT of time with my conky and tried many things. So, it is basically either:a. a guru here can help or
b. experiment like I did (only if if ya have patience and time...and lots of them).  ;D
Yeah I tried everything I can already. There's nothing I can do by changing the own_window_transparent and own_window_argb_visual value.
Now I only want to know what can I do about the ${image} or maybe changing the way the image is created or maybe a lua script, etc. Maybe there is somebody else that can help here?
Thanks btw CyberWolf  :)

Offline twodogsdave

  • Jr. Mitglied
  • **
  • Posts: 89
  • Desktop: i3
  • GPU Card: Radeon HD Graphics
  • GPU driver: free
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #521 on: 28. September 2015, 23:04:36 »
Guys, can you help me with my conky script? Here's how it looks like now:

Notice the intel and nvidia logo? It's transparent because the background is in bright colour (the problem is my background is set to slideshow mode every 2 minutes)
Here's how it should looks like when the background is black:



Here is my conky script for the Nvidia information:
Code: [Select]
conky.config = {
   background = true,
   double_buffer = true,
   alignment = 'bottom_left',
   border_width = 1,
   cpu_avg_samples = 2,
   default_color = 'white',
   default_outline_color = 'white',
   default_shade_color = 'white',
   draw_borders = false,
   draw_graph_borders = true,
   draw_outline = false,
   draw_shades = false,
   default_bar_height = 5,
   default_bar_width = 200,
   gap_x = 800,
   gap_y = 10,
   net_avg_samples = 2,
   no_buffers = true,
   out_to_console = false,
   out_to_stderr = false,
   extra_newline = false,
   own_window = true,
   own_window_type = 'desktop',
   own_window_transparent = true,
   own_window_colour = 'black',
   own_window_argb_visual = true,
   own_window_argb_value = 0,
   own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
   minimum_height = 290,
   minimum_width = 200,
   stippled_borders = 0,
   update_interval = 1.0,
   uppercase = false,
   use_spacer = none,
   show_graph_scale = false,
   show_graph_range = false,
   use_xft = true,
   xftalpha = 0.1,
   font = 'Droid Sans:size=10',
   override_utf8_locale = true,
   color0 = 'white',
   color1 = 'EAEAEA',
   color2 = 'FFA300',
   color3 = 'grey',
}


conky.text = [[
${color2}GPU Temp ${alignr}${color0}${nvidia temp} °C
${execibar 1 nvidia-smi -q | grep "GPU Current Temp" | awk '{print $5}'}
${color2}Fan Speed ${alignr}${color0}${execi 5 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t} %
${execibar 1 nvidia-smi -q | grep "Fan Speed" | awk '{print $4 $5}'}
${color2}GPU Clock ${alignr}${color0}${nvidia gpufreq} MHz
${color2}Mem Clock ${alignr}${color0}${nvidia memfreq} MHz
${color2}Mem Used ${alignr}${color0}${execi 5 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t} / ${exec nvidia-settings -q [gpu:0]/TotalDedicatedGPUMemory -t} MiB
${image /home/budiman/.conkyrc/nvidia-linux.png -p 0,110 -s 200x132 -f 86400}
]]


Note: this problem didn't exit in XFCE, but when I came into Gnome, the own_window_transparent must be set to true or else it will give me a black background in conky, in xfce it respect my own_window_argb_value parameter.
Also, I use Variety to change my background images in Gnome.
My question is: can I set a different value for the ${image} so that it is not transparent? Hope someone can help me here, thanks before  :) [/code]

Ok, I'm not sure I understand your problem.  I think you want the logo transparent on light backgrounds and darker on dark backgrounds?  Correct?  I change wallpapers frequently and need a white conky or a black conky. 

If so, this is what I do..

First I create two files in my /bin folder.  myconky_dark and myconky_light

myconky_dark
Code: [Select]
#!/bin/bash
killall conky &&
cp ~/.conkyrc.dark ~/.conkyrc &&
sleep 2 && conky ;

myconky_light
Code: [Select]
#!/bin/bash
killall conky &&
cp ~/.conkyrc.light ~/.conkyrc &&
sleep 2 && conky ;

Make sure you 'chmod +x' to make executable.

In my home folder, I have three conkies..
.conkyrc, .conkyrc.dark and .conkyrc.light

All three conkies are exactly the same, the only difference is conky.dark has color #000000 (black) and conky.light has color #FFFFFF.  (you could use dark and light images in your case)

I have my conky keybinds set like this..
Alt-7   reload conky,   command 'killall -SIGUSR1 conky'
Alt-8   start conky,     command 'conky'
Alt-9   stop conky,      command 'killall conky'
Alt-I   dark conky,      command '~/bin/myconky_dark'
Alt-O   light conky,      command '~/bin/myconky_light'

And that's it!

How I use..
I apply a dark wallpaper (I need my conky white so I can see it) I enter Alt-O
I apply a light wallpaper (Now I need a black conky) I enter Alt-I

If something is amiss, I restart conky (Alt-7), or kill it completely (Alt-9).

Alt-8 and I'm back in business with a nice conky!

Hope this helps, and sorry if I misunderstood you. 
Enjoy!



Offline crazyg4merz

  • Held Mitglied
  • *****
  • Posts: 879
  • Experience it, that's the way of learning!!
  • Branch: stable
  • Desktop: Gnome
  • GPU Card: Nvidia GTX 970
  • GPU driver: non-free
  • Kernel: Linux420-x64
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #522 on: 29. September 2015, 19:23:19 »
Ok, I'm not sure I understand your problem.  I think you want the logo transparent on light backgrounds and darker on dark backgrounds?  Correct?  I change wallpapers frequently and need a white conky or a black conky. 

If so, this is what I do..

First I create two files in my /bin folder.  myconky_dark and myconky_light

myconky_dark
Code: [Select]
#!/bin/bash
killall conky &&
cp ~/.conkyrc.dark ~/.conkyrc &&
sleep 2 && conky ;

myconky_light
Code: [Select]
#!/bin/bash
killall conky &&
cp ~/.conkyrc.light ~/.conkyrc &&
sleep 2 && conky ;

Make sure you 'chmod +x' to make executable.

In my home folder, I have three conkies..
.conkyrc, .conkyrc.dark and .conkyrc.light

All three conkies are exactly the same, the only difference is conky.dark has color #000000 (black) and conky.light has color #FFFFFF.  (you could use dark and light images in your case)

I have my conky keybinds set like this..
Alt-7   reload conky,   command 'killall -SIGUSR1 conky'
Alt-8   start conky,     command 'conky'
Alt-9   stop conky,      command 'killall conky'
Alt-I   dark conky,      command '~/bin/myconky_dark'
Alt-O   light conky,      command '~/bin/myconky_light'

And that's it!

How I use..
I apply a dark wallpaper (I need my conky white so I can see it) I enter Alt-O
I apply a light wallpaper (Now I need a black conky) I enter Alt-I

If something is amiss, I restart conky (Alt-7), or kill it completely (Alt-9).

Alt-8 and I'm back in business with a nice conky!

Hope this helps, and sorry if I misunderstood you. 
Enjoy!
That is a good idea, but that's not what I wanted. I got no problem with the the readability of the text (as you can see the text got no problem and the logos are only for aesthetic). But that problem didn't happen on other desktop environment (xfce and cinnamon). I got to change the conky script just to make it work on gnome (everything but the logo transparency). So all I wanna know is there any way to make a lua script to make the background acts like it was in xfce and cinnamon.
Btw thanks for the input twodogsdave  ;)

Offline Holmes

  • Mirror Support Team
  • ***
  • Posts: 2039
  • Brazilian and Hispanic Support Team
    • Manjaro Brasil
  • Branch: Stable
  • Desktop: Manjaro XFCE
  • GPU Card: Mobile Intel (R) 945
  • GPU driver: Non-free
  • Kernel: kernellinux
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #523 on: 02. October 2015, 14:30:54 »
hi guys, I'm using conky the i3 (code by @oberon), but the font is ugly, see



Code: [Select]
conky.config = {
alignment = 'top_right',
background = true,
color2 = '333333',
cpu_avg_samples = 2,
default_color = 'FFFFFF',
double_buffer = true,
font = 'Roboto:size=8',
gap_x = 25,
gap_y = 13,
minimum_width = 200,
no_buffers = true,
own_window = true,
own_window_type = 'override',
own_window_transparent = true,
update_interval = 1.0,
use_xft = true,
}
conky.text = [[
${voffset 8}$color2${font Roboto:size=16}${time %A}$font${voffset -8}$alignr$color${font Roboto:size=38}${time %e}$font
$color${voffset -30}$color${font Roboto:size=18}${time %b}$font${voffset -3} $color${font Roboto:size=20}${time %Y}$font$color2$hr
#
${voffset 20}${goto 40}${color}CPU${font Roboto:bold:size=8}$alignr$cpu%
${voffset 5}${goto 40}$font$color2${top name 1}$alignr$color${top cpu 1}%
${goto 40}$color2${top name 2}$alignr$color${top cpu 2}%
${goto 40}$color2${top name 3}$alignr$color${top cpu 3}%
${goto 40}$color2${top name 4}$alignr$color${top cpu 4}%
${goto 40}$color2${top name 5}$alignr$color${top cpu 5}%
#
${voffset 10}${goto 40}${color}RAM${font Roboto:bold:size=8}$alignr$mem$font
${goto 40}${voffset 5}$color2${top_mem name 1}$alignr$color${top_mem mem_res 1}
${goto 40}$color2${top_mem name 2}$alignr$color${top_mem mem_res 2}
${goto 40}$color2${top_mem name 3}$alignr$color${top_mem mem_res 3}
${goto 40}$color2${top_mem name 4}$alignr$color${top_mem mem_res 4}
${goto 40}$color2${top_mem name 5}$alignr$color${top_mem mem_res 5}
#
${voffset 20}$alignr$color${execi 5000 awk -F= '/ID=/{printf $2" "} /RELEASE=/{printf $2" "} /NAME=/{print $2}' /etc/lsb-release}
${voffset 5}${color2}${alignr}${execi 1200 whoami}@${nodename}
${alignr}${color2}${font Roboto:size=8}uptime: ${color}${uptime_short}
${voffset 5}${color2}${font Roboto:size=8}${alignr}kernel: ${color}${kernel}
]]

does anyone know how to adjust the font?

vlw fwi, Holmes :)


==> Manjaro Brasil I Manjaro Hispano
==> IRC Manjaro Brasil: #manjaro-br I IRC Manjaro Hispano: #manjaro-es

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #524 on: 02. October 2015, 15:21:38 »
Well it's actually not the original font! ;)
Anyway I think what's the problem here is the text-shadow more than the font...
Try adding this line:
Code: [Select]
draw_shades = 'false',
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin