Bu başlık altına conky dosyalarınızı ve görsellerini ekleyebilirsiniz.
#============================================================================== # conkyrc_orange # # author : SLK # version : v2011011601 # license : Distributed under the terms of GNU GPL version 2 or later # #============================================================================== if_running clementine}# Use Xft? use_xft yes xftfont Trebuchet MS:size=8 xftalpha 0.8 text_buffer_size 2048 background yes # Update interval in seconds update_interval 1 xftalpha 0.8 own_window_argb_visual yes # This is the number of times Conky will update before quitting. # Set to zero to run forever. total_run_times 0 # Create own window instead of using desktop (required in nautilus) own_window yes own_window_transparent yes own_window_type desktop 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 180 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 5 # border width border_width 1 # Default colors and also border colors default_color white own_window_colour white # Subtract file system buffers from used memory? no_buffers yes # set to yes if you want all text to be in uppercase uppercase no # number of cpu samples to average # set to 1 to disable averaging cpu_avg_samples 2 # number of net samples to average # set to 1 to disable averaging 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 cpu_avg_samples 2 net_avg_samples 2 temperature_unit celsius minimum_size 300 300 maximum_width 200 draw_graph_borders no default_color white #696969 alignment top_right gap_x 12 gap_y 12 TEXT ${font Xirod:bold:size=10}SİSTEM ${hr 2} ${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine Sunucu:$alignr$nodename Uptime:$alignr$uptime ${font Xirod:bold:size=10}İŞLEMCİ ${hr 2} ${font sans-serif:normal:size=8}${cpugraph cpu1} CPU: ${cpu cpu1}% ${cpubar cpu1} #CPU2 $alignc ${cpu cpu2}% ${goto 140}${cpubar cpu2} ${font Xirod:bold:size=10}HAFIZA ${hr 2} ${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc% $membar SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}% ${swapbar} ${font Xirod:bold:size=10}DİSKLER ${hr 2} ${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}% ${fs_bar /} ${font sans-serif:normal:size=8}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}% ${fs_bar /home} ${font Xirod:bold:size=10}SÜREÇLER ${hr 2} ${font sans-serif:normal:size=8}${top_mem name 1}${alignr}${top mem 1} % ${top_mem name 2}${alignr}${top mem 2} % $font${top_mem name 3}${alignr}${top mem 3} % $font${top_mem name 4}${alignr}${top mem 4} % $font${top_mem name 5}${alignr}${top mem 5} % ${font Xirod:bold:size=10}AÄ ${hr 2} ${font sans-serif:normal:size=8}Externe IP: ${alignr}${texeci 3600 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d < -f 1} IP Adresi: $alignr ${addr wlan0} SSID: $alignr ${wireless_essid wlan0} Bağlantı Kalitesi: $alignr ${wireless_link_qual_perc wlan0}% ${downspeedgraph wlan0} DLS:${downspeed wlan0} kb/s $alignr total: ${totaldown wlan0} ${upspeedgraph wlan0} ULS:${upspeed ath0} kb/s $alignr total: ${totalup wlan0}
http://www.ogretmeniim.com/ - Öğretmeniim!Canım Benim
Teşekkür ederim [profile]ikia[/profile]
# conky config by hsngrms # minimum resolution 1024x768 background no use_xft yes xftfont Droid Sans:size=8 xftalpha 1 update_interval 0.5 total_run_times 0 own_window yes own_window_transparent yes own_window_type desktop own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes draw_shades no draw_outline no draw_borders no draw_graph_borders yes default_color black default_shade_color default_outline_color alignment tr gap_x 10 gap_y 25 #minimum_size 1350 no_buffers yes uppercase no cpu_avg_samples 1 net_avg_samples 1 override_utf8_locale yes ############################################################################ # Output ############################################################################ TEXT ${font Droid Sans:size=36:bold} $alignc ${time %H:%M} ${font} ${font Droid Sans:size=12} $alignc ${time %e %B %A} ${font} # ${font Turkish Participants:size=12}Genel${font}${hr 2} # Sistem: $alignr $sysname Çekirdek: $alignr $kernel İşlemci Mimarisi: $alignr $machine Host Adı: $alignr $nodename Dosya Sistemi: $alignr ${fs_type /} Çalışma Süresi: $alignr $uptime Batarya: $alignr ${battery_percent BAT1}% ${battery_bar 7,80 BAT1} Kalan Süre: $alignr ${battery_time BAT1} İşlemler: $alignr $running_processes / $processes - $running_threads / $threads # ${font Turkish Participants:size=12}İşlemci${font}${hr 2} # Sıcaklık: $alignr $acpitemp ºC CPU1: ${cpu cpu1}% ${cpubar cpu1} CPU2: ${cpu cpu2}% ${cpubar cpu2} CPU3: ${cpu cpu3}% ${cpubar cpu3} CPU4: ${cpu cpu4}% ${cpubar cpu4} ${top name 1} ${alignr} ${top cpu 1} % ${top name 2} ${alignr} ${top cpu 2} % ${top name 3} ${alignr} ${top cpu 3} % ${top name 4} ${alignr} ${top cpu 4} % ${top name 5} ${alignr} ${top cpu 5} %$ # ${font Turkish Participants:size=12}Bellek${font}${hr 2} # RAM: $alignr $mem / $memmax $memperc% $membar ${top_mem name 1} ${alignr} ${top mem 1} % ${top_mem name 2} ${alignr} ${top mem 2} % ${top_mem name 3} ${alignr} ${top mem 3} % ${top_mem name 4} ${alignr} ${top mem 4} % ${top_mem name 5} ${alignr} ${top mem 5} % # ${font Turkish Participants:size=12}Disk${font}${hr 2} # root: $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}% ${fs_bar /} home: $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}% ${fs_bar /home} warehouse: $alignc ${fs_used /run/media/arrow/WAREHOUSE} / ${fs_size /run/media/arrow/WAREHOUSE} $alignr ${fs_used_perc /run/media/arrow/WAREHOUSE}% ${fs_bar /run/media/arrow/WAREHOUSE} windows: $alignc ${fs_used /run/media/arrow/WINDOWS} / ${fs_size /run/media/arrow/WINDOWS} $alignr ${fs_used_perc /run/media/arrow/WINDOWS}% ${fs_bar /run/media/arrow/WINDOWS} # ${font Turkish Participants:size=12}Net${font}${hr 2} # Bağlantı: $alignr ${wireless_essid wlan0} Çekim: $alignr ${wireless_link_qual_perc wlan0}% ${wireless_link_bar 7,80 wlan0} Hız: $alignr ${wireless_bitrate wlan0} İndirme: $alignr ${downspeed wlan0} / ${totaldown wlan0} Yükleme: $alignr ${upspeed wlan0} / ${totalup wlan0} DNS 1: $alignr ${nameserver 0} DNS 2: $alignr ${nameserver 1} DNS 3: $alignr ${nameserver 2}
Turkish Participants yazı tipi
Droid Sans yazı tipi:
# pacman -S ttf-droid
background no use_xft yes xftfont waree book:size=10 gap_x 10 gap_y 20 alignment top_right color1 0066FF color2 18131A color3 C12420 color4 66CC66 own_window yes own_window_transparent yes own_window_argb_visual yes own_window_type normal own_window_class conky-semi own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes draw_shades no draw_outline no draw_borders no TEXT ${color2} ${font OpenLogos:size=65}B${color2}${font OpenLogos:size=80}Y${font}${color} ${voffset -20} ${color2}${font Defused:size=29:bold}$alignc${time %H:%M}${font}${color} ${voffset -10} ${color2}${font defused:size=22}${time %d} ${voffset -5}${font Droid Sans:size=12:bold}${time %B %Y} ${font Droid Sans:size=10:bold}${time %A} #${color1}${font Droid Sans:size=10:bold}$alignc ${} ${font}${color} ${color3}${font caviar dreams:size=10:bold}GENEL ${font}${hr 2}${color} # ${color2}${font Droid Sans:size=8:bold}Sistem: $alignr $sysname Çekirdek: $alignr $kernel İşlemci Mimarisi: $alignr $machine # ${color3}${font caviar dreams:size=10:bold}İŞLEMCİ ${font}${hr 2}${color} # ${color1}${font Droid Sans:size=8:bold}CPU1: ${cpu cpu1}% ${cpubar cpu1} CPU2: ${cpu cpu2}% ${cpubar cpu2} ${color2}${top name 1} ${alignr} ${top cpu 1} % ${top name 2} ${alignr} ${top cpu 2} % ${top name 3} ${alignr} ${top cpu 3} % ${top name 4} ${alignr} ${top cpu 4} % ${top name 5} ${alignr} ${top cpu 5} %${color} # ${color3}${font caviar dreams:size=10:bold}BELLEK ${font}${hr 2}${color} # ${color2}${font Droid Sans:size=8:bold}RAM: $alignr $mem / $memmax $memperc% $membar ${color2}SWAP: $alignr $swap / $swapmax $swapperc% $swapbar ${color2}${top_mem name 1} ${alignr} ${top mem 1} % ${top_mem name 2} ${alignr} ${top mem 2} % ${top_mem name 3} ${alignr} ${top mem 3} % ${top_mem name 4} ${alignr} ${top mem 4} % ${top_mem name 5} ${alignr} ${top mem 5} %${color} # ${color3}${font caviar dreams:size=10:bold}NET ${font}${hr 2}${color} # ${color4}${font Droid Sans:size=8:bold}DNS 1: $alignr ${nameserver 0} DNS 2: $alignr ${nameserver 1}${color}
merhaba,
eklemiş olduğunuz kodları alıp direkt olarak konsoldan yazınca hata veriyor...çok hoşuma gitmesi nedeniyle ekranımda bende conky nasıl yapabileceğimi
(ama hiç bilmeyen birine öğretiyorsunuz 😀 ) konusunda yardımcı olabilirmisiniz..?? benimle birlikte başka öğrenmek isteyen arkadaşlara da bu
vesile ile faydanız olacağına inanıyorum....
Eklenen kodları konsoldan uygulamayın. Sizde var olan conky.rc dosya içerigi ile degiştirip kaydetmeniz gerekir. Eger conky kurulu degilse kurulum yapmanız gerekir.
.conkyrc_HUD
#==============================================================================
# conkyrc_HUD
#
# author : SLK
# version : v2011011601
# license : Distributed under the terms of GNU GPL version 2 or later
#
#==============================================================================
background yes
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius
double_buffer yes
no_buffers yes
text_buffer_size 2048
gap_x 40
gap_y 30
minimum_size 250 130
maximum_width 250
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
alignment top_right
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no
default_color FFFFFF
color1 00FFBB
lua_load ~/.conky/conky_HUD.lua
lua_draw_hook_post main
own_window_argb_value 0
own_window_argb_visual no
own_window_colour 000000
TEXT
${color1}${font ubuntu:size=10}${time %H:%M:%S}
${voffset 25}
${goto 100}${font Ubuntu:size=8,weight:bold}${color}DISKS
${goto 110}${font Ubuntu:size=7,weight:normal}${color1}size /
${goto 105}${font Ubuntu:size=9,weight:normal}${color1}${offset 5}${voffset -4}${fs_size /}
${goto 105}${font Ubuntu:size=7,weight:normal}${color1}size /home
${goto 105}${font Ubuntu:size=9,weight:normal}${color1}${offset 5}${voffset -4}${fs_size /home}
${voffset -70}
${goto 30}${font Ubuntu:size=8,weight:bold}${color}MEM
${voffset -25}
${goto 180}${font Ubuntu:size=8,weight:bold}${color}CPU
conky_HUD.lua
--==============================================================================
-- conky_HUD.lua
--
-- author : SLK
-- version : v2011062101
-- license : Distributed under the terms of GNU GPL version 2 or later
--
--==============================================================================
require 'cairo'
--------------------------------------------------------------------------------
-- gauge DATA
gauge = {
{
name='cpu', arg='cpu0', max_value=100,
x=180, y=120,
graph_radius=50,
graph_thickness=5,
graph_start_angle=0,
graph_unit_angle=0.9, graph_unit_thickness=0.9,
graph_bg_colour=0x00FFBB, graph_bg_alpha=0.3,
graph_fg_colour=0x00FFBB, graph_fg_alpha=0.0,
hand_fg_colour=0x00FFBB, hand_fg_alpha=1.0,
txt_radius=40,
txt_weight=1, txt_size=10.0,
txt_fg_colour=0x00FFBB, txt_fg_alpha=0.8,
graduation_radius=30,
graduation_thickness=0, graduation_mark_thickness=1,
graduation_unit_angle=27,
graduation_fg_colour=0x00FFBB, graduation_fg_alpha=0.3,
caption='',
caption_weight=1, caption_size=8.0,
caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.3,
},
{
name='cpu', arg='cpu1', max_value=100,
x=180, y=120,
graph_radius=60,
graph_thickness=5,
graph_start_angle=0,
graph_unit_angle=0.9, graph_unit_thickness=0.9,
graph_bg_colour=0x00FFBB, graph_bg_alpha=0.3,
graph_fg_colour=0x00FFBB, graph_fg_alpha=0.0,
hand_fg_colour=0x00FFBB, hand_fg_alpha=1.0,
txt_radius=70,
txt_weight=1, txt_size=10.0,
txt_fg_colour=0x00FFBB, txt_fg_alpha=0.8,
graduation_radius=55,
graduation_thickness=5, graduation_mark_thickness=2,
graduation_unit_angle=27,
graduation_fg_colour=0x00FFBB, graduation_fg_alpha=0.3,
caption='',
caption_weight=1, caption_size=8.0,
caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.3,
},
{
name='memperc', arg='', max_value=100,
x=40, y=85,
graph_radius=34,
graph_thickness=5,
graph_start_angle=180,
graph_unit_angle=2, graph_unit_thickness=2,
graph_bg_colour=0x00FFBB, graph_bg_alpha=0.3,
graph_fg_colour=0x00FFBB, graph_fg_alpha=0.0,
hand_fg_colour=0x00FFBB, hand_fg_alpha=1.0,
txt_radius=20,
txt_weight=1, txt_size=10.0,
txt_fg_colour=0x00FFBB, txt_fg_alpha=0.8,
graduation_radius=24,
graduation_thickness=6, graduation_mark_thickness=2,
graduation_unit_angle=10,
graduation_fg_colour=0x00FFBB, graduation_fg_alpha=0.3,
caption='',
caption_weight=1, caption_size=10.0,
caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.5,
},
{
name='fs_used_perc', arg='/', max_value=100,
x=120, y=70,
graph_radius=40,
graph_thickness=4,
graph_start_angle=210,
graph_unit_angle=2, graph_unit_thickness=2,
graph_bg_colour=0x00FFBB, graph_bg_alpha=0.3,
graph_fg_colour=0x00FFBB, graph_fg_alpha=0.0,
hand_fg_colour=0x00FFBB, hand_fg_alpha=1.0,
txt_radius=32,
txt_weight=1, txt_size=10.0,
txt_fg_colour=0x00FFBB, txt_fg_alpha=0.8,
graduation_radius=46,
graduation_thickness=0, graduation_mark_thickness=2,
graduation_unit_angle=20,
graduation_fg_colour=0x00FFBB, graduation_fg_alpha=0.3,
caption='',
caption_weight=1, caption_size=8.0,
caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.5,
},
{
name='fs_used_perc', arg='/home/', max_value=100,
x=120, y=70,
graph_radius=50,
graph_thickness=8,
graph_start_angle=210,
graph_unit_angle=2, graph_unit_thickness=2,
graph_bg_colour=0x00FFBB, graph_bg_alpha=0.3,
graph_fg_colour=0x00FFBB, graph_fg_alpha=0.0,
hand_fg_colour=0x00FFBB, hand_fg_alpha=1.0,
txt_radius=60,
txt_weight=1, txt_size=10.0,
txt_fg_colour=0x00FFBB, txt_fg_alpha=0.8,
graduation_radius=58,
graduation_thickness=4, graduation_mark_thickness=2,
graduation_unit_angle=20,
graduation_fg_colour=0x00FFBB, graduation_fg_alpha=0.3,
caption='',
caption_weight=1, caption_size=8.0,
caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.5,
},
}
-------------------------------------------------------------------------------
-- rgb_to_r_g_b
-- converts color in hexa to decimal
--
function rgb_to_r_g_b(colour, alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
-------------------------------------------------------------------------------
-- angle_to_position
-- convert degree to rad and rotate (0 degree is top/north)
--
function angle_to_position(start_angle, current_angle)
local pos = current_angle + start_angle
return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
end
-------------------------------------------------------------------------------
-- draw_gauge_ring
-- displays gauges
--
function draw_gauge_ring(display, data, value)
local max_value = data['max_value']
local x, y = data['x'], data['y']
local graph_radius = data['graph_radius']
local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
local graph_start_angle = data['graph_start_angle']
local graph_unit_angle = data['graph_unit_angle']
local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']
local hand_fg_colour, hand_fg_alpha = data['hand_fg_colour'], data['hand_fg_alpha']
local graph_end_angle = (max_value * graph_unit_angle) % 360
-- background ring
cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, 0), angle_to_position(graph_start_angle, graph_end_angle))
cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
cairo_set_line_width(display, graph_thickness)
cairo_stroke(display)
-- arc of value
local val = value % (max_value + 1)
local start_arc = 0
local stop_arc = 0
local i = 1
while i <= val do
start_arc = (graph_unit_angle * i) - graph_unit_thickness
stop_arc = (graph_unit_angle * i)
cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
cairo_set_source_rgba(display, rgb_to_r_g_b(graph_fg_colour, graph_fg_alpha))
cairo_stroke(display)
i = i + 1
end
local angle = start_arc
-- hand
start_arc = (graph_unit_angle * val) - (graph_unit_thickness * 2)
stop_arc = (graph_unit_angle * val)
cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
cairo_set_source_rgba(display, rgb_to_r_g_b(hand_fg_colour, hand_fg_alpha))
cairo_stroke(display)
-- graduations marks
local graduation_radius = data['graduation_radius']
local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
local graduation_unit_angle = data['graduation_unit_angle']
local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
local nb_graduation = graph_end_angle / graduation_unit_angle
local i = 0
while i < nb_graduation do
cairo_set_line_width(display, graduation_thickness)
start_arc = (graduation_unit_angle * i) - (graduation_mark_thickness / 2)
stop_arc = (graduation_unit_angle * i) + (graduation_mark_thickness / 2)
cairo_arc(display, x, y, graduation_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
cairo_stroke(display)
cairo_set_line_width(display, graph_thickness)
i = i + 1
end
end
-- text
local txt_radius = data['txt_radius']
local txt_weight, txt_size = data['txt_weight'], data['txt_size']
local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
local movex = txt_radius * math.cos(angle_to_position(graph_start_angle, angle))
local movey = txt_radius * math.sin(angle_to_position(graph_start_angle, angle))
cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, txt_weight)
cairo_set_font_size (display, txt_size)
cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
cairo_show_text (display, value)
cairo_stroke (display)
-- caption
local caption = data['caption']
local caption_weight, caption_size = data['caption_weight'], data['caption_size']
local caption_fg_colour, caption_fg_alpha = data['caption_fg_colour'], data['caption_fg_alpha']
local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, caption_weight);
cairo_set_font_size (display, caption_size)
cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
cairo_move_to (display, x + tox + 5, y + toy + 1)
-- bad hack but not enough time !
if graph_start_angle < 105 then
cairo_move_to (display, x + tox - 30, y + toy + 1)
end
cairo_show_text (display, caption)
cairo_stroke (display)
end
-------------------------------------------------------------------------------
-- go_gauge_rings
-- loads data and displays gauges
--
function go_gauge_rings(display)
local function load_gauge_rings(display, data)
local str, value = '', 0
str = string.format('${%s %s}',data['name'], data['arg'])
str = conky_parse(str)
value = tonumber(str)
draw_gauge_ring(display, data, value)
end
for i in pairs(gauge) do
load_gauge_rings(display, gauge)
end
end
-------------------------------------------------------------------------------
-- MAIN
function conky_main()
if conky_window == nil then
return
end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local display = cairo_create(cs)
local updates = conky_parse('${updates}')
update_num = tonumber(updates)
if update_num > 5 then
go_gauge_rings(display)
end
cairo_surface_destroy(cs)
cairo_destroy(display)
end
Suskunluğum asaletimdendir,her lafa verilecek cevabım var. Ama bir lafa bakarım laf mı ? diye bir de söyleyene bakarım adam mı ? diye
.conkyrc
background noupdate_interval 1.0
double_buffer yes
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
text_buffer_size 2048
imlib_cache_size 0
override_utf8_locale yes
# +++++ Window +++++
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 1280 800
maximum_width 1280
alignment bottom_middle
gap_x 0
gap_y 0
# +++++ Styles +++++
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
# +++++ Colors +++++
default_shade_color 101010
default_color 8F8F8F
color0 White #FFFFFF
color1 Ivory #FFFFF0
color2 Ivory2 #EEEEE0
color3 Ivory3 #CDCDC1
color4 Tan1 #FFA54F
color5 Tan2 #EE9A49
color6 Gray #7E7E7E
color7 AntiqueWhite4 #8B8378
color8 DimGray #696969
color9 Tomato #FF6347
lua_load ~/.conky/desktopconky.lua
# +++++ LUA +++++
lua_draw_hook_pre ring_stats
# +++++ Font +++++
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.1
uppercase no
TEXT
${goto 530}${color0}Last Backup: ${scroll 25 ${execi 5 cat /home/dan/bash/backup.log}}
${goto 530}${font DroidSans:bold:size=8.25}${color4}SYSTEM${offset 8}${color0}${voffset -2}${hr 1}${font}
${goto 530}${sysname}${goto 650}${kernel}${goto 745}${machine}
${goto 530}Intel${offset 3}core${offset 3}i5-M560${goto 650}${freq_g cpu0}${offset 1}GHz
${goto 530}Kingston${offset 3}DDR3-1333${goto 650}${memmax}${offset 1}
${goto 530}System${offset 3}Uptime${goto 650}${uptime_short}
${goto 530}${font DroidSans:bold:size=8.25}${color4}TOP PROCESSES${offset 8}${color0}${voffset -2}${hr 1}${font}
${goto 1030}CPU4
${goto 530}${top_mem name 1}${goto 650}${top_mem mem_res 1}${goto 1030}${cpu cpu4}%
${goto 530}${top_mem name 2}${goto 650}${top_mem mem_res 2}
${goto 530}${top_mem name 3}${goto 650}${top_mem mem_res 3}${goto 940}CPU2
${goto 530}${top_mem name 4}${goto 650}${top_mem mem_res 4}${goto 940}${cpu cpu2}%
${goto 530}${top_mem name 5}${goto 650}${top_mem mem_res 5}
${goto 530}${top_mem name 6}${goto 650}${top_mem mem_res 6}${goto 860}SWAP
${goto 868}${swap}
${goto 530}${font DroidSans:bold:size=8.25}${color4}NETWORK${offset 8}${color0}${voffset -2}${hr 1}${font}
${goto 800}HOME
${goto 530}Downspeed${goto 650}${downspeed wlan0}${goto 800}${fs_used /home}
${goto 530}Upspeed${goto 650}${upspeed wlan0}
${goto 530}Total Download${goto 650}${totaldown wlan0}
${goto 530}Total Upload${goto 650}${totalup wlan0}
${goto 530}LAN${offset 3}IP${goto 650}${addr wlan0}
${goto 530}WAN${offset 3}IP${goto 650}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]|.]//g'}
${goto 428}MediaPC
${goto 435}${fs_used /mnt/MediaPC}
${goto 375}RAM
${goto 365}${mem}
${goto 290}CPU3
${goto 290}${cpu cpu3}%
${goto 210}CPU1
${goto 210}${cpu cpu1}%
${goto 500}${font OpenLogos:size=150}${color2}v${voffset -75}${font}
${goto 510}${font UbuntuTitleBold:size=24}${color4}1${offset 1}3${offset 1}.${offset 0}0${offset 0}4${font}
${voffset -30}${goto 610}${font Ubuntu-B:size=18}${color4}Raring Ringtail${font}
.conky/desktopconky.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 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/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)
]]
runscheck = 0
--#####
if math.mod(runscheck, 2) == 0 then -- fix for draw shades running script twice on every update
conky_background_color = 0x151515
conky_background_alpha = 0
ring_background_color = 0x424242
ring_background_alpha = 0.1
ring_foreground_color = 0x86c113
ring_foreground_color2 = 0x1994d1
ring_foreground_color3 = 0xaa0000
ring_foreground_alpha = 0.3
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=ring_background_color,
-- "bg_alpha" is the alpha value of the base ring.
-- bg_alpha=ring_background_alpha,
-- "fg_colour" is the colour of the indicator part of the ring.
-- fg_colour=ring_foreground_color,
-- "fg_alpha" is the alpha value of the indicator part of the ring.
-- fg_alpha=ring_foreground_alpha,
-- "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=26, y=25,
-- "radius" is the radius of the ring.
-- radius=10,
-- "thickness" is the thickness of the ring, centred around the radius.
-- thickness=6,
-- "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 (e.g. more clockwise) than start_angle.
-- end_angle=360
-- },
{
name='cpu',
arg='cpu3',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=680, y=360,
radius=410,
thickness=86,
start_angle=-120,
end_angle=-60
},
{
name='cpu',
arg='cpu1',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color2,
fg_alpha=ring_foreground_alpha,
x=680, y=360,
radius=510,
thickness=86,
start_angle=-120,
end_angle=-60
},
{
name='cpu',
arg='cpu2',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color2,
fg_alpha=ring_foreground_alpha,
x=580, y=360,
radius=410,
thickness=86,
start_angle=60,
end_angle=120
},
{
name='cpu',
arg='cpu4',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=580, y=360,
radius=510,
thickness=86,
start_angle=60,
end_angle=120
},
{
name='swapperc',
arg='',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=580, y=360,
radius=320,
thickness=66,
start_angle=60,
end_angle=120
},
{
name='memperc',
arg='',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color2,
fg_alpha=ring_foreground_alpha,
x=680, y=360,
radius=320,
thickness=66,
start_angle=-120,
end_angle=-60
},
{
name='fs_used_perc',
arg='/home',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color2,
fg_alpha=ring_foreground_alpha,
x=580, y=360,
radius=250,
thickness=46,
start_angle=60,
end_angle=90,
},
{
name='fs_used_perc',
arg='/mnt/MediaPC',
max=100,
bg_colour=ring_background_color,
bg_alpha=ring_background_alpha,
fg_colour=ring_foreground_color,
fg_alpha=ring_foreground_alpha,
x=680, y=360,
radius=250,
thickness=46,
start_angle=-120,
end_angle=-90,
}
}
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 conky_round_rect(cr, x0, y0, w, h, r)
if (w == 0) or (h == 0) then return end
local x1 = x0 + w
local y1 = y0 + h
if w/2 < r then
if h/2 < r then
cairo_move_to (cr, x0, (y0 + y1)/2)
cairo_curve_to (cr, x0 ,y0, x0, y0, (x0 + x1)/2, y0)
cairo_curve_to (cr, x1, y0, x1, y0, x1, (y0 + y1)/2)
cairo_curve_to (cr, x1, y1, x1, y1, (x1 + x0)/2, y1)
cairo_curve_to (cr, x0, y1, x0, y1, x0, (y0 + y1)/2)
else
cairo_move_to (cr, x0, y0 + r)
cairo_curve_to (cr, x0 ,y0, x0, y0, (x0 + x1)/2, y0)
cairo_curve_to (cr, x1, y0, x1, y0, x1, y0 + r)
cairo_line_to (cr, x1 , y1 - r)
cairo_curve_to (cr, x1, y1, x1, y1, (x1 + x0)/2, y1)
cairo_curve_to (cr, x0, y1, x0, y1, x0, y1- r)
end
else
if h/2 < r then
cairo_move_to (cr, x0, (y0 + y1)/2)
cairo_curve_to (cr, x0 , y0, x0 , y0, x0 + r, y0)
cairo_line_to (cr, x1 - r, y0)
cairo_curve_to (cr, x1, y0, x1, y0, x1, (y0 + y1)/2)
cairo_curve_to (cr, x1, y1, x1, y1, x1 - r, y1)
cairo_line_to (cr, x0 + r, y1)
cairo_curve_to (cr, x0, y1, x0, y1, x0, (y0 + y1)/2)
else
cairo_move_to (cr, x0, y0 + r)
cairo_curve_to (cr, x0 , y0, x0 , y0, x0 + r, y0)
cairo_line_to (cr, x1 - r, y0)
cairo_curve_to (cr, x1, y0, x1, y0, x1, y0 + r)
cairo_line_to (cr, x1 , y1 - r)
cairo_curve_to (cr, x1, y1, x1, y1, x1 - r, y1)
cairo_line_to (cr, x0 + r, y1)
cairo_curve_to (cr, x0, y1, x0, y1, x0, y1- r)
end
end
cairo_close_path (cr)
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
cs, cr = nil -- initialize our cairo surface and context to nil
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)
if cs == nil or cairo_xlib_surface_get_width(cs) ~= conky_window.width or cairo_xlib_surface_get_height(cs) ~= conky_window.height then
if cs then cairo_surface_destroy(cs) end
cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
end
if cr then cairo_destroy(cr) end
cr = cairo_create(cs)
local updates=conky_parse('${updates}')
update_num=tonumber(updates)
if update_num>5 then
conky_round_rect(cr, 3, 0, conky_window.width-6, conky_window.height-3, 15)
cairo_set_source_rgba(cr, rgb_to_r_g_b(conky_background_color, conky_background_alpha))
cairo_fill(cr)
for i in pairs(settings_table) do
setup_rings(cr,settings_table)
end
end
cairo_destroy(cr)
cr = nil
end
function conky_cairo_cleanup()
cairo_surface_destroy(cs)
cs = nil
end
end -- math.mod(runscheck, 2) == 0
runscheck = runscheck + 1
Suskunluğum asaletimdendir,her lafa verilecek cevabım var. Ama bir lafa bakarım laf mı ? diye bir de söyleyene bakarım adam mı ? diye
https://yadi.sk/d/_uAxtKlUkTVAQ
Suskunluğum asaletimdendir,her lafa verilecek cevabım var. Ama bir lafa bakarım laf mı ? diye bir de söyleyene bakarım adam mı ? diye
#==============================================================================
# conkyrc_escamillo
# Date : dez/01/2014
# Author : lilaspastia
# Version : v0.1
# License : Distributed under the terms of GNU GPL version 2 or later
#
# This version is a modification of conky_lilas and conkyrc_seamod and samtech09 article
# samtech09 trick: https://trickslinux.wordpress.com/2013/06/08/listing-network-connections-along-with-associated-application-name-in-conky/
# conkyrc_lilas: http://lilaspastia.deviantart.com/art/Conky-Lilas-501664912
# conkyrc_seamod: http://seajey.deviantart.com/art/Conky-Seamod-v0-1-283461046
# conkyrc_orange: http://gnome-look.org/content/show.php?content=137503&forumpage=0
# conkyrc_lunatico: http://gnome-look.org/content/show.php?content=142884
#==============================================================================
background yes
update_interval 1
cpu_avg_samples 1
net_avg_samples 2
temperature_unit celsius
double_buffer yes
no_buffers yes
text_buffer_size 2048
gap_x 0
gap_y 0
minimum_size 1000 500
maximum_width 1020
own_window yes
own_window_type override
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_class conky-semi
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
alignment tr
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=10
xftalpha 0.5
uppercase no
# Defining colors
default_color FFFFFF
# Shades of Gray
color1 DDDDDD
color2 AAAAAA
color3 888888
# Orange
color4 EF5A29
# Green
color5 77B753
# Loading lua script for drawning rings
lua_load ~/.conky/escamillo_rings.lua
lua_draw_hook_post main
TEXT
#######Showing uptime and system info
${alignc}${font Ubuntu:size=10,weight:normal}${color1}$sysname $kernel $nodename Uptime: $uptime${color3}
########## Showing CPU Graph usage - 8 cpu
${cpugraph cpu1 50,100 7D8EE2 4B0082 -t}
CPU 01 ${color1}${cpu cpu1}% ${freq_g cpu1}GHz${color3}
${offset 150}${voffset -78}${cpugraph cpu2 50,100 7D8EE2 4B0082 -t}
${offset 150}CPU 02 ${color1}${cpu cpu2}% ${freq_g cpu2}GHz${color3}
${cpugraph cpu3 50,100 7D8EE2 4B0082 -t}
CPU 03 ${color1}${cpu cpu3}% ${freq_g cpu3}GHz${color3}
${offset 150}${voffset -78}${cpugraph cpu4 50,100 7D8EE2 4B0082 -t}
${offset 150}CPU 04 ${color1}${cpu cpu4}% ${freq_g cpu4}GHz${color3}
${cpugraph cpu5 50,100 7D8EE2 4B0082 -t}
CPU 05 ${color1}${cpu cpu5}% ${freq_g cpu5}GHz${color3}
${offset 150}${voffset -78}${cpugraph cpu6 50,100 7D8EE2 4B0082 -t}
${offset 150}CPU 06 ${color1}${cpu cpu6}% ${freq_g cpu6}GHz${color3}
${cpugraph cpu7 50,100 7D8EE2 4B0082 -t}
CPU 07 ${color1}${cpu cpu7}% ${freq_g cpu7}GHz${color3}
${offset 150}${voffset -78}${cpugraph cpu8 50,100 7D8EE2 4B0082 -t}
${offset 150}CPU 08 ${color1}${cpu cpu8}% ${freq_g cpu8}GHz${color3}
#######Showing diskgraph usage - read and write
${diskiograph_read 100,100 324D23 77B753}
IO read ${color1}${diskio_read}${color3}
${offset 150}${voffset -130}${diskiograph_write 100,100 4B1B0C FF5C2B}
${offset 150}IO write ${color1}${diskio_write}${color3}
#######Showing eth0 usage
${downspeedgraph eth0 100,100 324D23 77B753 5000 -t -l}
Down: $color1${downspeed eth0}${color3}
Total Down: ${color1}${totaldown}${color3}
${offset 150}${voffset -142}${upspeedgraph eth0 100,100 4B1B0C FF5C2B 5000 -t -l}
${offset 150}Up: $color1${upspeed eth0}${color3}
${offset 150}Total Up: ${color1}${totalup}${color3}
########## Showing TOP 09 CPU-consumers
${voffset -600}
${offset 800}${alignr}TOP CPU processes
${offset 800}${font Ubuntu:size=10,weight:normal}${color4}${top name 1}${alignr}${top cpu 1}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color1}${top name 2}${alignr}${top cpu 2}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color2}${top name 3}${alignr}${top cpu 3}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color3}${top name 4}${alignr}${top cpu 4}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color3}${top name 5}${alignr}${top cpu 5}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color3}${top name 6}${alignr}${top cpu 6}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color3}${top name 7}${alignr}${top cpu 7}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color3}${top name 8}${alignr}${top cpu 8}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color3}${top name 9}${alignr}${top cpu 9}%
########Showing memory part with TOP 5
${voffset 170}
${offset 800}${alignr}TOP memory usage
${offset 800}${font Ubuntu:size=10,weight:normal}${color4}${top_mem name 1}${alignr}${top_mem mem 1}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color1}${top_mem name 2}${alignr}${top_mem mem 2}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color2}${top_mem name 3}${alignr}${top_mem mem 3}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 4}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 5}${alignr}${top_mem mem 5}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 6}${alignr}${top_mem mem 6}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 7}${alignr}${top_mem mem 7}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 8}${alignr}${top_mem mem 8}%
${offset 800}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 9}${alignr}${top_mem mem 9}%
########Showing clock and date
${voffset 150}
${offset 450}${font Ubuntu:size=90,weight:normal}${time %H:%M:%S}${font}
${offset 450}${font Ubuntu:size=40,weight:normal}${time %d %B %Y}${font}
${offset 450}${font Ubuntu:size=40,weight:normal}${time %A}${font}
########Showing estab conn
${voffset -250}
Inbound: ${color1}${tcp_portmon 1 32767 count}${color3} Outbound: ${color1}${tcp_portmon 32768 61000 count}${color3} Total: ${color1}${tcp_portmon 1 65535 count}${color3}
Process Remote Host Local Port Remote-Port
${color1}${texeci 30 netstat -ap | grep 'ESTABLISHED' | sed -r 's|.*[0-9.]+:([0-9]*)s*([^:]+):([a-zA-Z]+)[^/]+/([a-zA-Z0-9]*)|4 2 1 3|' | awk '{printf("%-14s %-20s %5s %7sn",$1,$2,$3,$4)}'}${color3}
Suskunluğum asaletimdendir,her lafa verilecek cevabım var. Ama bir lafa bakarım laf mı ? diye bir de söyleyene bakarım adam mı ? diye
@nurullahisrgan buraya bir göz at
Suskunluğum asaletimdendir,her lafa verilecek cevabım var. Ama bir lafa bakarım laf mı ? diye bir de söyleyene bakarım adam mı ? diye
@nurullahisrgan buraya bir göz at
Teşekkürler..
Dünyɑda; peynir ekmek yersen gariban olursun. Ama peyniri ekmeğin üzerine koyup birde kürdan saplarsan sosyete olursun. ☺☺☺
conkyrc_3Dcompact
bckground yes
update_interval 0.5
cpu_avg_samples 1
net_avg_samples 2
temperature_unit celsius
double_buffer yes
no_buffers yes
text_buffer_size 2048
gap_x 0
gap_y 0
minimum_size 100 1000
maximum_width 1920
own_window yes
own_window_type override
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_class conky-semi
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
alignment tr
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=10
xftalpha 0.5
uppercase no
# Defining colors
default_color FFFFFF
# Shades of Gray
color1 DDDDDD
color2 AAAAAA
color3 888888
# Orange
color4 EF5A29
# Green
color5 77B753
# Loading lua script for drawning rings
lua_load ~/.conky/3Dcompact_rings.lua
lua_draw_hook_post main
TEXT
#######Showing uptime and system info
${alignc}${font Ubuntu:size=10,weight:normal}${color1}$sysname $kernel $nodename
${alignc}Uptime: $uptime${color3}
########## Showing CPU Graph usage - 8 cpu
${cpugraph cpu1 50,140 0000ff 00ff00 -t}${offset 10}${cpugraph cpu2 50,140 0000ff 00ff00 -t}
${font size=15}${voffset -31}CPU01 ${font size=15}${color1} ${freq_g cpu1}GHz${color3}${alignr}CPU02 ${color1} ${freq_g cpu2}GHz${color3}
${cpubar cpu1 5,140}${offset 10}${cpubar cpu2 5,140}
${cpugraph cpu3 50,140 0000ff 00ff00 -t}${offset 10}${cpugraph cpu4 50,140 0000ff 00ff00 -t}
########## Showing TOP 09 CPU-consumers
${voffset 0}
${font Ubuntu:size=10,weight:normal}${alignr}TOP CPU processes
${font Ubuntu:size=10,weight:normal}${color4}${top name 1}${alignr}${top cpu 1}%
${font Ubuntu:size=10,weight:normal}${color1}${top name 2}${alignr}${top cpu 2}%
${font Ubuntu:size=10,weight:normal}${color2}${top name 3}${alignr}${top cpu 3}%
########Showing memory part with TOP 5
${voffset 0}
${alignr}TOP memory usage
${font Ubuntu:size=10,weight:normal}${color4}${top_mem name 1}${alignr}${top_mem mem 1}%
${font Ubuntu:size=10,weight:normal}${color1}${top_mem name 2}${alignr}${top_mem mem 2}%
${font Ubuntu:size=10,weight:normal}${color2}${top_mem name 3}${alignr}${top_mem mem 3}%
${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 4}%
${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 5}${alignr}${top_mem mem 5}%
${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 6}${alignr}${top_mem mem 6}%
${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 7}${alignr}${top_mem mem 7}%
${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 8}${alignr}${top_mem mem 8}%
${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 9}${alignr}${top_mem mem 9}%
#######Showing diskgraph usage - read and write
${voffset 0}
${diskiograph_read 50,140 0000ff 00ff00 -t}
IO read ${color1}${diskio_read}${color3}
${offset 150}${voffset -80}${diskiograph_write 50,140 FFff00 ff0000 -t}
${offset 150} IO write ${color1}${diskio_write}${color3}
#######Showing eth0 usage
#${voffset -144}
${downspeedgraph eth0 100,140 0000ff 00ff00 5000 -t -l}
Down: $color1${downspeed eth0}${color3}
Total Down: ${color1}${totaldown}${color3}
${offset 150}${voffset -144}${upspeedgraph eth0 100,140 ffff00 ff0000 5000 -t -l}
${offset 150} Up: $color1${upspeed eth0}${color3}
${offset 150}Total Up: ${color1}${totalup}${color3}
########Showing estab conn
${voffset 0}
ESTABLISHED Connections
Inbound: ${color1}${tcp_portmon 1 32767 count}${color3} Outbound: ${color1}${tcp_portmon 32768 61000 count}${color3} Total: ${color1}${tcp_portmon 1 65535 count}${color3}
3Dcompact_rings.lua
require 'cairo'
--------------------------------------------------------------------------------
-- gauge DATA
gauge = {
{
name='cpu', arg='', max_value=116,
x=148, y=200,
graph_radius=120,
graph_thickness=48,
graph_start_angle=205,
graph_unit_angle=2.7, graph_unit_thickness=2.7,
graph_bg_colour=0xffffff, graph_bg_alpha=0.2,
graph_fg_colour=0xff0000, graph_fg_alpha=0.3,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.4,
txt_radius=100,
txt_weight=1, txt_size=50,
txt_fg_colour=0xffffff, txt_fg_alpha=0.6,
graduation_radius=28,
graduation_thickness=0, graduation_mark_thickness=1,
graduation_unit_angle=27,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
caption='CPU',
caption_weight=1, caption_size=30.0,
caption_fg_colour=0xFF0000, caption_fg_alpha=0.6,
},
{
name='hwmon 1 temp 1', arg='', max_value=116,
x=148, y=200,
graph_radius=50,
graph_thickness=40,
graph_start_angle=205,
graph_unit_angle=2.7, graph_unit_thickness=2.7,
graph_bg_colour=0xffffff, graph_bg_alpha=0.2,
graph_fg_colour=0xff0000, graph_fg_alpha=0.3,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.4,
txt_radius=50,
txt_weight=1, txt_size=40,
txt_fg_colour=0xffffff, txt_fg_alpha=0.6,
graduation_radius=28,
graduation_thickness=0, graduation_mark_thickness=1,
graduation_unit_angle=27,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
caption='°C',
caption_weight=1, caption_size=25.0,
caption_fg_colour=0xff0000, caption_fg_alpha=0.6,
},
{
name='memperc', arg='', max_value=116,
x=148, y=530,
graph_radius=120,
graph_thickness=48,
graph_start_angle=205,
graph_unit_angle=2.7, graph_unit_thickness=2.7,
graph_bg_colour=0xffffff, graph_bg_alpha=0.2,
graph_fg_colour=0x0000ff, graph_fg_alpha=0.3,
hand_fg_colour=0x0000ff, hand_fg_alpha=0.4,
txt_radius=120,
txt_weight=1, txt_size=40,
txt_fg_colour=0xffffff, txt_fg_alpha=0.6,
graduation_radius=28,
graduation_thickness=0, graduation_mark_thickness=1,
graduation_unit_angle=27,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
caption='RAM',
caption_weight=1, caption_size=30.0,
caption_fg_colour=0x0000ff, caption_fg_alpha=0.6,
},
{
name='swapperc', arg='', max_value=100,
x=148, y=530,
graph_radius=80,
graph_thickness=8,
graph_start_angle=225,
graph_unit_angle=2.7, graph_unit_thickness=2.7,
graph_bg_colour=0xffffff, graph_bg_alpha=0.2,
graph_fg_colour=0xFF0000, graph_fg_alpha=0.3,
hand_fg_colour=0xEF5A29, hand_fg_alpha=0.4,
txt_radius=80,
txt_weight=1, txt_size=16,
txt_fg_colour=0xffffff, txt_fg_alpha=0.6,
graduation_radius=28,
graduation_thickness=0, graduation_mark_thickness=1,
graduation_unit_angle=27,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
caption='SWAP %',
caption_weight=1, caption_size=10.0,
caption_fg_colour=0xff0000, caption_fg_alpha=0.6,
},
{
name='fs_used_perc', arg='/', max_value=100,
x=148, y=530,
graph_radius=65,
graph_thickness=8,
graph_start_angle=225,
graph_unit_angle=2.7, graph_unit_thickness=2.7,
graph_bg_colour=0xffffff, graph_bg_alpha=0.2,
graph_fg_colour=0xffffFF, graph_fg_alpha=0.3,
hand_fg_colour=0x0000ff, hand_fg_alpha=0.4,
txt_radius=65,
txt_weight=1, txt_size=16,
txt_fg_colour=0xffffff, txt_fg_alpha=0.6,
graduation_radius=28,
graduation_thickness=0, graduation_mark_thickness=1,
graduation_unit_angle=27,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
caption='ROOT %',
caption_weight=1, caption_size=10.0,
caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.6,
},
{
name='fs_used_perc', arg='/home', max_value=100,
x=148, y=530,
graph_radius=50,
graph_thickness=8,
graph_start_angle=225,
graph_unit_angle=2.7, graph_unit_thickness=2.7,
graph_bg_colour=0xffffff, graph_bg_alpha=0.2,
graph_fg_colour=0xffffFF, graph_fg_alpha=0.3,
hand_fg_colour=0x0000ff, hand_fg_alpha=0.4,
txt_radius=50,
txt_weight=1, txt_size=16,
txt_fg_colour=0xffffff, txt_fg_alpha=0.6,
graduation_radius=28,
graduation_thickness=0, graduation_mark_thickness=1,
graduation_unit_angle=27,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
caption='HOME %',
caption_weight=1, caption_size=10.0,
caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.6,
},
{
name='fs_used_perc', arg='/media/phi/data', max_value=100,
x=148, y=530,
graph_radius=35,
graph_thickness=8,
graph_start_angle=225,
graph_unit_angle=2.7, graph_unit_thickness=2.7,
graph_bg_colour=0xffffff, graph_bg_alpha=0.2,
graph_fg_colour=0xffffFF, graph_fg_alpha=0.3,
hand_fg_colour=0x0000ff, hand_fg_alpha=0.4,
txt_radius=35,
txt_weight=1, txt_size=16,
txt_fg_colour=0xffffff, txt_fg_alpha=0.6,
graduation_radius=28,
graduation_thickness=0, graduation_mark_thickness=1,
graduation_unit_angle=27,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
caption='DATA %',
caption_weight=1, caption_size=10.0,
caption_fg_colour=0xFFFFFF, caption_fg_alpha=0.6,
},
{
name='hwmon 1 temp 3', arg='', max_value=100,
x=30, y=1000,
graph_radius=20,
graph_thickness=10,
graph_start_angle=180,
graph_unit_angle=2.7, graph_unit_thickness=2.7,
graph_bg_colour=0xffffff, graph_bg_alpha=0.3,
graph_fg_colour=0xFF0000, graph_fg_alpha=0.5,
hand_fg_colour=0xEF5A29, hand_fg_alpha=1.0,
txt_radius=5,
txt_weight=1, txt_size=16.0,
txt_fg_colour=0xEF5A29, txt_fg_alpha=0.6,
graduation_radius=28,
graduation_thickness=0, graduation_mark_thickness=1,
graduation_unit_angle=27,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
caption='NorthBridge (°C)',
caption_weight=1, caption_size=10.0,
caption_fg_colour=0xEF5A29, caption_fg_alpha=0.6,
},
{
name='hwmon 1 temp 2', arg='', max_value=100,
x=180, y=1000,
graph_radius=20,
graph_thickness=10,
graph_start_angle=180,
graph_unit_angle=2.7, graph_unit_thickness=2.7,
graph_bg_colour=0xffffff, graph_bg_alpha=0.3,
graph_fg_colour=0xFF0000, graph_fg_alpha=0.5,
hand_fg_colour=0xEF5A29, hand_fg_alpha=1.0,
txt_radius=5,
txt_weight=1, txt_size=16.0,
txt_fg_colour=0xEF5A29, txt_fg_alpha=0.6,
graduation_radius=28,
graduation_thickness=0, graduation_mark_thickness=1,
graduation_unit_angle=27,
graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
caption='Motherboard (°C)',
caption_weight=1, caption_size=10.0,
caption_fg_colour=0xEF5A29, caption_fg_alpha=0.6,
},
}
-------------------------------------------------------------------------------
-- rgb_to_r_g_b
-- converts color in hexa to decimal
--
function rgb_to_r_g_b(colour, alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
-------------------------------------------------------------------------------
-- angle_to_position
-- convert degree to rad and rotate (0 degree is top/north)
--
function angle_to_position(start_angle, current_angle)
local pos = current_angle + start_angle
return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
end
-------------------------------------------------------------------------------
-- draw_gauge_ring
-- displays gauges
--
function draw_gauge_ring(display, data, value)
local max_value = data['max_value']
local x, y = data['x'], data['y']
local graph_radius = data['graph_radius']
local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
local graph_start_angle = data['graph_start_angle']
local graph_unit_angle = data['graph_unit_angle']
local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']
local hand_fg_colour, hand_fg_alpha = data['hand_fg_colour'], data['hand_fg_alpha']
local graph_end_angle = (max_value * graph_unit_angle) % 360
-- background ring
cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, 0), angle_to_position(graph_start_angle, graph_end_angle))
cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
cairo_set_line_width(display, graph_thickness)
cairo_stroke(display)
-- arc of value
local val = value % (max_value + 1)
local start_arc = 0
local stop_arc = 0
local i = 1
while i <= val do
start_arc = (graph_unit_angle * i) - graph_unit_thickness
stop_arc = (graph_unit_angle * i)
cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
cairo_set_source_rgba(display, rgb_to_r_g_b(graph_fg_colour, graph_fg_alpha))
cairo_stroke(display)
i = i + 1
end
local angle = start_arc
-- hand
start_arc = (graph_unit_angle * val) - (graph_unit_thickness * 2)
stop_arc = (graph_unit_angle * val)
cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
cairo_set_source_rgba(display, rgb_to_r_g_b(hand_fg_colour, hand_fg_alpha))
cairo_stroke(display)
-- graduations marks
local graduation_radius = data['graduation_radius']
local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
local graduation_unit_angle = data['graduation_unit_angle']
local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
local nb_graduation = graph_end_angle / graduation_unit_angle
local i = 0
while i < nb_graduation do
cairo_set_line_width(display, graduation_thickness)
start_arc = (graduation_unit_angle * i) - (graduation_mark_thickness / 2)
stop_arc = (graduation_unit_angle * i) + (graduation_mark_thickness / 2)
cairo_arc(display, x, y, graduation_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
cairo_stroke(display)
cairo_set_line_width(display, graph_thickness)
i = i + 1
end
end
-- text
local txt_radius = data['txt_radius']
local txt_weight, txt_size = data['txt_weight'], data['txt_size']
local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
local movex = txt_radius * math.cos(angle_to_position(graph_start_angle, angle))
local movey = txt_radius * math.sin(angle_to_position(graph_start_angle, angle))
cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, txt_weight)
cairo_set_font_size (display, txt_size)
cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
cairo_show_text (display, value)
cairo_stroke (display)
-- caption
local caption = data['caption']
local caption_weight, caption_size = data['caption_weight'], data['caption_size']
local caption_fg_colour, caption_fg_alpha = data['caption_fg_colour'], data['caption_fg_alpha']
local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, caption_weight);
cairo_set_font_size (display, caption_size)
cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
cairo_move_to (display, x + tox + 5, y + toy + 1)
-- bad hack but not enough time !
if graph_start_angle < 105 then
cairo_move_to (display, x + tox - 30, y + toy + 1)
end
cairo_show_text (display, caption)
cairo_stroke (display)
end
-------------------------------------------------------------------------------
-- go_gauge_rings
-- loads data and displays gauges
--
function go_gauge_rings(display)
local function load_gauge_rings(display, data)
local str, value = '', 0
str = string.format('${%s %s}',data['name'], data['arg'])
str = conky_parse(str)
value = tonumber(str)
if value == nil then value = 0 end
draw_gauge_ring(display, data, value)
end
for i in pairs(gauge) do
load_gauge_rings(display, gauge)
end
end
-------------------------------------------------------------------------------
-- MAIN
function conky_main()
if conky_window == nil then
return
end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local display = cairo_create(cs)
local updates = conky_parse('${updates}')
update_num = tonumber(updates)
if update_num > 5 then
go_gauge_rings(display)
end
cairo_surface_destroy(cs)
cairo_destroy(display)
end
Suskunluğum asaletimdendir,her lafa verilecek cevabım var. Ama bir lafa bakarım laf mı ? diye bir de söyleyene bakarım adam mı ? diye