You are not logged in.

#1076 2013-05-21 04:00:16

SatoruArc
Member
Registered: 2013-03-28
Posts: 1

Re: conky configs and screenshots!

thinkanish wrote:

Love the wallpaper + conky setup. smile

Offline

#1077 2013-05-31 22:25:29

GermainZ
Member
Registered: 2013-05-08
Posts: 11

Re: conky configs and screenshots!

A simple traffic monitor:
r2aUdv0.png

The borders are shown to make it clear that the conky window is bigger than what's shown, and will block input over those areas. That's because I'm using voffset to merge two graphs into one. It doesn't bother me personally, as I rarely use the mouse, but thought I should mention it in case anyone else tries to do the same.

Offline

#1078 2013-06-02 14:49:57

ichase
Member
Registered: 2011-02-10
Posts: 113

Re: conky configs and screenshots!

Not as much invaded with all the conky's.  Running just 4 of them in this screenie.

5c8ba9257859156.jpg

Offline

#1079 2013-07-07 09:57:24

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 476

Re: conky configs and screenshots!

Brok9n wrote:

http://s14.postimage.org/kdxzgs3bh/conky.jpg

.conkyrc

I haven't got Spotify working at the moment, that's just a place holder. However for the most part it's finished, though it would require alot of editing to work on other systems wink Just incase, you would need to edit lines 33, 34, 47, 48, 52-57, 87-90, 94-102.

If i may ask in this thread (if no, sorry) - how to make your conky transparent? I really liked that one, so i used it, but i can't get it to work as a transparent conky.

This is the config:

background no 
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes

There is own_window_transparent yes, even when i change background to yes, it is still plain dark, not transparent. Could you help me?

http://imageshack.us/photo/my-images/811/o1w.png/

Last edited by firekage (2013-07-07 11:01:20)

Offline

#1080 2013-07-07 15:39:59

hobarrera
Member
From: CABA, Argentina
Registered: 2011-04-12
Posts: 319
Website

Re: conky configs and screenshots!

firekage wrote:

If i may ask in this thread (if no, sorry) - how to make your conky transparent? I really liked that one, so i used it, but i can't get it to work as a transparent conky.

There are dozens of example configurations you can use as a reference in this thread.

At a quick glance, it looks like you should add the following to your conkyrc file:

own_window_argb_visual yes

GPG Key | AUR packages | github

caffeine-ng: Temporarily disable screensaver/sleeping with a simple click.

Offline

#1081 2013-07-07 15:51:21

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 476

Re: conky configs and screenshots!

hobarrera wrote:
firekage wrote:

If i may ask in this thread (if no, sorry) - how to make your conky transparent? I really liked that one, so i used it, but i can't get it to work as a transparent conky.

There are dozens of example configurations you can use as a reference in this thread.

At a quick glance, it looks like you should add the following to your conkyrc file:

own_window_argb_visual yes

THANK YOU!!! It works. I'm not lazy, and i post something only when either i don't understand something, can't find it or it doesen't help solving my problem. I read conky thread on wiki, also tried solutions from kde on wiki but it doesen't solved my problem. I also tried solutions from youtube...I tried other conkies, but i didn't know this thing in code.

It works, thank you again! It was quicker than i thought, and much simpler!

Last edited by firekage (2013-07-07 15:52:22)

Offline

#1082 2013-07-09 17:09:44

Riley88
Member
From: Canton Georgia USA
Registered: 2013-01-24
Posts: 60

Re: conky configs and screenshots!

Here is mine

http://i.imgur.com/e9eTpIP.png

http://sprunge.us/HWdg

Last edited by Riley88 (2013-07-09 17:14:11)


HARDWARE ASUS K55A-RBR6 LAPTOP
Arch Linux 64bit Awesome WM
My setup http://www.youtube.com/watch?v=8il5sR9fxBM

Offline

#1083 2013-07-18 11:15:49

kinleyd
Member
From: Thimphu, Bhutan
Registered: 2012-09-21
Posts: 113

Re: conky configs and screenshots!

A question regarding conky-cli:

I'm running conky-cli with output in urxvt and find that the normal $(font ...} tags don't work in conky-cli. What is the way to get font effects such as bold, as well as ${color} settings in this scenario?

Offline

#1084 2013-07-19 04:10:12

hobarrera
Member
From: CABA, Argentina
Registered: 2011-04-12
Posts: 319
Website

Re: conky configs and screenshots!

kinleyd wrote:

A question regarding conky-cli:

I'm running conky-cli with output in urxvt and find that the normal $(font ...} tags don't work in conky-cli. What is the way to get font effects such as bold, as well as ${color} settings in this scenario?

You'll have to print the same codes you use to render bold text in bash. Here's more info on how to do that.


GPG Key | AUR packages | github

caffeine-ng: Temporarily disable screensaver/sleeping with a simple click.

Offline

#1085 2013-07-19 06:33:24

kinleyd
Member
From: Thimphu, Bhutan
Registered: 2012-09-21
Posts: 113

Re: conky configs and screenshots!

Thank you @hobarrera - the link was very clear. You da man. smile

Last edited by kinleyd (2013-07-19 11:11:12)

Offline

#1086 2013-07-29 16:21:12

grandtheftjiujitsu
Member
From: Georgia, USA
Registered: 2013-07-27
Posts: 85
Website

Re: conky configs and screenshots!

Here's mine, I used "Conky 123" featured at noobslab for a base before modifying.

Original - http://www.noobslab.com/2012/11/install … linux.html
Mine (screenshot) - http://www.4shared.com/download/AsxtfJl … obslab.jpg

Config Files:
.conkyrc - http://www.4shared.com/file/dZKHBaNo/co … -arch.html
lua-rings - http://www.4shared.com/file/KyGzodv7/12 … -arch.html

*4shared should be working

Last edited by grandtheftjiujitsu (2014-01-28 21:10:26)

Offline

#1087 2013-07-29 16:45:26

hobarrera
Member
From: CABA, Argentina
Registered: 2011-04-12
Posts: 319
Website

Re: conky configs and screenshots!

grandtheftjiujitsu wrote:

Here's mine, I used "Conky 123" featured at noobslab for a base before modifying.

Original - http://www.noobslab.com/2012/11/install … linux.html
Mine (screenshot) - http://www.4shared.com/photo/8qJYuq7m/1 … -arch.html

Config Files:
.conkyrc - .conkyrc-123-noobslab-arch
lua-rings - 123-noobslab-arch.lua

The countdown before I can download the conky file gets stuff at 20secs, so couldn't look at conkyrc.

In any case; I wanted to know; what are the numbers on "enp5s0 Up:"? One is upload speed at the other? The number seems too low to be the total, and I'm just too curious! smile


GPG Key | AUR packages | github

caffeine-ng: Temporarily disable screensaver/sleeping with a simple click.

Offline

#1088 2013-07-30 01:42:07

grandtheftjiujitsu
Member
From: Georgia, USA
Registered: 2013-07-27
Posts: 85
Website

Re: conky configs and screenshots!

Links updated, maybe 4shared will cooperate later.  For both the wifi and ethernet sections its upseed / totalup and downspeed / totaldown.  I don't think I even had an ethernet cable hooked up when I took the shot, so must have been hungover from something earlier.

Offline

#1089 2013-08-01 05:26:24

Elv13
Member
Registered: 2010-01-17
Posts: 52

Re: conky configs and screenshots!

Mine from 2008 (before Conky added support for pixmaps)
8eh.png

Probably the stupidest Conky config ever written tongue source on github.com/Elv13

Offline

#1090 2013-08-01 08:52:20

archbawks
Banned
Registered: 2013-03-17
Posts: 75

Re: conky configs and screenshots!

^^ James Bond.

Offline

#1091 2013-08-02 04:50:40

kinleyd
Member
From: Thimphu, Bhutan
Registered: 2012-09-21
Posts: 113

Re: conky configs and screenshots!

Elv13 wrote:

Probably the stupidest Conky config ever written tongue source on github.com/Elv13

Au contraire. Looks pretty cool.

Offline

#1092 2013-09-24 17:11:58

rancherr
Member
From: Oslo
Registered: 2013-08-16
Posts: 5

Re: conky configs and screenshots!

Hi,
I am trying to setup my conky -> screen

As you can see, I added extra
- Battery
- Home
- Shared
objects in the bottom... but I can't get rings to appear around the values... like its for upper items...

This is my clock_rings.lua file:

--[[
Clock Rings by Linux Mint (2011) reEdited by despot77

This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
    lua_load ~/scripts/clock_rings.lua
    lua_draw_hook_pre clock_rings
    
Changelog:
+ v1.0 -- Original release (30.09.2009)
   v1.1p -- Jpope edit londonali1010 (05.10.2009)
*v 2011mint -- reEdit despot77 (18.02.2011)
]]

settings_table = {
    {
        -- Edit this table to customise your rings.
        -- You can create more rings simply by adding more elements to settings_table.
        -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
        name='time',
        -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
        arg='%I.%M',
        -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
        max=12,
        -- "bg_colour" is the colour of the base ring.
        bg_colour=0xffffff,
        -- "bg_alpha" is the alpha value of the base ring.
        bg_alpha=0.1,
        -- "fg_colour" is the colour of the indicator part of the ring.
        fg_colour=0x0066FF,
        -- "fg_alpha" is the alpha value of the indicator part of the ring.
        fg_alpha=0.2,
        -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
        x=100, y=150,
        -- "radius" is the radius of the ring.
        radius=50,
        -- "thickness" is the thickness of the ring, centred around the radius.
        thickness=5,
        -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
        start_angle=0,
        -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
        end_angle=360
    },
    {
        name='time',
        arg='%M.%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x0066FF,
        fg_alpha=0.4,
        x=100, y=150,
        radius=56,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x0066FF,
        fg_alpha=0.6,
        x=100, y=150,
        radius=62,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name='time',
        arg='%d',
        max=31,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=100, y=150,
        radius=70,
        thickness=5,
        start_angle=-90,
        end_angle=90
    },
    {
        name='time',
        arg='%m',
        max=12,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x0066FF,
        fg_alpha=1,
        x=100, y=150,
        radius=76,
        thickness=5,
        start_angle=-90,
        end_angle=90
    },
    {
        name='cpu0',
        arg='cpu0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=50, y=300,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
    {
        name='cpu1',
        arg='cpu1',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xff3300,
        fg_alpha=0.8,
        x=150, y=500,
        radius=20,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
    {
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=75, y=350,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
    {
        name='swapperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=100, y=400,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=125, y=450,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
       {
        name='fs_used_perc',
        arg='home',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=125, y=250,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },      
    {
        name='fs_used_perc',
        arg='shared',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=125, y=250,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
        {
        name='downspeedf',
        arg='eth0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=150, y=500,
        radius=25,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
        {
        name='upspeedf',
        arg='eth0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xff3300,
        fg_alpha=0.8,
        x=150, y=500,
        radius=20,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
    {
        name='battery_percent',
        arg='battery',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=125, y=450,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },

}

-- Use these settings to define the origin and extent of your clock.

clock_r=65

-- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.

clock_x=100
clock_y=150

show_seconds=true

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
    local w,h=conky_window.width,conky_window.height
    
    local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
    local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

    local angle_0=sa*(2*math.pi/360)-math.pi/2
    local angle_f=ea*(2*math.pi/360)-math.pi/2
    local t_arc=t*(angle_f-angle_0)

    -- Draw background ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,ring_w)
    cairo_stroke(cr)
    
    -- Draw indicator ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)        
end

function draw_clock_hands(cr,xc,yc)
    local secs,mins,hours,secs_arc,mins_arc,hours_arc
    local xh,yh,xm,ym,xs,ys
    
    secs=os.date("%S")    
    mins=os.date("%M")
    hours=os.date("%I")
        
    secs_arc=(2*math.pi/60)*secs
    mins_arc=(2*math.pi/60)*mins+secs_arc/60
    hours_arc=(2*math.pi/12)*hours+mins_arc/12
        
    -- Draw hour hand
    
    xh=xc+0.7*clock_r*math.sin(hours_arc)
    yh=yc-0.7*clock_r*math.cos(hours_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xh,yh)
    
    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
    cairo_set_line_width(cr,5)
    cairo_set_source_rgba(cr,1.0,1.0,1.0,1.0)
    cairo_stroke(cr)
    
    -- Draw minute hand
    
    xm=xc+clock_r*math.sin(mins_arc)
    ym=yc-clock_r*math.cos(mins_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xm,ym)
    
    cairo_set_line_width(cr,3)
    cairo_stroke(cr)
    
    -- Draw seconds hand
    
    if show_seconds then
        xs=xc+clock_r*math.sin(secs_arc)
        ys=yc-clock_r*math.cos(secs_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xs,ys)
    
        cairo_set_line_width(cr,1)
        cairo_stroke(cr)
    end
end

function conky_clock_rings()
    local function setup_rings(cr,pt)
        local str=''
        local value=0
        
        str=string.format('${%s %s}',pt['name'],pt['arg'])
        str=conky_parse(str)
        
        value=tonumber(str)
        pct=value/pt['max']
        
        draw_ring(cr,pct,pt)
    end
    
    -- Check that Conky has been running for at least 5s

    if conky_window==nil then return end
    local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
    
    local cr=cairo_create(cs)    
    
    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)
    
    if update_num>5 then
        for i in pairs(settings_table) do--[[
Clock Rings by Linux Mint (2011) reEdited by despot77

This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
    lua_load ~/scripts/clock_rings.lua
    lua_draw_hook_pre clock_rings
    
Changelog:
+ v1.0 -- Original release (30.09.2009)
   v1.1p -- Jpope edit londonali1010 (05.10.2009)
*v 2011mint -- reEdit despot77 (18.02.2011)
]]

settings_table = {
    {
        -- Edit this table to customise your rings.
        -- You can create more rings simply by adding more elements to settings_table.
        -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
        name='time',
        -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
        arg='%I.%M',
        -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
        max=12,
        -- "bg_colour" is the colour of the base ring.
        bg_colour=0xffffff,
        -- "bg_alpha" is the alpha value of the base ring.
        bg_alpha=0.1,
        -- "fg_colour" is the colour of the indicator part of the ring.
        fg_colour=0x0066FF,
        -- "fg_alpha" is the alpha value of the indicator part of the ring.
        fg_alpha=0.2,
        -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
        x=100, y=150,
        -- "radius" is the radius of the ring.
        radius=50,
        -- "thickness" is the thickness of the ring, centred around the radius.
        thickness=5,
        -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
        start_angle=0,
        -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
        end_angle=360
    },
    {
        name='time',
        arg='%M.%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x0066FF,
        fg_alpha=0.4,
        x=100, y=150,
        radius=56,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x0066FF,
        fg_alpha=0.6,
        x=100, y=150,
        radius=62,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name='time',
        arg='%d',
        max=31,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=100, y=150,
        radius=70,
        thickness=5,
        start_angle=-90,
        end_angle=90
    },
    {
        name='time',
        arg='%m',
        max=12,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x0066FF,
        fg_alpha=1,
        x=100, y=150,
        radius=76,
        thickness=5,
        start_angle=-90,
        end_angle=90
    },
    {
        name='cpu0',
        arg='cpu0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=50, y=300,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
    {
        name='cpu1',
        arg='cpu1',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xff3300,
        fg_alpha=0.8,
        x=150, y=500,
        radius=20,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
    {
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=75, y=350,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
    {
        name='swapperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=100, y=400,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=125, y=450,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
       {
        name='fs_used_perc',
        arg='home',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=125, y=250,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },      
    {
        name='fs_used_perc',
        arg='shared',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=125, y=250,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
        {
        name='downspeedf',
        arg='eth0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=150, y=500,
        radius=25,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
        {
        name='upspeedf',
        arg='eth0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xff3300,
        fg_alpha=0.8,
        x=150, y=500,
        radius=20,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
    {
        name='battery_percent',
        arg='battery',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x0066FF,
        fg_alpha=0.8,
        x=125, y=450,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },

}

-- Use these settings to define the origin and extent of your clock.

clock_r=65

-- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.

clock_x=100
clock_y=150

show_seconds=true

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
    local w,h=conky_window.width,conky_window.height
    
    local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
    local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

    local angle_0=sa*(2*math.pi/360)-math.pi/2
    local angle_f=ea*(2*math.pi/360)-math.pi/2
    local t_arc=t*(angle_f-angle_0)

    -- Draw background ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,ring_w)
    cairo_stroke(cr)
    
    -- Draw indicator ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)        
end

function draw_clock_hands(cr,xc,yc)
    local secs,mins,hours,secs_arc,mins_arc,hours_arc
    local xh,yh,xm,ym,xs,ys
    
    secs=os.date("%S")    
    mins=os.date("%M")
    hours=os.date("%I")
        
    secs_arc=(2*math.pi/60)*secs
    mins_arc=(2*math.pi/60)*mins+secs_arc/60
    hours_arc=(2*math.pi/12)*hours+mins_arc/12
        
    -- Draw hour hand
    
    xh=xc+0.7*clock_r*math.sin(hours_arc)
    yh=yc-0.7*clock_r*math.cos(hours_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xh,yh)
    
    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
    cairo_set_line_width(cr,5)
    cairo_set_source_rgba(cr,1.0,1.0,1.0,1.0)
    cairo_stroke(cr)
    
    -- Draw minute hand
    
    xm=xc+clock_r*math.sin(mins_arc)
    ym=yc-clock_r*math.cos(mins_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xm,ym)
    
    cairo_set_line_width(cr,3)
    cairo_stroke(cr)
    
    -- Draw seconds hand
    
    if show_seconds then
        xs=xc+clock_r*math.sin(secs_arc)
        ys=yc-clock_r*math.cos(secs_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xs,ys)
    
        cairo_set_line_width(cr,1)
        cairo_stroke(cr)
    end
end

function conky_clock_rings()
    local function setup_rings(cr,pt)
        local str=''
        local value=0
        
        str=string.format('${%s %s}',pt['name'],pt['arg'])
        str=conky_parse(str)
        
        value=tonumber(str)
        pct=value/pt['max']
        
        draw_ring(cr,pct,pt)
    end
    
    -- Check that Conky has been running for at least 5s

    if conky_window==nil then return end
    local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
    
    local cr=cairo_create(cs)    
    
    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)
    
    if update_num>5 then
        for i in pairs(settings_table) do
            setup_rings(cr,settings_table[i])
        end
    end
    
    draw_clock_hands(cr,clock_x,clock_y)
end
            setup_rings(cr,settings_table[i])
        end
    end
    
    draw_clock_hands(cr,clock_x,clock_y)
end

And my c.conkyrc:

# Conky settings #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

minimum_size 200 250
maximum_width 200

alignment tr
gap_x 35
gap_y 55

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5

uppercase no

temperature_unit celsius


default_color FFFFFF

# Lua Load  #
lua_load /home/leszek/.conky/clock_rings.lua
lua_draw_hook_pre clock_rings

TEXT
${voffset 8}${color 0066FF}${font caviar dreams:size=16}${time %A}${font}${voffset -8}${alignr 50}${color FFFFFF}${font caviar dreams:size=38}${time %e}${font}
${color FFFFFF}${voffset -30}${color FFFFFF}${font caviar dreams:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font caviar dreams:size=20}${time %Y}${font}${color 0066FF}${hr}
${voffset 140}${font caviar dreams:size=10}${alignr}Oslo${font}
${font caviar dreams:size=12}${color FFFFFF}${alignr}${weather shttp://weather.noaa.gov/pub/data/observations/metar/stations/ ENGM temperature temperature 30} °C${font}
${image ~/.conky/archlinux.png -p 58,115 -s 80x30}

${color FFFFFF}${goto 25}${voffset 35}${cpu cpu0}%
${color FFFFFF}${goto 25}${cpu cpu1}%
${color 0066FF}${goto 25}CPU
${color FFFFFF}${goto 45}${voffset 15}${memperc}%
${color 0066FF}${goto 45}RAM
${color FFFFFF}${goto 70}${voffset 23}${swapperc}%
${color 0066FF}${goto 70}Swap
${color FFFFFF}${goto 95}${voffset 23}${fs_used_perc /}%
${color 0066FF}${goto 95}Root
${color FFFFFF}${goto 125}${voffset 25}${downspeed wlp3s0}
${color FFFFFF}${goto 125}${upspeed wlp3s0}
${color 0066FF}${goto 125}Net
${color 0066FF}${goto 80}${wireless_essid wlp3s0}
${color 0066FF}${goto 80}${wireless_link_qual_perc wlp3s0}%
${color FFFFFF}${goto 25}${voffset 35}${battery_percent }%
${color 0066FF}${goto 25}Battery
${color FFFFFF}${goto 45}${voffset 23}${fs_used_perc /home}%
${color 0066FF}${goto 45}Home
${color FFFFFF}${goto 70}${voffset 25}${fs_used_perc /shared}%
${color 0066FF}${goto 70}Shared

${color FFFFFF}${font caviar dreams:size=8}Uptime: ${uptime_short}
${color FFFFFF}${font caviar dreams:size=8}Processes: ${processes}
${color FFFFFF}${font caviar dreams:size=8}Running: ${running_processes}

${color 0066FF}${font caviar dreams:size=8}${alignr}${nodename}
${color 0066FF}${font caviar dreams:size=8}${alignr}${pre_exec cat /etc/issue.net}  $machine
${color 0066FF}${font caviar dreams:size=8}${alignr}Kernel: ${kernel}

Offline

#1093 2013-09-24 18:31:32

grandtheftjiujitsu
Member
From: Georgia, USA
Registered: 2013-07-27
Posts: 85
Website

Re: conky configs and screenshots!

rancherr,

I had to install conk-lua and conky-lua-arch from the AUR, that fixed the issue for me.

Offline

#1094 2013-09-24 18:36:04

rancherr
Member
From: Oslo
Registered: 2013-08-16
Posts: 5

Re: conky configs and screenshots!

Hi,
I have installed both packages.
The thing is that only 3 new items I added does not show with rings...

Offline

#1095 2013-09-24 22:19:28

rancherr
Member
From: Oslo
Registered: 2013-08-16
Posts: 5

Re: conky configs and screenshots!

Watch " ' " signs in the code  smile
works now.

Offline

#1096 2013-10-09 16:20:37

tumas
Member
Registered: 2012-02-08
Posts: 89

Re: conky configs and screenshots!

Conky.jpg

Conky:  (based on conky-colors with a few tweaks, e.g. pacman-updates, weather and log)

######################
# - 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 Ubuntu:size=8
override_utf8_locale yes
text_buffer_size 2560

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

alignment top_right
gap_x 20
gap_y 40
minimum_size 182 1080
maximum_width 182
max_specials 1024

default_bar_size 60 8

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

default_color 212526

color0 1E1C1A
color1 1E1C1A
color2 1E1C1A
color3 1E1C1A

TEXT
${font Ubuntu:style=Bold:size=8}SYSTEM $stippled_hr${font}
##############
# - SYSTEM - #
##############
${color0}${voffset 6}${font OpenLogos:size=19}a${font}${color}${goto 32}${voffset -14}Kernel:  ${alignr}${color2}${kernel}${color}
${goto 32}Uptime: ${alignr}${color2}${uptime}${color}
# |--CPU
${voffset 2}${offset 2}${color0}${font Poky:size=14}P${font}${offset -19}${voffset 9}${offset 1}${cpubar cpu0 4,18}${color}${voffset -16}${goto 32}CPU1: ${font Ubuntu:style=Bold:size=8}${color1}${cpu cpu1}%${color}${alignr}${execi 8 sensors | grep "Core 0" | cut -c16-17}°C  ${font}${color2}${cpugraph cpu1 8,60 1E1C1A}${color}
${goto 32}CPU2: ${font Ubuntu:style=Bold:size=8}${color1}${cpu cpu2}%${color}${alignr}${execi 8 sensors | grep "Core 1" | cut -c16-17}°C  ${font}${color2}${cpugraph cpu2 8,60 1E1C1A}${color}
${goto 32}CPU3: ${font Ubuntu:style=Bold:size=8}${color1}${cpu cpu3}%${color}${alignr}${execi 8 sensors | grep "Core 2" | cut -c16-17}°C  ${font}${color2}${cpugraph cpu3 8,60 1E1C1A}${color}
${goto 32}CPU4: ${font Ubuntu:style=Bold:size=8}${color1}${cpu cpu4}%${color}${alignr}${execi 8 sensors | grep "Core 3" | cut -c16-17}°C  ${font}${color2}${cpugraph cpu4 8,60 1E1C1A}${color}
# |--MEM
${voffset 2}${offset 1}${color0}${font Poky:size=14}M${font}${color}${goto 32}${voffset -7}RAM: ${font Ubuntu:style=Bold:size=8}${color1}$memperc%${color}${alignr}${font}${color2}${membar 8,60 1E1C1A}${color}
${voffset 1}${offset 1}${voffset 2}${color0}${membar 4,18}${color}${goto 34}${voffset -2}Frei: ${font Ubuntu:style=Bold:size=8}${color2}${memeasyfree}${color}${alignr}${font} Belegt: ${font Ubuntu:style=Bold:size=8}${color2}${mem}${color}${font}
##############
# - TOP - #
##############
${voffset 6}${font Ubuntu:style=Bold:size=8}TOP $stippled_hr${font}
${offset 2}${color0}${voffset 2}${font Poky:size=17}a${font}${color}${voffset -12}${goto 36}${font Ubuntu:style=Bold:size=8}${color1}Prozess: ${goto 128}CPU:${goto 161}MEM:${color}${font}
${voffset 3}${goto 36}${color2}${top name 1}${color}${font Droid Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 1}${alignr }${top mem 1}${color}${font}
${voffset -1}${goto 36}${color2}${top name 2}${color}${font Droid Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 2}${alignr }${top mem 2}${color}${font}
${voffset -1}${goto 36}${color2}${top name 3}${color}${font Droid Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 3}${alignr }${top mem 3}${color}${font}
${voffset -1}${goto 36}${color2}${top name 4}${color}${font Droid Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 4}${alignr }${top mem 4}${color}${font}
${voffset -1}${goto 36}${color2}${top name 5}${color}${font Droid Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 5}${alignr }${top mem 5}${color}${font}
#############
# - CLOCK - #
#############
${voffset 6}${font Ubuntu:style=Bold:size=8}DATUM $stippled_hr${font}
${voffset -10}${alignc 46}${color2}${font Arial Black:size=30}${time %H:%M}${font}${color}
${voffset 6}${alignc}${time %d %B %Y}${voffset -6}
################
# - CALENDAR - #
################
${voffset -2}${color0}${font Poky:size=16}D${font}${voffset -8}${font Ubuntu:style=Bold:size=7}${offset -17}${voffset 4}${time %d}${font}${color}${voffset -1}${font Monospace:size=7}${execpi 300 DJS=`date +%_d`; cal  -m|sed '2,8!d'| sed '/./!d' | sed 's/^/${goto 42} /'| sed 's/$/ /' | sed 's/^/ /' | sed /" $DJS "/s/" $DJS "/" "'${font Ubuntu:style=Bold:size=8}${voffset -2}${color1} '"$DJS"'${color}${font Monospace:size=7}'" "/}${voffset -1}
####################
# - MEDIA PLAYER - #
####################
${voffset 6}${font Ubuntu:style=Bold:size=8}MUSIK PLAYER $stippled_hr${font}
${execpi 2 /usr/share/conkycolors/bin/conkyClementine -t /home/tumas/.conkycolors/templates/conkyPlayer.template}
##############
# - NVIDIA - #
##############
${voffset 4}${font Ubuntu:style=Bold:size=8}NVIDIA $stippled_hr${font}
${color0}${voffset -4}${font Poky:size=17}N${font}${color}${goto 32}${voffset -8}GPU Temp:${alignr}${font Ubuntu:style=Bold:size=8}${color1} ${exec nvidia-settings -q [gpu:0]/GPUCoreTemp | grep Attribute | cut -d ' ' -f 6 | cut -c 1-2}${font}${color}°C
${goto 32}GPU Clock:${alignr}${font Ubuntu:style=Bold:size=8}${color1} ${exec nvidia-settings -q [gpu:0]/GPU2DClockFreqs -t}${font}${color}MHz
${goto 32}Video RAM:${alignr}${font Ubuntu:style=Bold:size=8}${color1} ${exec nvidia-settings -q [gpu:0]/VideoRam -t}${font}${color}KiB
${goto 32}Driver Version:${alignr}${font Ubuntu:style=Bold:size=8}${color1} ${exec nvidia-settings -q [gpu:0]/NvidiaDriverVersion -t}${font}${color}
##########
# - HD - #
##########
${voffset 4}${font Ubuntu:style=Bold:size=8}HD $stippled_hr${font}
${execpi 30 /usr/share/conkycolors/bin/conkyHD1}
###############
# - NETWORK - #
###############
${voffset -4}${font Ubuntu:style=Bold:size=8}NETZWERK $stippled_hr${font}
# |--WLAN0
${if_up wlan0}
${voffset -5}${color0}${font Webdings:size=17}”${font}${color}${goto 32}${voffset -5}Up: ${font Ubuntu:style=Bold:size=8}${color1}${upspeed wlan0}${color}${font} ${alignr}${color2}${upspeedgraph wlan0 8,60 1E1C1A}${color}
${goto 32}Insgesamt: ${font Ubuntu:style=Bold:size=8}${color2}${totalup wlan0}${color}${font}
${voffset 2}${color0}${font Webdings:size=17}“${font}${color}${goto 32}${voffset -5}Down: ${font Ubuntu:style=Bold:size=8}${color1}${downspeed wlan0}${color}${font} ${alignr}${color2}${downspeedgraph wlan0 8,60 1E1C1A}${color}
${goto 32}Insgesamt: ${font Ubuntu:style=Bold:size=8}${color2}${totaldown wlan0}${color}${font}
${voffset 2}${color0}${font Poky:size=14}Y${font}${color}${goto 32}${voffset -2}sinal: ${font Ubuntu: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 Webdings:size=16}¬${font}${color}${goto 32}${voffset -8}Lokale IP: ${alignr}${color2}${addr wlan0}${color}
${goto 32}Öffentliche IP: ${alignr}${color2}${execi 10800 curl ifconfig.me}${color}
# |--ETH0
${else}${if_up enp4s1}
${voffset -5}${color0}${font Webdings:size=17}”${font}${color}${goto 32}${voffset -5}Up: ${font Ubuntu:style=Bold:size=8}${color1}${upspeed enp4s1}${color}${font} ${alignr}${color2}${upspeedgraph enp4s1 8,60 1E1C1A}${color}
${goto 32}Insgesamt: ${font Ubuntu:style=Bold:size=8}${color2}${totalup enp4s1}${color}${font}
${voffset 2}${color0}${font Webdings:size=17}“${font}${color}${goto 32}${voffset -5}Down: ${font Ubuntu:style=Bold:size=8}${color1}${downspeed enp4s1}${color}${font} ${alignr}${color2}${downspeedgraph enp4s1 8,60 1E1C1A}${color}
${goto 32}Insgesamt: ${font Ubuntu:style=Bold:size=8}${color2}${totaldown enp4s1}${color}${font}
${voffset 2}${color0}${font Webdings:size=16}¬${font}${color}${goto 32}${voffset -4}Lokale IP: ${alignr}${color2}${addr enp4s1}${color}
${goto 32}Öffentliche IP: ${alignr}${color2}${execi 10800 /home/tumas/.conkycolors/bin/conkyIP}${color}
# |--PPP0
${else}${if_up ppp0}
${voffset -5}${color0}${font Webdings:size=17}”${font}${color}${goto 32}${voffset -5}Up: ${font Ubuntu:style=Bold:size=8}${color1}${upspeed ppp0}${color}${font} ${alignr}${color2}${upspeedgraph ppp0 8,60 1E1C1A}${color}
${goto 32}Insgesamt: ${font Ubuntu:style=Bold:size=8}${color2}${totalup ppp0}${color}${font}
${voffset 2}${color0}${font Webdings:size=17}“${font}${color}${goto 32}${voffset -5}Down: ${font Ubuntu:style=Bold:size=8}${color1}${downspeed ppp0}${color}${font} ${alignr}${color2}${downspeedgraph ppp0 8,60 1E1C1A}${color}
${goto 32}Insgesamt: ${font Ubuntu:style=Bold:size=8}${color2}${totaldown ppp0}${color}${font}
${voffset 2}${color0}${font Webdings:size=16}¬${font}${color}${goto 32}${voffset -4}Lokale IP: ${alignr}${color2}${addr ppp0}${color}
${else}${voffset 4}${offset 4}${color0}${font Wingdings:size=20}N${font}${color}${voffset -6}${goto 32}Netzwerk nicht verfügbar${voffset 14}${endif}${endif}${endif}
###############
# - WETTER - #
###############
${voffset -4}${font Ubuntu:style=Bold:size=8}WETTER AKTUELL$stippled_hr${font}
${voffset 6}${goto 32}${font Ubuntu:style=Bold:size=8}${color1}München: ${color}${font}${alignr}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDM last_update}
${voffset 4}${goto 32}Temperatur: ${font Ubuntu:style=Bold:size=8}${alignr}${color1}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDM temperature}°C${font}${color}
${goto 32}Rel. Luftfeuchtigkeit: ${font Ubuntu:style=Bold:size=8}${alignr}${color1}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDM humidity}%${font}${color}
${goto 32}Luftdruck: ${font Ubuntu:style=Bold:size=8}${alignr}${color1}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDM pressure} hPa${font}${color}
${goto 32}Windstärke: ${font Ubuntu:style=Bold:size=8}${alignr}${color1}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDM wind_speed} km/h${font}${color}
${goto 32}Windrichtung: ${font Ubuntu:style=Bold:size=8}${alignr}${color1}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDM wind_dir} ${font}${color}
${goto 32}Wetter-Bedingung: ${font Ubuntu:style=Bold:size=8}${alignr}${color1}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDDM cloud_cover}${font}${color}
###############
# - LOG - #
###############
${voffset 4}${font Ubuntu:style=Bold:size=8}LOG $stippled_hr${font}
${voffset 6}${goto 32}TRIM: ${font Ubuntu:style=Bold:size=8}${color1}${alignr}${execi 30 tail -n1 /var/log/trim.log | cut -c4-28}${color}
###############
# - PACMAN - #
###############
${voffset 4}${font Ubuntu:style=Bold:size=8}NEWS $stippled_hr${font}
${voffset 6}${goto 32}${rss https://www.archlinux.org/feeds/news/ 60 item_titles 1}
${voffset 6}${font Ubuntu:style=Bold:size=8}PACMAN $stippled_hr${font}
${voffset 6}${execpi 3600 /home/tumas/.conkycolors/bin/paconky /tmp/paconky}

Last edited by tumas (2013-10-09 16:22:28)

Offline

#1097 2013-10-10 10:10:51

volmok
Member
Registered: 2013-04-24
Posts: 6

Re: conky configs and screenshots!

Adapted from several scripts found online:
lZitJuCs.jpg


########################################################################
# 
# Config for Conky
#
########################################################################

########################################################################
# Global Options

# Size and orientation
alignment top_left
gap_x 1930
gap_y 50
maximum_width 320
minimum_size 1280 50

# General
update_interval 2.0
double_buffer yes
draw_outline no
border_width 0
default_bar_size 0 5

# Window
own_window yes
own_window_type normal
own_window_argb_visual yes
own_window_colour 000000
own_window_transparent yes
own_window_hints undecorated below sticky skip_taskbar skip_pager

# Specific settings
cpu_avg_samples 2
net_avg_samples 2
no_buffers yes

# Output
use_spacer none
use_xft yes
xftfont Terminus:pixelsize=12
draw_shades no
uppercase no

# Colors (1 = Text; 2 = Data; 3 = heading)
color1 AAAAAA
color2 FFFFFF
color3 999999
color4 1793D0
color5 0050BF

# Templates (1 = Simple; 3 = Filesystem; 4 = Filesystem 2; 5 = Heading; 6 = Core temperature; 7 = Cpu load)
template1 ${color1}\1 ${color2}\2
template2 ${color1}\1 ${color2}\2/\3 (\4%)
template3 ${color1}\1: ${color2}${fs_used \1}/${fs_size \1} (${fs_used_perc \1}%) ${fs_bar \1}
template4 ${color1}\1: ${color2}$alignr${fs_free \1} ${fs_bar 5,120 \1}
template5 ${font Neuropolitical:bold:size=8}${color4}\1 ${font}${hr 2}
#template6 (core max_temp) e.g. (${template6 'Core\ 0' 60}
template6 ${execi 2 sensors | grep -A 0 \1 | cut -c18-19}${goto 100}${if_match ${execi 2 sensors | grep -A 0 \1 | cut -c18-21}<\2}${color}${execibar 2 sensors | grep -A 0 \1 | cut -c18-19}${endif}${if_match ${execi 2 sensors | grep -A 0 \1 | cut -c18-21}>=\2}${color red}${execibar 2 sensors | grep -A 0 \1 | cut -c18-19}${color}${endif}${goto 96}${color white} ${execbar echo 0}${color}
#template7 (cpu_no max_temp) e.g. (${template6 cpu1 60}
template7 ${cpu \1}${goto 100}${if_match ${cpu \1}<\2}${cpubar \1}${endif}${if_match ${cpu \1}>=\2}${color5}${cpubar \1}${color}${endif}${color}${goto 1}${color white}${goto 100}${execbar echo 0}${color}


########################################################################
# Output
TEXT
${image ~/conky/arch_logo_48.png -s 35x35} ${font Neuropolitical:pixelsize=25}${alignr}arch${color #1793d0}linux
${voffset -10}${goto 50}${color2}${font Neuropolitical:size=6}A simple, lightweight distribution 
${alignc}${offset -30}${color2}${font Neuropolitical:pixelsize=48}${time %H:%M}${font}
${alignc}${color  white}${font Neuropolitical:pixelsize=11}${time %A %d %B %Y}${font}

${template5 SYSTEM\ INFORMATION}
${color1}Hostname: ${color2}$nodename \
 | ${color1}Kernel: ${color2}$kernel
${color1}Time: ${color2}${time %Y-%m-%d %H:%M} \
 | ${color1}Uptime: ${color2}$uptime_short

${template5 CPU\ AND\ PROCESSES}
${color1}Usage: ${color2}${cpu}% \
 | ${color1}Freq: ${color2}$freq_g GHz \
| ${color1}Load: ${color2}$loadavg
Cpu  1(%): ${template7 cpu1 99}
Cpu  2(%): ${template7 cpu2 99}
Cpu  3(%): ${template7 cpu3 99}
Cpu  4(%): ${template7 cpu4 99}
Cpu  5(%): ${template7 cpu5 99}
Cpu  6(%): ${template7 cpu6 99}
Cpu  7(%): ${template7 cpu7 99}
Cpu  8(%): ${template7 cpu8 99}

Core 0(${iconv_start UTF-8 ISO_8859-1}°${iconv_stop}C): ${template6 'Core\ 0' 60}
Core 1(${iconv_start UTF-8 ISO_8859-1}°${iconv_stop}C): ${template6 'Core\ 1' 60}
Core 2(${iconv_start UTF-8 ISO_8859-1}°${iconv_stop}C): ${template6 'Core\ 2' 60}
Core 3(${iconv_start UTF-8 ISO_8859-1}°${iconv_stop}C): ${template6 'Core\ 3' 60}

${color1}Processes: ${color2}$processes \
 | ${color1}Running: ${color2}$running_processes
${color white}NAME${alignr}${offset -70}PID${alignr}${offset -38}CPU${alignr}MEM
${color #FFFFFF}${top name 1}${alignr}${offset -40}${top pid 1}${alignr}${offset -20}${top cpu 1}  ${alignr}${top mem 1}
${color #EFEFEF}${top name 2}${alignr}${offset -40}${top pid 2}${alignr}${offset -20}${top cpu 2}  ${alignr}${top mem 2}
${color #DFDFDF}${top name 3}${alignr}${offset -40}${top pid 3}${alignr}${offset -20}${top cpu 3}  ${alignr}${top mem 3}
${color #CFCFCF}${top name 4}${alignr}${offset -40}${top pid 4}${alignr}${offset -20}${top cpu 4}  ${alignr}${top mem 4}
${color #BFBFBF}${top name 5}${alignr}${offset -40}${top pid 5}${alignr}${offset -20}${top cpu 5}  ${alignr}${top mem 5}

${template5 MEMORY\ AND\ SWAP}
${color1}RAM:  ${color2}$mem/$memmax ($memperc%)
${if_match $memperc <85}${goto 5}${membar 5}${endif}${if_match $memperc >=85}${goto 5}${color red}${membar 5}${color}${endif}${goto 5}${execbar echo 0}
${color1}SWAP: ${color2}$swap/$swapmax ($swapperc%)
${swapbar 5}

${template5 NETWORK}
${if_gw}\
${template1 Network: Online}
${template1 DGW: $gw_ip\ ($gw_iface)} \
| ${template1 Nameserver: $nameserver}
\
${if_up usb0}
${color1}Interface:${color2} usb0 \
| ${color1}IP-Address:${color2} ${addr usb0}
${color1}Speed:${color2} Down: ${downspeedf usb0} / Up: ${upspeedf usb0}
${downspeedgraph usb0 20,150 000000 FFFFFF} ${alignr}${color #CFCFCF}\
${upspeedgraph usb0 20,150 000000 CFCFCF}
${endif}\
\
${if_up br0}
${color1}Interface:${color2} br0 \
| ${color1}IP-Address:${color2} ${addr br0}
${color1}Speed:${color2} Down: ${downspeedf br0} / Up: ${upspeedf br0}
${downspeedgraph br0 20,150 000000 FFFFFF} ${alignr}${color #CFCFCF}\
${upspeedgraph br0 20,150 000000 CFCFCF}
${endif}\
\
${if_up wlan0}
${template1 Interface: wlan0} \
| ${color1}IP-Address:${color2} ${addr wlan0}
${color1}ESSID:${color2} ${wireless_essid wlan0} \
| ${color1}Quality:${color2} ${wireless_link_qual_perc wlan0}%
${color1}Speed:${color2} Down: ${downspeedf wlan0} / Up: ${upspeedf wlan0}
${downspeedgraph wlan0 20,150 000000 FFFFFF} ${alignr}${color #CFCFCF}\
${upspeedgraph wlan0 20,150 000000 CFCFCF}
${endif} \
${else}\
${template1 Network: Offline}
${endif}

${font Neuropolitical:bold:size=8}${color4}${exec nvidia-smi -a | grep Product\ Name | awk -F':' '{$2=substr($2,2,length($2)); print $2}'}${font} ${hr 2}${color}
 Driver Version: ${color2}${exec nvidia-settings -query NvidiaDriverVersion | grep v-arch | awk '{print $4}'}${color3}
 Freq ${color2}${execi 10 nvidia-settings -query GPUCurrentClockFreqs | grep v-arch | awk -F':' 'NR==1{ print $3}' | awk -F',' '{$1=substr($1,2,length($1)); print $1}'} Mhz ${color3}@ \
 ${color2}${execi 2 nvidia-settings -query GPUCoreTemp | grep v-arch | awk 'NR==1 {$0=substr($0,1,length($0)-1); print $4}'}\
 ${iconv_start UTF-8 ISO_8859-1}° ${iconv_stop}C ${color3}
 Fan Speed ${color2}${execi 2 nvidia-smi -a | grep Fan\ Speed | awk -F':' '{print $2}'}${color3}
 Memory ${color2}${execi 10 nvidia-smi -q -d MEMORY | grep Used | awk -F':' '{print $2}'}${color3} \
| ${color2}${execi 10 nvidia-smi -q -d MEMORY | grep Total | awk -F':' '{print $2}'}${color3} \
| ${color2}${execi 10 nvidia-smi -q -d MEMORY | grep Free | awk -F':' '{print $2}'}${color3}
 Memory Freq ${color2}${execi 10 nvidia-settings -query GPUCurrentClockFreqs | grep v-arch | awk -F':' 'NR==1{ print $3}' | awk -F',' '{$2=substr($2,1,length($2)-1); print $2}'} Mhz${color3}

${template5 FILESYSTEMS}
${template4 /}
${template4 /home}
${template4 /mnt/storage}
${template4 /mnt/games}
${template4 /tmp}

Edit:
- the CPU load bars will turn blue when at or over 99%
- the Core temperatures will turn red when at or above 60 deg Celsius
- there is no lua used (I found it to be slow on start and some things do not work for me, like rings)

V.

Last edited by volmok (2013-10-10 10:14:22)

Offline

#1098 2013-10-10 10:36:30

TeoBigusDickus
Member
From: /Greece/Kastoria
Registered: 2010-05-29
Posts: 122

Re: conky configs and screenshots!

pvXC3Cts.jpg

Specs described here.


Please make Autocad Civil 3d and Archicad work on Linux! Please make Autocad Civil 3d and Archicad work on Linux! Please make Autocad Civil 3d and Archicad work on Linux! Please make Autocad Civil 3d and Archicad work on Linux! Please make Autocad Civil 3d and Archicad work on Linux! Please make Autocad Civil 3d and Archicad work on Linux! Please make Autocad Civil 3d and Archicad work on Linux!

Offline

#1099 2013-10-10 15:56:33

Jellicent
Member
From: Berlin
Registered: 2013-09-13
Posts: 187

Re: conky configs and screenshots!

After a few days of thinking I decided I could at least use a little bit of information.
Rest of the 1920 pixels are used for tint, that's why it's so tiny. smile

20131010-174916-PCFH0fEZ.png

Offline

#1100 2013-10-11 09:53:01

mattisan
Member
Registered: 2011-09-12
Posts: 8

Re: conky configs and screenshots!

openbox desktop + conky:

ykkSGkf.png

conky left:

background yes

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

use_xft yes

xftfont Consolas:size=11

own_window_transparent yes
xftalpha 0.8

update_interval 1
own_window yes
own_window_type override

double_buffer yes

draw_shades no

draw_outline no

draw_borders no

stippled_borders 10

border_width 1

default_color white
default_shade_color white
default_outline_color white

minimum_size 410 10

gap_x 13
gap_y 140
alignment top_left

use_spacer none

no_buffers yes

uppercase no

TEXT
Date & Time ${hr}

${color #999999}${execpi 60 DJS=`date +%_d`; cal | sed s/"\(^\|[^0-9]\)$DJS"'\b'/'\1${color}'"$DJS"'${color #999999}'/}

${color}${font Consolas:size=48}${offset 280}${voffset -106}${time %H}${offset 1}${voffset -34}${font Consolas:size=11}${time :%M:%S}
${offset 354}Hours




${color}Memory $hr

RAM Usage:$mem/$memmax - $memperc% $membar
SWAP Usage: $swap/$swapmax - $swapperc% $swapbar

${color}Storage $hr

(/): ${fs_used /}/${fs_size /} ${fs_bar /}

${font Consolas:size=11}Network $hr

Wired (enp0s25)$alignr}IP address: ${addr enp0s25}
Down: ${alignr}${downspeed enp0s25}
${color black}${downspeedgraph enp0s25 999999 CC0000}
${color}Up: ${alignr}${upspeed enp0s25}
${color black}${upspeedgraph enp0s25 999999 CC0000}
${color}Wifi (wlp3s0)${alignr}IP address: ${addr wlp3s0}
SSID: ${wireless_essid wlp3s0} ${alignr}Signal: ${wireless_link_qual_perc wlp3s0}%
Down: ${alignr}${downspeed wlp3s0}
${color black}${downspeedgraph wlp3s0 999999 CC0000}
${color}Up: ${alignr}${upspeed wlp3s0}
${color black}${upspeedgraph wlp3s0 999999 CC0000}

${color}Default Route ${hr}

Interface: ${gw_iface} ${alignr}Gateway IP: ${gw_ip}
Nameserver: ${nameserver}

conky right:

background yes

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

use_xft yes

xftfont Consolas:size=11

own_window_transparent yes
xftalpha 0.8

update_interval 1
own_window yes
own_window_type override

double_buffer yes

draw_shades no

draw_outline no

draw_borders no

stippled_borders 10

border_width 1

default_color white
default_shade_color white
default_outline_color white

minimum_size 410 10

gap_x 13
gap_y 140
alignment top_right

use_spacer none

no_buffers yes

uppercase no

TEXT
System ${hr}

$nodename - $sysname $kernel on $machine
Load: $loadavg ${alignr}Uptime: $uptime
AC Power: ${acpiacadapter}
Battery Charge: ${battery_percent BAT0}% ${battery_bar BAT0}

Processor $hr

Total Usage: ${cpu cpu0}% ${cpubar}

Core 1 Usage: ${cpu cpu1}% / ${freq 1} MHz 
${color black}${cpugraph cpu1 999999 CC0000 -t}
${color}Core 2 Usage: ${cpu cpu2}% / ${freq 2} MHz
${color black}${cpugraph cpu2 999999 CC0000 -t}
${color}Core 3 Usage: ${cpu cpu3}% / ${freq 3} MHz
${color black}${cpugraph cpu3 999999 CC0000 -t}
${color}Core 4 Usage: ${cpu cpu4}% / ${freq 4} MHz
${color black}${cpugraph cpu4 999999 CC0000 -t}

${color}Processes ${hr}

Name ${offset 170}PID ${offset 50}CPU% ${alignr}MEM%
 ${color}${top name 1}  ${offset 42}${top pid 1} ${offset 34}${top cpu 1} ${alignr}${top mem 1}
 ${color #999999}${top name 2}  ${offset 42}${top pid 2} ${offset 34}${top cpu 2} ${alignr}${top mem 2}
 ${color #999999}${top name 3}  ${offset 42}${top pid 3} ${offset 34}${top cpu 3} ${alignr}${top mem 3}
 ${color #999999}${top name 4}  ${offset 42}${top pid 4} ${offset 34}${top cpu 4} ${alignr}${top mem 4}
 ${color #999999}${top name 5}  ${offset 42}${top pid 5} ${offset 34}${top cpu 5} ${alignr}${top mem 5}

${color lightgrey}Mem usage
 ${color}${top_mem name 1}  ${offset 42}${top_mem pid 1} ${offset 34}${top_mem cpu 1} ${alignr}${top_mem mem 1}
 ${color #999999}${top_mem name 2}  ${offset 42}${top_mem pid 2} ${offset 34}${top_mem cpu 2} ${alignr}${top_mem mem 2}
 ${color #999999}${top_mem name 3}  ${offset 42}${top_mem pid 3} ${offset 34}${top_mem cpu 3} ${alignr}${top_mem mem 3}
 ${color #999999}${top_mem name 4}  ${offset 42}${top_mem pid 4} ${offset 34}${top_mem cpu 4} ${alignr}${top_mem mem 4}
 ${color #999999}${top_mem name 5}  ${offset 42}${top_mem pid 5} ${offset 34}${top_mem cpu 5} ${alignr}${top_mem mem 5}

Offline

Board footer

Powered by FluxBB