You are not logged in.

#1101 2013-10-21 07:02:49

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: conky configs and screenshots!

Made a mechanical/steampunk style clock for conky.
YouTube video: http://www.youtube.com/watch?v=WfM8ReK80Rk
here it is on the desktop gVaFUt1s.png
Definitely one of the oversized lot tongue

You can download it here: https://github.com/easysid/conky-mechanical-clock

The link to post on Crunchbang conky thread: http://crunchbang.org/forums/viewtopic. … 32#p339232

Offline

#1102 2013-11-04 20:59:48

liquibyte
Member
Registered: 2007-11-11
Posts: 91
Website

Re: conky configs and screenshots!

Thanks to this,

-- mod edit: read the rules and only post thumbnails https://bbs.archlinux.org/viewtopic.php?id=61754  [jwr] --

I'm removing this post.

Two pages back there is an image that's over 700 pixels tall, miine was 452x451.  In addition, four pages back there is an image that's 406x850 pixels which I notice no ones gotten a "read the rules" message on.  The page before that there's an image that's 800x468. You're being nitpicky and I could give a rats ass if you're an admin or not.  Been here a long time and the only explaination I can come up with is you have a problem with me personally.  You can apologize to me and I might put my code back up.

Last edited by liquibyte (2013-11-04 22:41:41)

Offline

#1103 2013-11-19 22:39:44

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: conky configs and screenshots!

A simple infobar at the top used in an Openbox session:
7Lt3mBAl.png

~ $ cat .conkyrc 
background yes
use_xft yes
xftfont Noto Sans:size=10
xftalpha 1
update_interval 5
total_run_times 0
# Run in own window
own_window yes
own_window_transparent yes
own_window_type desktop
# Don't show in window lists and on all desktops
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour white
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color black
alignment tr
maximum_width 1280
minimum_size 1280
gap_x 0
gap_y 2
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

##############################################
#  Output
##############################################

TEXT
  ${exec basename $(ps -efa | grep dropbox |grep -v 'grep ' | awk '{print $NF}')} \
  ${exec basename $(ps -efa | grep zotero |grep -v 'grep ' | awk '{print $NF}')} \
  ${exec basename $(ps -efa | grep thunderbird |grep -v 'grep ' | awk '{print $NF}')} \
  $alignr ${battery BAT0} \
  SSID: ${wireless_essid wls1} \
  Volume: ${exec amixer -c 0 get Master | grep Mono: | awk '{print $(NF-2)}'} ${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'} \
  Keyboard: ${exec setxkbmap -print | awk -F"+" '/xkb_symbols/ {print $2}'} \
  ${time %H:%M} \
  ${time %a %d %b %Y} 

Last edited by orschiro (2013-11-20 07:45:31)

Offline

#1104 2013-11-19 23:42:18

okubax
Member
From: Kent, UK.
Registered: 2010-04-24
Posts: 210
Website

Re: conky configs and screenshots!

Conky + lua

y7pCuNA.png

.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 celsius

# XFCE lightdm backround issue
own_window_argb_visual yes
own_window_argb_value 0

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

border_inner_margin 0
border_outer_margin 0

minimum_size 520 600
maximum_width 520

alignment tr
gap_x -20
gap_y 100 

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

#default_color gray
default_shade_color red
default_outline_color green

# Text settings #
use_xft yes
override_utf8_locale yes
xftfont Play:normal:size=8
xftalpha 0.9
uppercase no

default_color 333333
color0 b2ff34
color1 efefef
color2 1994D1
#color3 1994D1 

# Lua Load  ##${voffset 750}
lua_load ~/.conky/rings-v1.2.1.lua
#lua_draw_hook_pre ring_stats
lua_draw_hook_pre conky_main

TEXT
${font Play:normal:size=8}${voffset 16}${color1}${goto 106}${freq_g cpu0} Ghz${alignr 330}${acpitemp} °C
${font Play:normal:size=8}${voffset 0}${goto 120}${color1}CPU 1 ${alignr 330}${color1}${cpu cpu0}%
${font Play:normal:size=8}${voffset 2}${goto 120}${color1}CPU 2${alignr 330}${color1}${cpu cpu1}%
${font Play:normal:size=8}${voffset 2}${goto 120}${color1}CPU 3${alignr 330}${color1}${cpu cpu2}%
${font Play:normal:size=8}${voffset 2}${goto 120}${color1}CPU 4${alignr 330}${color1}${cpu cpu3}%
${goto 50}${voffset 16}${font Play:normal:size=8}${color1}${top name 1}${alignr 306}${top cpu 1}%
${goto 50}${font Play:normal:size=8}${color1}${top name 2}${alignr 306}${top cpu 2}%
${goto 50}${font Play:normal:size=8}${color1}${top name 3}${alignr 306}${top cpu 3}%
${font Michroma:size=10}${color0}${goto 80}${voffset 4}CPU 
${font Michroma:size=10}${color0}${goto 394}${voffset 48}MEMORY
${goto 324}${voffset -2}${font Play:normal:size=8}${color1}${top_mem name 1}${alignr 40}${top_mem mem 1}%
${goto 324}${font Play:normal:size=8}${color1}${top_mem name 2}${alignr 40}${top_mem mem 2}%
${goto 324}${font Play:normal:size=8}${color1}${top_mem name 3}${alignr 40}${top_mem mem 3}%
${font Play:normal:size=8}${voffset 12}${goto 348}${color1}SWAP${alignr 40}${color1}${swap} / ${color1}${swapmax}
${font Play:normal:size=8}${voffset 2}${goto 348}${color1}RAM ${alignr 40}${color1}${mem} / ${color1}${memmax}
${font Play:normal:size=8}${goto 80}${voffset -68}Root${color1}${alignr 310}${fs_used /} / ${fs_size /}
${font Play:normal:size=8}${goto 80}${voffset 0}Var${alignr 310}${color1}${fs_used /var} / ${fs_size /var}
${font Play:normal:size=8}${goto 80}${voffset 0}Home${alignr 310}${color1}${fs_used /home} / ${fs_size /home}
${font Michroma:size=10}${color0}${goto 66}${voffset 10}HARD  DRIVE
${font Michroma:size=10}${color0}${voffset 34}${goto 324}INTERNET  INFO
# EDITION FINIR WLAN
${if_existing /proc/net/route wlo1}${font Play:normal:size=8}${color1}${alignr 54}${voffset -8}WiFi  ${color1}${wireless_essid wlo1}
${font Play:normal:size=8}${color1}${goto 298}${voffset 2}Up${goto 370}${color1}${totalup wlo1} / ${color1}${upspeed wlo1}
${font Play:normal:size=8}${goto 298}${color1}Down${goto 370}${color1}${totaldown wlo1} / ${color1}${downspeed wlo1}
${font Play:bold:size=8}${goto 300}${voffset 2}Local IP${goto 370}${addr wlo1}
${font Play:bold:size=8}${goto 300}${voffset 1}Public IP${goto 370}${execi 3600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
${font Michroma:size=9}${goto 90}${voffset -42}${color0}${time %a} ${color0}${time %x}
${font Michroma:size=18}${goto 108}${color1}${voffset -4}${time %H}:${time %M}
${font Michroma:size=8}${color0}${goto 296}${voffset 20}BATTERY
${font Play:size=8}${color0}${goto 278}${voffset 9}${color1}${battery_percent BAT0}%
# |--ETH0
${else}${if_existing /proc/net/route eth0}${font Play:normal:size=8}${color1}${goto 298}${voffset 6}Up${goto 370}${color1}${totalup eth0} / ${color1}${upspeed eth0}
${font Play:normal:size=8}${goto 298}${color1}Down${goto 370}${color1}${totaldown eth0} / ${color1}${downspeed eth0}
${font Play:bold:size=8}${goto 300}${voffset 2}Local IP${goto 370}${addr eth0}
${font Play:bold:size=8}${goto 300}${voffset 1}Public IP${goto 370}${execi 3600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
${font Michroma:size=9}${alignr 298}${voffset -42}${color0}${time %a} ${color0}${time %x}
${font Michroma:size=18}${goto 108}${color1}${voffset -4}${time %H}:${time %M}
${font Michroma:size=8}${color0}${goto 296}${voffset 20}BATTERY
${font Play:size=8}${color0}${goto 278}${voffset 8}${color1}${battery_percent BAT0}%${endif}${endif}
${font Play:normal:size=8}${goto 180}Mail${color1}${alignr 110}${execpi 300 python3 ~/bin/gmail.py}
${font Play:normal:size=8}${goto 180}Weather${color1}${alignr 100}${execi 300 ~/bin/weather_simple "EUR|UK|UK241|LONDON"}
${font Play:normal:size=8}${goto 180}Uptime${color1}${alignr 100}${uptime_short}
${font Michroma:bold:size=11}${color0}${voffset 30}${alignr 100}${nodename}   ${kernel}

.lua

--[[
Ring Meters by londonali1010 (2009)

This script draws percentage meters as rings. It is fully customisable; all options are described in the 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 near the end of the script 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/rings-v1.2.1.lua
	lua_draw_hook_pre ring_stats
	
Changelog:
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
+ v1.0 -- Original release (28.09.2009)

        arg=conky_parse("${if_up wlan0}wlan0${else}eth0${endif}"),
        fg_colour=0xf0651f,
        fg_colour=conky_parse("${if_up wlan0}wlan0${else}eth0${endif}"),
        conky_parse("${cpu}")
        name=conky_parse("${acpitemp}"),
]]

-- A TESTER
--set alarm value, this is the value at which bar color will change
--alarm_value=80
----set alarm bar color, 1,0,0,1 = red fully opaque
--ar,ag,ab,aa=1,0,0,1

-- couleurs 1
-- AAF334
-- f0651f
-- f01f42
-- couleurs 2 + flashy
-- 008cff
-- ff7200
-- ff000d

--normal_temp="0xAAF334"
--warn_temp="0xf0651f"
--crit_temp="0xf01f42"
-- Un mélange des deux
normal="0xAAF334"
warn="0xff7200"
crit="0xff000d"

-- seulement quand fond nécessaire
corner_r=35
bg_colour=0x333333
bg_alpha=0.2


settings_table = {
    
    {
        name='acpitemp',
        arg='',
        max=110,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=200, y=120,
        radius=97,
        thickness=4,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu0',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=200, y=120,
        radius=86,
        thickness=13,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu1',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.7,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=200, y=120,
        radius=71,
        thickness=12,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu2',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=200, y=120,
        radius=57,
        thickness=11,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu3',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.5,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=200, y=120,
        radius=44,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=340, y=234,
        radius=60,
        thickness=15,
        start_angle=180,
        end_angle=420
    },
    {
        name='swapperc',
        arg='',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.4,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=340, y=234,
        radius=45,
        thickness=10,
        start_angle=180,
        end_angle=420
    },
    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=220, y=280,
        radius=40,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='fs_used_perc',
        arg='/var',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=220, y=280,
        radius=28,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='fs_used_perc',
        arg='/home',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.4,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=220, y=280,
        radius=16,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='downspeedf',
        arg='',
        max=2000,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=290, y=346,
        radius=30,
        thickness=12,
        start_angle=180,
        end_angle=420
    },
    {
        name='upspeedf',
        arg='',
        max=200,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=290, y=346,
        radius=18,
        thickness=8,
        start_angle=180,
        end_angle=420
    },
    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=230, y=410,
        radius=30,
        thickness=12,
        start_angle=0,
        end_angle=240
    },
    {
        name='time',
        arg='%M',
        max=60,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=230, y=410,
        radius=18,
        thickness=8,
        start_angle=0,
        end_angle=240
    },
    {
        name='time',
        arg='%H',
        max=24,
        bg_colour=0xdddddd,
        bg_alpha=0.4,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=230, y=410,
        radius=10,
        thickness=4,
        start_angle=0,
        end_angle=240
    },
    {
        name='battery_percent',
        arg='BAT0',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=0xAAF334,
        fg_alpha=0.8,
        x=274, y=464,
        radius=18,
        thickness=10,
        start_angle=180,
        end_angle=420
    },
    {
        name='',
        arg='',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=0xAAF334,
        fg_alpha=0.6,
        x=274, y=464,
        radius=3,
        thickness=13,
        start_angle=0,
        end_angle=360
    },
}

require 'cairo'

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

function draw_ring(cr,t,pt)

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

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

	-- Draw background ring

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

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

function conky_ring_stats()
	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)
		if value == nil then value = 0 end
		pct=value/pt['max']
		
		draw_ring(cr,pct,pt)
	end

	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
                display_temp=temp_watch()
		setup_rings(cr,settings_table[i])
	    end
	end
   cairo_surface_destroy(cs)
  cairo_destroy(cr)
end

-- Contrôle de l'espace disque
function disk_watch()

    warn_disk=93
    crit_disk=98

    -- poser une boucle plus tard... pas simple

    disk=tonumber(conky_parse("${fs_used_perc /}"))

    if disk<warn_disk then
        settings_table[8]['fg_colour']=normal
    elseif disk<crit_disk then
        settings_table[8]['fg_colour']=warn
    else
        settings_table[8]['fg_colour']=crit
    end

    disk=tonumber(conky_parse("${fs_used_perc /home}"))

    if disk<warn_disk then
        settings_table[9]['fg_colour']=normal
    elseif disk<crit_disk then
        settings_table[9]['fg_colour']=warn
    else
        settings_table[9]['fg_colour']=crit
    end

    disk=tonumber(conky_parse("${fs_used_perc /usr}"))

    if disk<warn_disk then
        settings_table[10]['fg_colour']=normal
    elseif disk<crit_disk then
        settings_table[10]['fg_colour']=warn
    else
        settings_table[10]['fg_colour']=crit
    end
end

-- Contrôle de la température
function temp_watch()

    warn_value=70
    crit_value=80

    temperature=tonumber(conky_parse("${acpitemp}"))

    if temperature<warn_value then
        settings_table[1]['fg_colour']=normal
    elseif temperature<crit_value then
        settings_table[1]['fg_colour']=warn
    else
        settings_table[1]['fg_colour']=crit
    end
end

-- Contrôle de l'interface active
function iface_watch()

    iface=conky_parse("${if_existing /proc/net/route eth0}eth0${else}wlan0${endif}")

    settings_table[11]['arg']=iface
    settings_table[12]['arg']=iface
end

function conky_draw_bg()
    if conky_window==nil then return end
    local w=conky_window.width
    local h=conky_window.height
    local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
    cr=cairo_create(cs)
    
    cairo_move_to(cr,corner_r,0)
    cairo_line_to(cr,w-corner_r,0)
    cairo_curve_to(cr,w,0,w,0,w,corner_r)
    cairo_line_to(cr,w,h-corner_r)
    cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
    cairo_line_to(cr,corner_r,h)
    cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
    cairo_line_to(cr,0,corner_r)
    cairo_curve_to(cr,0,0,0,0,corner_r,0)
    cairo_close_path(cr)
    
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
    cairo_fill(cr)
end


function conky_main()
    temp_watch()
    disk_watch()
    iface_watch()
    conky_ring_stats()
-- quand fond nécessaire
--    conky_draw_bg()
end

Offline

#1105 2013-11-24 10:12:21

prabuselva
Member
Registered: 2013-08-05
Posts: 22

Re: conky configs and screenshots!

My Simple Conky setup in xfce desktop. It fulfils my needs as of now. Its a little modification from the standard gotham theme. The config file is available in the link
MyConkyConfig and full size screenshot is at FullSizeLink

arch bbcode conky

Last edited by prabuselva (2013-11-24 11:48:00)

Offline

#1106 2013-11-24 14:35:01

hobarrera
Member
From: The Netherlands
Registered: 2011-04-12
Posts: 355
Website

Re: conky configs and screenshots!

prabuselva wrote:

My Simple Conky setup in xfce desktop. It fulfils my needs as of now. Its a little modification from the standard gotham theme. The config file is available in the link
MyConkyConfig and full size screenshot is at FullSizeLink

http://farm4.staticflickr.com/3739/1102 … 08_n_d.jpg

That's pretty good looking and displays just what I'd want. My only issue is the kerning on the time, and the date's number's aligment. Otherwise, it's perfect! <3

Offline

#1107 2013-11-24 20:41:33

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: conky configs and screenshots!

okubax wrote:

Beautiful!


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#1108 2013-11-25 08:57:12

prabuselva
Member
Registered: 2013-08-05
Posts: 22

Re: conky configs and screenshots!

hobarrera wrote:

That's pretty good looking and displays just what I'd want. My only issue is the kerning on the time, and the date's number's aligment. Otherwise, it's perfect! <3

Thanks for the comment hobarrera. Kerning on the time is because of the chosen font. Ofcourse, Changing the font will reduce the kerning space. But I'd like it to be that way

Last edited by prabuselva (2013-11-25 08:57:48)

Offline

#1109 2013-11-25 13:48:29

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: conky configs and screenshots!

A little conky project I have been working on
it's not perfect, but it's all conky, no lua, no json, except the top bar!
YouTube video: http://www.youtube.com/watch?v=yicGp-Imu4s&

Sorry about the bad quality, I created it with;

ffmpeg -f x11grab -r 25 -s 1920x1080 -i :0.0 /home/mark/recdesk/conky.mpg

Offline

#1110 2013-12-02 01:43:26

Nocta
Member
From: Argentina
Registered: 2010-11-26
Posts: 9

Re: conky configs and screenshots!

Preview:
ZKXhLXt.png

Conkyrc: http://pastebin.com/7UJxvP8V

It's based on someone's config. I just changed a couple of things like battery status, free space, shortcuts, etc.


-- mod edit: read the rules and only post thumbnails https://bbs.archlinux.org/viewtopic.php?id=61754  [jwr] --

Last edited by Nocta (2013-12-02 01:53:23)

Offline

#1111 2013-12-02 02:24:35

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: conky configs and screenshots!

@Nocta, just so you know, you don't need to hide the things you redacted from your screen shot.  The IP address and gateway shown appears to be the LAN IP that is behind the NAT and DNS is not really something you need to keep secret either.  It is the external IP that you might not want to give out.  But that doesn't even seem to appear in the config you have there.

Offline

#1112 2013-12-02 04:11:14

Nocta
Member
From: Argentina
Registered: 2010-11-26
Posts: 9

Re: conky configs and screenshots!

Thanks for pointing that out. It's just that I'm new on the internet and it seems so cool when other people do it.

Last edited by Nocta (2013-12-02 04:11:26)

Offline

#1113 2013-12-09 00:03:01

thedeli
Member
Registered: 2010-02-14
Posts: 59

Re: conky configs and screenshots!

Sorry. solved...

Last edited by thedeli (2013-12-09 00:05:40)

Offline

#1114 2013-12-10 08:23:39

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: conky configs and screenshots!

To okubax:
What's the location of the .lua file?

Offline

#1115 2013-12-10 15:59:04

thedeli
Member
Registered: 2010-02-14
Posts: 59

Re: conky configs and screenshots!

Llama wrote:

To okubax:
What's the location of the .lua file?

it is written in the .conkyrc file :

# Lua Load  ##${voffset 750}
lua_load ~/.conky/rings-v1.2.1.lua

Offline

#1116 2013-12-11 06:14:17

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: conky configs and screenshots!

Thanks, thedeli! Are there places where one can get some selection of these solutions?

Offline

#1117 2013-12-15 06:19:43

Proinsias
Member
From: Glasgow
Registered: 2013-08-19
Posts: 121

Re: conky configs and screenshots!

Nice okubox, couldn't resist it:
IqNpwLqs.jpg
http://imgur.com/cEoZ42o

A work in progress but thank you for a nice starting point.

Last edited by Proinsias (2013-12-15 06:22:48)

Offline

#1118 2013-12-23 18:32:35

cheamh
Member
From: Ottawa
Registered: 2012-01-20
Posts: 23

Re: conky configs and screenshots!

Here is mine. I wanted to keep it simple yet have the information that I need. The one on the right is based entirely on Brok9n's post on page 42 in this thread. The weather one is TeoBigusGeekus' script. Thanks to the both of yous!

ThumbScreen.png


"I'm not competent to judge. But no doubt he was a great man."...Paul Erdős

Offline

#1119 2013-12-31 00:59:57

rin
Member
Registered: 2013-12-24
Posts: 31

Re: conky configs and screenshots!

Hey guys. I skimmed this thread and threw this setup together in a couple of hours.

I went for a black and red theme, because my laptop has a few red buttons, and it looks really cool when you can see the desktop and laptop at the same time!

9nS6lmS.png

Left conkyrc
Right conkyrc

Offline

#1120 2014-01-06 20:50:57

cheamh
Member
From: Ottawa
Registered: 2012-01-20
Posts: 23

Re: conky configs and screenshots!

rin wrote:

Hey guys. I skimmed this thread and threw this setup together in a couple of hours.

I went for a black and red theme, because my laptop has a few red buttons, and it looks really cool when you can see the desktop and laptop at the same time!

http://i.imgur.com/9nS6lmS.png

Left conkyrc
Right conkyrc

Would love to have your background there. Tried googling it and couldn't find it, do you mind sharing?


"I'm not competent to judge. But no doubt he was a great man."...Paul Erdős

Offline

#1121 2014-01-13 03:06:12

esko997
Member
From: Connecticut, USA
Registered: 2014-01-13
Posts: 22

Re: conky configs and screenshots!

Hey all,

Pretty new here, just wanted to show off my conky config. Its not much but I love it. Originally ripped from a post in this thread and then modified.
Screenshot:
dbk7Nrf.png?2

.conkyrc

#!/usr/bin/conky -d -c
##	.conkyrc configuration
alignment top_right
background yes
border_margin 5
border_width 5
color0 555555			#
color1 FCAF3E			# zolty
color2 64574e			# braz
color3 00FF6B			# Simon Green
color4 5e1014			# bordowy
color5 64574e			# braz
color6 a7a7a7			# szary
color7 8888CC			#  (COOL)
color8 9d9c61			# zolto-szary
color9 525276			# niebiesko-szary
cpu_avg_samples 2
default_color e1e1e1		# szary a7a7a7
default_outline_color 000000 	# Black
default_shade_color 8888CC	# Black
double_buffer yes
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
gap_x 1375
gap_y 5
max_specials 1024
max_user_text 10000
maximum_width 180
minimum_size 850
net_avg_samples 2
no_buffers yes
override_utf8_locale yes
own_window yes
own_window_colour 000000	# Black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type override 	## normal
pad_percents 2			# to co nizej, miejsc po przecinku
short_units yes			# krotka wersja podawania wielkosci dyskow np. 612.21M/3.80G
stippled_borders 3
text_buffer_size 8000
total_run_times 0
update_interval 1.0
uppercase no
use_spacer right
use_xft yes
xftalpha 0.75
xftfont sans:size=7

lua_load /home/didisoft/.conky/lua.lua

# d${diskiograph /dev/sda 15,180 a7a7a7 a7a7a7} # wskaznik pracy dysku
# ${image /home/didisoft/.conky/didisoft.jpg -p 0,80 -s 26x28} # obrazki w conky



TEXT
${color3}${goto 10}${font DejaVu Sans Mono:size=45}${time %H}${font DejaVu Sans Mono:size=27}${voffset -20}'${time %M}${font DejaVu Sans Mono:size=12}${voffset -16}${time %S}
${color3}${goto 65}${voffset 10}${font :size=8}${time %A}
${color3}${goto 65}${voffset 0}${font :size=8}${time %d %B %Y}
${color}${font RsbillsDng:size=14}O${font}${font DejaVu Sans Mono:size=8}${execpi 3600 DJS=`date +%_d`; cal -m | sed '1d' | sed '/./!d' | sed 's/$/                     /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color2}'"$DJS"'${color}'" "/}${font}

${voffset -20}${color3}${font led:size=10}SYSTEM${font}$hr

${color}${font :size=10}"Use the source, Luke."${font}

${color}${font :size=8}${sysname} Kernel: $kernel${font}

${color}${font :size=8}Uptime: $uptime${font}


${voffset -10}${color3}${font led:size=10}CPU${font}$hr

${color3}${cpugraph cpu1}% $alignr ${freq_g (1)} GHz / ${exec sensors | grep "Core 0" | cut --bytes=14-21}
${color3}${cpugraph cpu2}% $alignr ${freq_g (2)} GHz / ${exec sensors | grep "Core 1" | cut --bytes=14-21}

${voffset -7}${color3}${font :size=8}NAME ${goto 85}PID${goto 120}CPU% ${alignr}MEM%${font}
${color}${font :size=7}${goto 9}${top name 1}${goto 85}${top pid 1}${goto 120}${top cpu 1}${goto 156}${top mem 1}
${color}${font :size=7}${goto 9}${top name 2}${goto 85}${top pid 2}${goto 120}${top cpu 2}${goto 156}${top mem 2}
${color}${font :size=7}${goto 9}${top name 3}${goto 85}${top pid 3}${goto 120}${top cpu 3}${goto 156}${top mem 3}
${color}${font :size=7}${goto 9}${top name 4}${goto 85}${top pid 4}${goto 120}${top cpu 4}${goto 156}${top mem 3}
${color}${font :size=7}${goto 9}${top name 5}${goto 85}${top pid 5}${goto 120}${top cpu 5}${goto 156}${top mem 3}


${voffset -6}${color3}${font led:size=10}MEMORY / HDD${font}$hr

${color3}${memgraph}
${color}${font :size=8}ram: ${mem} / ${memmax} ${alignr} ${memperc}%
${color}swap: ${swap} / ${swapmax} ${alignr} ${swapperc}%
${color}home: ${fs_used /home} / ${fs_size /home} ${alignr} ${fs_used_perc /home}%
${color}free: $fs_free / $fs_size


${voffset -10}${color3}${font led:size=10}NETWORK${font}$hr

${color}${font :size=8}gateway IP: ${alignr}${gw_ip}
${color}local IP: $alignr${addr wlp2s0}
${voffset 5}${color}${goto 10}${font pizzadude bullets:size=16}D${font}${color}${voffset -12}${goto 40}Down: ${downspeed wlp2s0}${color}
${voffset -12}${alignr}${color3}${downspeedgraph wlp2s0 25,50}
${color}${goto 10}${font pizzadude bullets:size=16}U${font}$color${voffset -12}${goto 40}Up: ${upspeed wlp2s0}${color}
${voffset -12}${alignr}${color3}${upspeedgraph wlp2s0 25,50}

Cheers,

Esko

Offline

#1122 2014-01-17 16:52:44

JoeHartley
Member
Registered: 2011-10-01
Posts: 23

Re: conky configs and screenshots!

I recently upgraded my mobo & CPU, and found that gkrellm would not show the frequencies for all the cores in my CPU, so I decided to move to Corky, and then I was inspired by okubax's config, so I spent last night tweaking .conkyrc and the Rings script for my setup:



The CPU ring shows all 8 cores, and the outer ring is the CPU temp.  I added a 4th ring to the Storage ring to show all my partitions, took out the IP addresses from the Bandwidth ring, changed the battery % ring to show my GPU temp instead, and I made the clock ring a full circle.

My .conkyrc:

# .conkyrc circular theme - LUA required
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

temperature_unit celsius
# Window specifications #
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

minimum_size 540 600
maximum_width 540

alignment tm
gap_x 80
gap_y 0 

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

default_shade_color red
default_outline_color green

# Text settings #
use_xft yes
override_utf8_locale yes
xftfont Play:normal:size=8
xftalpha 0.9
uppercase no

default_color 333333
color0 40bdd0
color1 efefef
color2 1994D1

# Lua Load  ##${voffset 750}
lua_load ~/.conky/rings-v1.2.1.lua
lua_draw_hook_pre conky_main

TEXT
### CPU temp - thermistor  ${hwmon 3 temp 1}
### CPU temp - thermal diode - BEST  ${hwmon 3 temp 2} 
### CPU temp - PECI - BROKEN  ${hwmon 3 temp 3}
${font Play:normal:size=8}${voffset 16}${color1}${goto 165}${hwmon 3 temp 2} °C
${font Play:normal:size=8}${voffset 0}${goto 100}${color1}CPU 0   ${freq_g cpu0}${goto 175}${color1}${cpu cpu0}%${goto 320}CPU 4   ${freq_g cpu4} ${goto 390}${cpu cpu4}%
${font Play:normal:size=8}${voffset 0}${goto 100}${color1}CPU 1   ${freq_g cpu1}${goto 175}${color1}${cpu cpu0}%${goto 320}CPU 5   ${freq_g cpu5} ${goto 390}${cpu cpu5}%
${font Play:normal:size=8}${voffset 0}${goto 100}${color1}CPU 2   ${freq_g cpu2}${goto 175}${color1}${cpu cpu0}%${goto 320}CPU 6   ${freq_g cpu6} ${goto 390}${cpu cpu6}%
${font Play:normal:size=8}${voffset 0}${goto 100}${color1}CPU 3   ${freq_g cpu3}${goto 175}${color1}${cpu cpu0}%${goto 320}CPU 7   ${freq_g cpu7} ${goto 390}${cpu cpu7}%
${goto 320}CPU Fan   ${execi 30 sensors | grep fan1 | cut -c 14-17} RPM
${goto 320}PSU Fan   ${execi 30 sensors | grep fan3 | cut -c 14-17} RPM

${goto 50}${voffset -13}${font Play:normal:size=8}${color1}${top name 1}${alignr 326}${top cpu 1}%
${goto 50}${font Play:normal:size=8}${color1}${top name 2}${alignr 326}${top cpu 2}%
${goto 50}${font Play:normal:size=8}${color1}${top name 3}${alignr 326}${top cpu 3}%
${font Michroma:size=10}${color0}${goto 80}${voffset 4}CPU 

### Memory and Fan
${font Michroma:size=10}${color0}${goto 394}${voffset 28}MEMORY
${goto 324}${voffset -3}${font Play:normal:size=8}${color1}${top_mem name 1}${alignr 40}${top_mem mem 1}%
${goto 324}${font Play:normal:size=8}${color1}${top_mem name 2}${alignr 40}${top_mem mem 2}%
${goto 324}${font Play:normal:size=8}${color1}${top_mem name 3}${alignr 40}${top_mem mem 3}%
${font Play:normal:size=8}${voffset 12}${goto 348}${color1}SWAP${alignr 40}${color1}${swap} / ${color1}${swapmax}
${font Play:normal:size=8}${voffset 2}${goto 348}${color1}RAM ${alignr 40}${color1}${mem} / ${color1}${memmax}

### Drive info
${font Play:normal:size=8}${goto 80}${voffset -85}/${color1}${alignr 325}${fs_used /} / ${fs_size /}
${font Play:normal:size=8}${goto 80}${voffset 0}/home${alignr 325}${color1}${fs_used /home} / ${fs_size /home}
${font Play:normal:size=8}${goto 80}${voffset 0}/tape${alignr 325}${color1}${fs_used /tape} / ${fs_size /tape}
${font Play:normal:size=8}${goto 80}${voffset 0}/tapebak${alignr 325}${color1}${fs_used /tapebak} / ${fs_size /tapebak}
${font Michroma:size=10}${color0}${goto 66}${voffset 10}STORAGE

### Bandwidth
${font Michroma:size=10}${color0}${voffset 16}${goto 324}BANDWIDTH
${font Play:normal:size=8}${color1}${goto 298}Up${goto 370}${color1}${totalup eth0} / ${color1}${upspeed eth0}
${font Play:normal:size=8}${goto 298}${color1}Down${goto 370}${color1}${totaldown eth0} / ${color1}${downspeed eth0}
# ${font Play:bold:size=8}${goto 300}${voffset 2}Local IP${goto 370}${addr eth0}
# ${font Play:bold:size=8}${goto 300}${voffset 1}Public IP${goto 370}${execi 3600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}

# Date 
${font Michroma:size=8}${goto 100}${voffset -60}${color0}${time %a} ${color0}${time %x}
# Time
${font Michroma:size=18}${goto 95}${color1}${voffset -4}${time %H}:${time %M}

### GPU temp  ${hwmon 2 temp 1}
${font Michroma:size=8}${color0}${voffset 8}${goto 300}GPU
${font Play:size=8}${color0}${goto 280}${voffset 2}${color1}${hwmon 2 temp 1} °C

### Bottom text
# ${font Play:normal:size=8}${goto 180}Mail${color1}${alignr 110}${execpi 300 python3 ~/bin/gmail.py}
# ${font Play:normal:size=8}${goto 180}Weather${color1}${alignr 100}${execi 300 ~/bin/weather_simple "EUR|UK|UK241|LONDON"}
${font Play:normal:size=8}${goto 180}${voffset 20}Uptime${color1}${alignr 180}${uptime_short}
${font Michroma:bold:size=11}${color0}${voffset 20}${alignr 150}${nodename}   ${kernel}

And here's the modified rings-v1.2.1.lua:

--[[
Ring Meters by londonali1010 (2009)

This script draws percentage meters as rings. It is fully customisable; all options are described in the 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 near the end of the script 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/rings-v1.2.1.lua
        lua_draw_hook_pre conky_main

Changelog:
+ v1.2.2 -- Added 4 more rings to CPU circle, 1 to Storage and changed the Battery circle to report GPU temp.
            This is a forked version by jh at brainiac dot com (17.01.2014)
+ v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for
            variables that output a numerical value rather than a percentage (29.09.2009)
+ v1.0 -- Original release (28.09.2009)

]]

normal="0x40bdd0"
warn="0xff7200"
crit="0xff000d"

corner_r=35
bg_colour=0x333333
bg_alpha=0.2


settings_table = {
    -- ONE based array
    {   -- [1]
        name='hwmon',
        arg='3 temp 2',
        max=110,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=normal,
        fg_alpha=0.8,
        x=200, y=120,
        radius=97,
        thickness=4,
        start_angle=0,
        end_angle=240
    },
    {   -- [2]
        name='cpu',
        arg='cpu0',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=normal,
        fg_alpha=0.8,
        x=200, y=120,
        radius=89,
        thickness=9,
        start_angle=0,
        end_angle=240
    },
    {   -- [3]
        name='cpu',
        arg='cpu1',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.7,
        fg_colour=normal,
        fg_alpha=0.8,
        x=200, y=120,
        radius=80,
        thickness=9,
        start_angle=0,
        end_angle=240
    },
    {   -- [4]
        name='cpu',
        arg='cpu2',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=normal,
        fg_alpha=0.8,
        x=200, y=120,
        radius=72,
        thickness=8,
        start_angle=0,
        end_angle=240
    },
    {   -- [5]
        name='cpu',
        arg='cpu3',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.5,
        fg_colour=normal,
        fg_alpha=0.8,
        x=200, y=120,
        radius=65,
        thickness=7,
        start_angle=0,
        end_angle=240
    },
    {   -- [6]
        name='cpu',
        arg='cpu4',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=normal,
        fg_alpha=0.8,
        x=200, y=120,
        radius=58,
        thickness=7,
        start_angle=0,
        end_angle=240
    },
    {   -- [7]
        name='cpu',
        arg='cpu5',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.7,
        fg_colour=normal,
        fg_alpha=0.8,
        x=200, y=120,
        radius=51,
        thickness=7,
        start_angle=0,
        end_angle=240
    },
    {   -- [8]
        name='cpu',
        arg='cpu6',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=normal,
        fg_alpha=0.8,
        x=200, y=120,
        radius=44,
        thickness=7,
        start_angle=0,
        end_angle=240
    },
    {   -- [9]
        name='cpu',
        arg='cpu7',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.5,
        fg_colour=normal,
        fg_alpha=0.8,
        x=200, y=120,
        radius=37,
        thickness=7,
        start_angle=0,
        end_angle=240
    },
    {   -- [10]
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=normal,
        fg_alpha=0.8,
        x=340, y=234,
        radius=60,
        thickness=15,
        start_angle=180,
        end_angle=420
    },
    {   -- [11]
        name='swapperc',
        arg='',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.4,
        fg_colour=normal,
        fg_alpha=0.8,
        x=340, y=234,
        radius=45,
        thickness=10,
        start_angle=180,
        end_angle=420
    },
    {   -- [12]
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=normal,
        fg_alpha=0.8,
        x=220, y=280,
        radius=46,
        thickness=8,
        start_angle=0,
        end_angle=240
    },
    {   -- [13]
        name='fs_used_perc',
        arg='/home',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=normal,
        fg_alpha=0.8,
        x=220, y=280,
        radius=36,
        thickness=8,
        start_angle=0,
        end_angle=240
    },
    {   -- [14]
        name='fs_used_perc',
        arg='/tape',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.4,
        fg_colour=normal,
        fg_alpha=0.8,
        x=220, y=280,
        radius=26,
        thickness=8,
        start_angle=0,
        end_angle=240
    },
    {   -- [15]
        name='fs_used_perc',
        arg='/tapebak',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.4,
        fg_colour=normal,
        fg_alpha=0.8,
        x=220, y=280,
        radius=16,
        thickness=8,
        start_angle=0,
        end_angle=240
    },
    {   -- [16]
        name='downspeedf',
        arg='',
        max=2000,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=normal,
        fg_alpha=0.8,
        x=290, y=346,
        radius=30,
        thickness=12,
        start_angle=180,
        end_angle=420
    },
    {   -- [17]
        name='upspeedf',
        arg='',
        max=200,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=normal,
        fg_alpha=0.8,
        x=290, y=346,
        radius=18,
        thickness=8,
        start_angle=180,
        end_angle=420
    },
    {   -- [18]
        name='time',
        arg='%S',
        max=60,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=normal,
        fg_alpha=0.8,
        x=230, y=400,
        radius=30,
        thickness=4,
        -- use start of 0 and end of 360 for full circle
        start_angle=0,
        end_angle=360

    },
    {   -- [19]
        name='time',
        arg='%M',
        max=60,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=normal,
        fg_alpha=0.8,
        x=230, y=400,
        radius=23,
        thickness=8,
        start_angle=0,
        end_angle=360
    },
    {   -- [20]
        name='time',
        -- %H for 24 hr clock, %I for 12 hr, change max to match
        arg='%I',
        max=12,
        bg_colour=0xdddddd,
        bg_alpha=0.4,
        fg_colour=normal,
        fg_alpha=0.8,
        x=230, y=400,
        radius=12,
        thickness=10,
        start_angle=0,
        end_angle=360
    },
    {   -- [21] GPU temp
        name='hwmon',
        arg='2 temp 1',
        max=110,
        bg_colour=0xdddddd,
        bg_alpha=0.8,
        fg_colour=normal,
        fg_alpha=0.8,
        x=274, y=454,
        radius=18,
        thickness=10,
        start_angle=180,
        end_angle=420
    },
    {   -- [22]
        name='',
        arg='',
        max=100,
        bg_colour=0xdddddd,
        bg_alpha=0.6,
        fg_colour=normal,
        fg_alpha=0.6,
        x=274, y=454,
        radius=3,
        thickness=13,
        start_angle=0,
        end_angle=360
    },
}

require 'cairo'

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

function draw_ring(cr,t,pt)

        local w,h=conky_window.width,conky_window.height

        local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
        local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

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

        -- Draw background ring

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

        -- Draw indicator ring

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

function conky_ring_stats()
        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)
                if value == nil then value = 0 end
                pct=value/pt['max']

                draw_ring(cr,pct,pt)
        end

        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
                display_temp=cpu_temp_watch()
                setup_rings(cr,settings_table[i])
            end
        end
        cairo_surface_destroy(cs)
        cairo_destroy(cr)
end

function disk_watch()
    -- warn/crit levels in percent
    warn_disk=93
    crit_disk=98

    -- settings_table inexes for filesystems
    i_root=12
    i_home=13
    i_tape=14
    i_tapebak=15

    -- poser une boucle plus tard... pas simple

    disk=tonumber(conky_parse("${fs_used_perc /}"))

    if disk<warn_disk then
        settings_table[i_root]['fg_colour']=normal
    elseif disk<crit_disk then
        settings_table[i_root]['fg_colour']=warn
    else
        settings_table[i_root]['fg_colour']=crit
    end

    disk=tonumber(conky_parse("${fs_used_perc /home}"))

    if disk<warn_disk then
        settings_table[i_home]['fg_colour']=normal
    elseif disk<crit_disk then
        settings_table[i_home]['fg_colour']=warn
    else
        settings_table[i_home]['fg_colour']=crit
    end

    disk=tonumber(conky_parse("${fs_used_perc /tape}"))

    if disk<warn_disk then
        settings_table[i_tape]['fg_colour']=normal
    elseif disk<crit_disk then
        settings_table[i_tape]['fg_colour']=warn
    else
        settings_table[i_tape]['fg_colour']=crit
    end

    disk=tonumber(conky_parse("${fs_used_perc /tapebak}"))

    if disk<warn_disk then
        settings_table[i_tapebak]['fg_colour']=normal
    elseif disk<crit_disk then
        settings_table[i_tapebak]['fg_colour']=warn
    else
        settings_table[i_tapebak]['fg_colour']=crit
    end
end

function gpu_temp_watch()
    warn_value=65
    crit_value=80
    i_gtemp=21

    temperature=tonumber(conky_parse("${hwmon 2 temp 1}"))
    if temperature == nil then value = 0 end
    if temperature<warn_value then
        settings_table[i_gtemp]['fg_colour']=normal
    elseif temperature<crit_value then
        settings_table[i_gtemp]['fg_colour']=warn
    else
        settings_table[i_gtemp]['fg_colour']=crit
    end
end

function cpu_temp_watch()
    warn_value=50
    crit_value=70
    i_ctmp=1

    temperature=tonumber(conky_parse("${hwmon 3 temp 1}"))
    if temperature == nil then value = 0 end
    if temperature<warn_value then
        settings_table[i_ctmp]['fg_colour']=normal
    elseif temperature<crit_value then
        settings_table[i_ctmp]['fg_colour']=warn
    else
        settings_table[i_ctmp]['fg_colour']=crit
    end
end

function iface_watch()

    i_ifdown=16
    i_ifup=17

    iface=conky_parse("${if_existing /proc/net/route eth0}eth0${else}wlan0${endif}")
    settings_table[i_ifdown]['arg']=iface
    settings_table[i_ifup]['arg']=iface
end

function conky_draw_bg()
    if conky_window==nil then return end
    local w=conky_window.width
    local h=conky_window.height
    local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
    cr=cairo_create(cs)

    cairo_move_to(cr,corner_r,0)
    cairo_line_to(cr,w-corner_r,0)
    cairo_curve_to(cr,w,0,w,0,w,corner_r)
    cairo_line_to(cr,w,h-corner_r)
    cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
    cairo_line_to(cr,corner_r,h)
    cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
    cairo_line_to(cr,0,corner_r)
    cairo_curve_to(cr,0,0,0,0,corner_r,0)
    cairo_close_path(cr)

    cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
    cairo_fill(cr)
end


function conky_main()
    cpu_temp_watch()
    gpu_temp_watch()
    disk_watch()
    iface_watch()
    conky_ring_stats()
end

-- mod edit: read the rules and only post thumbnails https://bbs.archlinux.org/viewtopic.php?id=61754  [jwr] --

Offline

#1123 2014-01-26 12:57:28

Biofobico
Member
Registered: 2014-01-17
Posts: 1

Re: conky configs and screenshots!

t.ask wrote:

http://i1.minus.com/ibeS4xhxKTJ7km.png
The source and instructions are at Github.

I did everything stated on the readme file, but the rss feed isn't displaying any information.
Help?

EDIT. All working fine now. was probably a stream issue that was  the cause of the delay.

Last edited by Biofobico (2014-01-26 13:27:19)

Offline

#1124 2014-01-28 21:28:14

grandtheftjiujitsu
Member
Registered: 2013-07-27
Posts: 91

Re: conky configs and screenshots!

I've been meaning to get this one up for a while:

Used Gray Conky from NoobsLab to get clock rings and general idea of a chronograph type look.
http://www.noobslab.com/2012/07/install … ge-in.html

Screenshot - http://www.4shared.com/download/LQgX9_c … y-Grey.jpg
.conkyrc - http://www.4shared.com/file/hZWqo6AIce/ … bslab.html
lua - http://www.4shared.com/file/cdxtLJl4ce/conky_grey.html

Offline

#1125 2014-02-01 18:13:00

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: conky configs and screenshots!

What I've gleaned from community with some minor tweaks:

rqVSDgt.png

conky:

# ~/.conkyrc
#
double_buffer yes
background yes

use_xft yes
xftalpha 1.0

update_interval 3.0
 
total_run_times 0

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager
no_buffers no
minimum_size 200 500
maximum_width 200
draw_shades no
draw_outline no
draw_borders no
stippled_borders 0
alignment top_right
gap_x 20
gap_y 40
uppercase no
text_buffer_size 1024

use_spaces yes

color0 d4c4a9
color1 93a2cc
color2 cc9393

TEXT
${font conkycolorslogos:size=24}${color2}a${font Terminus:size=8}${color2}${alignr}System
${color1}kernel: ${color0}${kernel}
${color1}hostname: ${color0}${nodename}
${color1}temp: ${color0}${acpitemp}°C
${color1}uptime:${color0} $uptime
${stippled_hr 1 1}
${color2}${alignr}CPU
${color1}usage: ${color0}${cpu cpu0}% ${alignr}${cpubar cpu0 6,135}
${color1}frequency: ${color0}${freq 0}MHz
${color1}temp: ${color0}${execi 10 sensors | grep -A 0 ^Physical | cut -c18-19}°C
${stippled_hr 1 1}
${color2}${alignr}Memory
${color1}ram: ${color0}$memperc%${alignr}${membar 6,135}
${stippled_hr 1 1}
${color2}${alignr}Processes: ${running_processes}/${processes}
${color1}name:  $alignr PID     CPU
${color0}${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5}
${top name 6} $alignr ${top pid 6} ${top cpu 6}
${top name 7} $alignr ${top pid 7} ${top cpu 7}
${top name 8} $alignr ${top pid 8} ${top cpu 8}
${stippled_hr 1 1}
${color2}${alignr}Disks
${color1}root: ${alignr}${color0}${fs_free /}/${fs_size /}
${fs_bar /}
${color1}home: ${alignr}${color0}${fs_free /home}/${fs_size /home}
${fs_bar /home}
${color1}storage: ${alignr}${color0}${fs_free /run/media/vga/7B42D9466D106889}/${fs_size /run/media/vga/7B42D9466D106889}
${fs_bar /run/media/vga/7B42D9466D106889}
${color0}${stippled_hr 1 1}
${color2}${alignr}Network
${color1}down:${color0} ${totaldown wlp3s0}${alignr}${color1}up:${color0} ${totalup wlp3s0}
${stippled_hr 1 1}
${color2}${alignr}Pithos${color}${if_empty ${exec pgrep pithos}}
${color1}inactive ${else}
${color1}title:${color0} ${execp php ~/scripts/pithos.php 'title'}
${color1}artist:${color0} ${execp php ~/scripts/pithos.php 'artist'}
${color1}album:${color0} ${execp php ~/scripts/pithos.php 'album'} ${endif}
${stippled_hr 1 1}

${alignc}${font Terminus:size=8}${color0}${time %G-%m-%d %H:%M:%S}

${alignc}${font Terminus:size=8}${color0}

pithos.php (pandora client):

#!/usr/bin/php
<?php

$song=`dbus-send --print-reply --dest=net.kevinmehall.Pithos /net/kevinmehall/Pithos net.kevinmehall.Pithos.GetCurrentSong`;

$matches = array();

switch($argv[1]) {
    case 'album':
        $pattern = '~"album".*?"(.*?)".*~s';
        break;
    case 'title':
        $pattern = '~"title".*?"(.*?)".*~s';
        break;
    case 'artist':
        $pattern = '~"artist".*?"(.*?)".*~s';
        break;
    default:
        exit;
}

preg_match($pattern, $song, $matches);

if($matches) {
    echo $matches[1];
}
?>

"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

Board footer

Powered by FluxBB