Saphyel escribió:@coyote puedes compartir tu conky? ^^
.conkyrcuse_xft yes
xftfont Droid Sans:size=8
xftalpha 0.1
update_interval 1
total_run_times 0
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
minimum_size 200
maximum_width 200
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color A0A0A0
default_shade_color 000000
alignment top_left
gap_x 1700
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
lua_load ~/Scripts/draw_bg.lua
lua_draw_hook_pre draw_bg
TEXT
${font Liberation Sans:bold:size=8}\
${offset 5}${color #FFFFFF}Linux:${color #C2C2C2}${alignr}${kernel} ${machine}
${offset 5}${color #FFFFFF}Uptime:${color #C2C2C2}${alignr}${uptime}
${offset 5}${color #FFFFFF}Core: ${color #C2C2C2}${alignr}${cpu cpu1} % - ${cpu cpu2} %
${offset 5}${color #FFFFFF}Freq: ${color #C2C2C2}${alignr}${freq_g 1} Ghz - ${freq_g 2} Ghz
${offset 5}${color #FFFFFF}Max CPU:${goto 84}${color #A7A7A7}${top name 1}${color #C2C2C2}${alignr}${top cpu 1}
${offset 5}${color #FFFFFF}RAM Usada: ${color #C2C2C2}${alignr}$mem ($memperc%)
${offset 5}${color #FFFFFF}RAM Libre: ${color #C2C2C2}${alignr}${memeasyfree}
${offset 5}${color #FFFFFF}Max MEM:${goto 84}${color #A7A7A7}${top_mem name 1}${alignr}${color #C2C2C2}${top_mem mem 1}
${offset 5}${color #FFFFFF}Subida ${color #C2C2C2}${alignr}${upspeed eth0}/s
${offset 5}${color #FFFFFF}Total Subida: ${color #C2C2C2}${alignr}${totalup eth0}
${offset 5}${color #FFFFFF}Descarga: ${color #C2C2C2}${alignr}${downspeed eth0}/s
${offset 5}${color #FFFFFF}Total Descarga: ${color #C2C2C2}${alignr}${totaldown eth0}
${offset 5}${color #FFFFFF}IP Pública:${goto 90}${color #C2C2C2}${alignr}${execi 3600 /home/archero/Scripts/ip.sh}
${offset 5}${color #FFFFFF}Root: ${color #C2C2C2}${alignr}${fs_used /} / ${fs_size /}
${offset 5}${color #FFFFFF}Home: ${color #C2C2C2}${alignr}${fs_used /home} / ${fs_size /home}
${offset 5}${color #FFFFFF}Almacen: ${color #C2C2C2}${alignr}${fs_used /almacen} / ${fs_size /almacen}
draw_bg.lua--[[
Background by londonali1010 (2009)
This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
lua_load ~/scripts/draw_bg.lua
lua_draw_hook_pre draw_bg
Changelog:
+ v1.0 -- Original release (07.10.2009)
]]
-- Change these settings to affect your background.
-- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
corner_r=20
-- Set the colour and transparency (alpha) of your background.
bg_colour=0x000000
bg_alpha=0.0
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_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
ip.sh#!/bin/bash
# eigene öffentliche ip anzeigen
wget -4 http://checkip.dyndns.org/ -q -O - |
grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'