guest@dotshare [~/groups/info/conky] $ ls wagmics-conkys/ | cat

wagmic's conkys (scrot)

wagmic Dec 23, 2015 (info/conky)

conky1(raw, dl)

SCROT

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
##############################################
#  Settings  Par wagmic 
##############################################
# Use Xft?
use_xft yes
xftfont pseudo apl:size=7,5
xftalpha 1
text_buffer_size 2048

# Update interval in seconds
update_interval 1

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

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

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
#minimum_size 700 500
#maximum_width 500 0

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
#border_margin 8

# border width
border_width 0

# Graphics settings #
draw_graph_borders no

# Default colors and also border colors
default_color D3E6E6
default_shade_color 394456
default_outline_color 010203
#own_window_colour 151515

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

gap_x 33
gap_y 33

# Subtract file system buffers from used memory?
no_buffers yes

uppercase no

cpu_avg_samples 1

net_avg_samples 2


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

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

TEXT
${alignc}${nodename} on ${kernel}
${voffset -6}${hr}
-UpTime${goto 95}${uptime}
${voffset -3}${hr}
-Processor${goto 95}${cpu cpu0}%
	${cpugraph cpu0 50,230 D3E6E6 FF8800 -t -l}
-Memory${goto 95}${memperc} %
	${memgraph 50,230 D3E6E6 FF8800 2000 -t -l} 
-I/O${goto 95}${diskio}/s${alignr}${texeci 60 /usr/sbin/hddtemp /dev/sda -n}°C
	${diskiograph 50,230 D3E6E6 FF8800 -t -l}
-Home${goto 95}${fs_used_perc /home} %${alignr}${fs_used /home}/${fs_size /home}
	${color BBBAB0}${fs_bar 7,230 /home}${color}
-System${goto 95}${fs_used_perc /} %${alignr}${fs_used /}/${fs_size /}
	${color BBBAB0}${fs_bar 7,230 /}${color}
-Akira${goto 95}${fs_used_perc /media/AKIRA} %${alignr}${fs_used /media/AKIRA}/${fs_size /media/AKIRA}
	${color BBBAB0}${fs_bar 7,230 /media/AKIRA}${color}
${voffset -3}${hr}
-Mb${goto 95}${acpitemp}°C
${voffset -3}${hr}
-bat${goto 95}${exec acpi -b | grep "Battery 0" | awk '{ print $4}'}${alignr}${exec acpi -b | grep "Battery 0" | awk '{ print $5}'}
	${color BBBAB0}${battery_bar 7,230 BAT0}${color}
${voffset -3}${hr}
-Process ${goto 95}Mem
1 :${top_mem name 1} ${goto 90}${top_mem mem 1}%   \
${alignr} total ${memmax}
2 :${top_mem name 2} ${goto 90}${top_mem mem 2}%   \
${alignr} free ${memfree}
3 :${top_mem name 3} ${goto 90}${top_mem mem 3}%   \
${alignr} easyfree ${memeasyfree}
4 :${top_mem name 4} ${goto 90}${top_mem mem 4}%   \
${alignr} Swap ${swap}
5 :${top_mem name 5} ${goto 90}${top_mem mem 5}%
${voffset -3}${hr}${if_running mocp}
-Artist${alignc}${exec mocp -Q %artist} 
-Album${alignc}${exec mocp -Q %song}
-duree${alignc}${exec mocp -Q %ct}/${exec mocp -Q %tt}
${voffset -3}${hr}${endif}

CLICK TO VIEW

x

conky-wifi(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# librement inspiré de Conky Google Now style #
# Par wagmic #
# Conky settings #
background no
update_interval 1
double_buffer yes
no_buffers yes

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

minimum_size 250

# Alignment #
alignment tm
gap_x 18
gap_y 43

border_inner_margin 15
border_outer_margin 0

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

# Text settings #
use_xft yes
xftalpha 0
xftfont Open Sans Light:size=7

override_utf8_locale yes

imlib_cache_size 0

# Color scheme #
default_color D3E6E6

#minimum_size 120 250
maximum_width 250 100

TEXT
${if_existing /proc/net/route wlan0}${goto 35}${wireless_essid wlan0}${goto 150}${wireless_link_qual_perc wlan0}%
${goto 35}Gateway:${goto 150}$gw_ip
${goto 35}Ip:${goto 150}${addr wlan0}
${goto 35}Ip public:${goto 150}${execi 1800 wget -q -O - http://ip.tupeux.com | tail }
${goto 35}Mac:${goto 150}${exec ifconfig -a | grep HWaddr | grep wlan0 | cut -c 39-55}
${goto 35}Up:${upspeed wlan0}${goto 150}Down:${downspeed wlan0}
${upspeedgraph wlan0 50,120 FFFFF0 FF8800 -t -l}${alignr}${downspeedgraph wlan0 50,120 FF8800 FFFFF0-t -l}
${alignc}Sent:${totalup wlan0}${alignr}Received:${totaldown wlan0}
${else}${if_existing /proc/net/route wlan2}${goto 35}${wireless_essid wlan2}${goto 150}${wireless_link_qual_perc wlan2}%
${goto 35}Gateway:${goto 150}$gw_ip
${goto 35}Ip:${goto 150}${addr wlan2}
${goto 35}Ip public:${goto 150}${execi 1800 wget -q -O - http://ip.tupeux.com | tail }
${goto 35}Mac:${goto 150}${exec ifconfig -a | grep HWaddr | grep wlan2 | cut -c 39-55}
${goto 35}Up:${upspeed wlan2}${goto 150}Down:${downspeed wlan2}
${upspeedgraph wlan2 50,120 FFFFF0 FF8800 -t -l}${alignr}${downspeedgraph wlan2 50,120 FF8800 FFFFF0-t -l}
${alignc}Sent:${totalup wlan2}${alignr}Received:${totaldown wlan2}
${else}${if_existing /proc/net/route eth0}
Up:${upspeed eth0}${alignr}Down:${downspeed eth0}
${upspeedgraph eth0 50,120 FF8800 FF8800}${alignr}${downspeedgraph eth0 50,120 FF8800 FF8800}
Sent:${totalup eth0}${alignr}Received:${totaldown eth0}
${else}${if_existing /proc/net/route wlan2}${goto 85}${wireless_essid wlan2}${alignr}${wireless_link_qual_perc wlan2}%
Up:${upspeed wlan2}${alignr}Down:${downspeed wlan2}
${upspeedgraph wlan2 50,120 FF8800 FF8800}${alignr}${downspeedgraph wlan2 50,120 FF8800 FF8800}
Sent:${totalup wlan2}${alignr}Received:${totaldown wlan2}
${else}${if_existing /proc/net/route ppp0}
Up:${upspeed ppp0}${alignr}Down:${downspeed ppp0}
${upspeedgraph ppp0 50,120 FF8800 FF8800}${alignr}${downspeedgraph ppp0 50,120 FF8800 FF8800}
Sent:${totalup ppp0}${alignr}Received:${totaldown ppp0}
${else}
Network disconnected
${color6}Connect to a network to see statistics
${voffset 50}
${endif}${endif}${endif}${endif}
 

x

conky_horloge(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
##############################################
#  Settings Par wagmic #
##############################################
# Use Xft?
use_xft yes
xftfont pseudo apl:size=7
xftalpha 1
text_buffer_size 2048

# Update interval in seconds
update_interval 1

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

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

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 200 200
#maximum_width 500 0

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
#border_margin 8

# border width
border_width 1

# Default colors and also border colors
default_color 141414
default_shade_color 394456
default_outline_color 010203
#own_window_colour 151515

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

gap_x 33
gap_y 33

# Subtract file system buffers from used memory?
no_buffers yes

uppercase no

cpu_avg_samples 1

net_avg_samples 2


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

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

# -- Lua Load -- #
lua_load /home/wagmic/.config/conky/LUA/ring.lua
lua_draw_hook_pre rings
TEXT
${color6}${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=12850467&u=c" -o ~/.cache/weather.xml}${font Open Sans Light:size=7}${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${alignr}T : ${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} °
${font Open Sans Light:size=7}${voffset 180}V : ${color6}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${alignr}H : ${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} %
 

x

ring.lua(raw, dl)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
-- setting par wagmic

settings_table = {
	{
		name='time',
		arg='%I',
		max=12,
		bg_colour=0xFFFFF0,
		bg_alpha=0.05,
		fg_colour=0xFF8800,
		fg_alpha=0.3,
		x=105, y=105,
		radius=40,
		thickness=80,
		start_angle=0,
		end_angle=360
	},
	{
		name='time',
		arg='%M.%S',
		max=60,
		bg_colour=0xFFFFF0,
		bg_alpha=0.02,
		fg_colour=0xFF8800,
		fg_alpha=0.5,
		x=105, y=105,
		radius=30,
		thickness=60,
		start_angle=0,
		end_angle=360
	},
	{
		name='time',
		arg='%S',
		max=60,
		bg_colour=0xFFFFF0,
		bg_alpha=0.01,
		fg_colour=0xFF8800,
		fg_alpha=0.7,
		x=105, y=105,
		radius=20,
		thickness=40,
		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)

	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)

	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_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)
		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
			setup_rings(cr,settings_table[i])
		end
	end
end
 

x

Notes

this is the conky i use in crunchbang and now in bunsenlabs