› Foros › PC › Software libre
sudo apt-get install conky-all
nano ~/.config/autostart/conky.desktop
[Desktop Entry]
Type=Application
Name=Monitor
Exec=conky
Icon=
Comment=Monitor de sistema
X-GNOME-Autostart-enabled=true
nano ~/.conkyrc
background yes
use_xft yes
xftfont Liberation Sans:size=10
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent no # cambiar a yes para fondo transparente
own_window_type dock
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 180 #Cantidad de fondo oscuro
double_buffer yes
minimum_size 320 768 # ajustar la posición de conky
maximum_width 0
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 656667
default_shade_color 000000
default_outline_color 828282
default_bar_size 240 7
alignment top_right
gap_x 30 # Ubicación de ventana
gap_y 0 # Ubicación de ventana
no_buffers yes
uppercase no
cpu_avg_samples 4
override_utf8_locale yes
pad_percents 2
##########
# Output #
##########
TEXT
${alignr 20}${color #FFFFFF}${font ADELE:size=15}${time %B} ${time %e} ${time %A} ${font}${voffset -5}
${alignr 20}${voffset 5}${font ADELE:size=40}${time %I:%M %p}${font}${voffset -5}
${alignr 20}${color #FFFFFF}${font ADELE:pixelsize=15} Intel® Core™ i5-460M @2.53${font}
${color #FFFFFF} ${cpugraph 0555555 AAAAAA -0.5 -l}
${alignr 20}${font ADELE size=15}${color FFFFFF}${freq_g cpu0}GHz ${cpu voltage_v}V ${cpu cpu0}%
${alignr 20}${font ADELE:pixelsize=20}${voffset 15}${mem} / ${memperc} % RAM${font}
${alignr 20}${membar}
${alignr 20}${font ADELE:pixelsize=20}${voffset 15}${fs_free /} debian ${font}
${alignr 20}${fs_bar /}
${alignr 20}${font ADELE:pixelsize=20}${voffset 15}${fs_free /media/1TB} / 1000GB${font}
${alignr 20}${fs_bar /media/1TB}
${alignr 20}${color FFFFFF}${font ADELE: size=12} ${exec hostnamectl | grep System | cut -c21-100}
${alignr 20}${color FFFFFF}${font ADELE: size=12} ${exec hostnamectl | grep Architecture | cut -c7-100}
${alignr 20}${color FFFFFF}${font ADELE: size=12} ${exec hostnamectl | grep Kernel | cut -c13-100}
${alignr 20}${font ADELE:pixelsize=17}${voffset 15}${uptime} UPTIME${font}
${alignr 20}${color FFFFFF}${font ADELE: size=12} IPs local: ${execi 1000 ip a | grep inet | grep -vw lo | grep -v inet6 | cut -d \/ -f1 | sed 's/[^0-9\.]*//g'}
${alignr 20}${color FFFFFF}${font ADELE: size=12} IPs externo: ${execi 1000 wget -q -O- http://ipecho.net/plain; echo}
mv ~/.conkyrc ~/.conkyrc.bak
cd ~/Descargas
wget https://github.com/circumjacence/ConkyInfinitySVG/archive/master.zip
unzip master.zip
mv ~/Descargas/ConkyInfinitySVG-master/.conky ~/
chmod a+x ~/.conky/startconky.sh
nano ~/.config/autostart/conky.desktop
[Desktop Entry]
Type=Application
Name=Monitor
Exec=~/.conky/startconky.sh
Icon=
Comment=Monitor de sistema
X-GNOME-Autostart-enabled=true
nano ~/.conkyrc
## Conky opciones
background yes
update_interval 1.0
cpu_avg_samples 4
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
imlib_cache_size 50
## Text settings
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no
default_color b7b7b7
## Opciones de ventana
# Opciones de transparencia
own_window yes
own_window_transparent yes
own_window_type dock
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 0
## Resolucion y ajuste de ventana
maximum_width 1366
minimum_size 1366 768
#alignment top_left
#alignment top_right
alignment bottom_right
gap_x -70
gap_y -130
border_inner_margin 0
border_outer_margin 0
border_width 0
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
#temperature_unit fahrenheit
temperature_unit celsius
## Lua: Anillos
lua_load ~/.conky/scripts/haunted.lua
lua_draw_hook_pre clock_rings
##########
# Lo que sigue es todo la información y las barras
##########
TEXT
# Reloj
${offset 700}${color EAEAEA}${font GE Inspira:pixelsize=120}${time %H:%M}${font}${voffset -84}${voffset 10}${color FFA300}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time %B} ${time %Y}${font}${voffset 124}${font GE Inspira:pixelsize=58}${offset -547}${time %A}${font}
${offset 700}${voffset -100}${font Ubuntu:pixelsize=10}${color FFA300}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color FFA300}RAM ${offset 9}$color$mem / $memmax${offset 30}${color FFA300}CPU ${offset 9}$color${cpu cpu0}%
${voffset 10}${offset 295}${color 2c2c2c}${hr 4}
${image ~/.conky/background.png}
# Disk usage node
${offset 120}${voffset 223}${color 4a89a7}${font Santana:size=8:style=Bold}root$color${font Santana:size=8} : ${offset 16}${fs_used /}/${fs_size /}
${offset 120}${voffset 12}${color 46a646}${font Santana:size=8:style=Bold}home$color${font Santana:size=8} : ${offset 7}${fs_used /home}/${fs_size /home}$font
${offset 120}${voffset 12}${color e83737}${font Santana:size=8:style=Bold}swap$color${font Santana:size=8} : ${offset 10}${swap} / ${swapfree}$font
# "Home" node (kernel, etc.)
${offset 583}${voffset -108}$color${font Santana:size=9:style=Bold}Linux ${kernel} kernel
${offset 585}${voffset 0}${color f4732d}${font Santana:size=8}Uptime : ${offset 9}$color${uptime}
# "User" node (whoami, top process, etc.)
#${offset 833}${voffset -78}$color${font Santana:size=9:style=Bold}${exec whoami}@${nodename}
${offset 833}${voffset -78}$color${font Santana:size=9:style=Bold}debian@luces
${offset 835}${voffset 0}$color${font Santana:size=8}${color 46a646}Top (CPU) : ${offset 9}$color${top name 5} ${top cpu 5}
${offset 835}${voffset 0}$color${font Santana:size=8}${color 46a646}Top (RAM) : ${offset 9}$color${top_mem name 5} ${top_mem mem 5}
${offset 835}${voffset 0}${color 6f6f6f}CPU Usage (${cpu}%) :
${offset 835}${voffset -2}$color${font Santana:size=8}${color 2c2c2c}${cpugraph 32,200 2c2c2c 46a646}
# "Network" node (IP, connections, etc.)
${offset 713}${voffset 88}$color${font Santana:size=9:style=Bold}IP Address : ${addr wlo1}
${offset 715}${voffset 0}$color${font Santana:size=8}TCP Connections : ${tcp_portmon 1 65535 count}
${offset 715}${voffset 0}${font Santana:size=8}${color f4732d}Down : ${offset 9}$color${downspeed wlo1}/s ${offset 8}${color ebff46}Up : ${offset 9}$color${upspeed wlo1} /s
${offset 715}${voffset 0}${color 6f6f6f}${font Santana:size=8}Interface wlo1 Usage :
${offset 715}${voffset -2}$color${font Santana:size=8}${color 2c2c2c}${downspeedgraph wlo1 32,200 b7b7b7 f4732d}
${offset 715}${voffset -5}${color 2c2c2c}${upspeedgraph wlo1 32,200 b7b7b7 ebff46}
# Positioning eset for static text examples below
${voffset -158}
# Static text example: Logo
${offset 120}${color EAEAEA}${font Ubuntu:pixelsize=15}${color f4732d}${exec hostnamectl | grep System | cut -c21-100}$color ${exec hostnamectl | grep Architecture | cut -c7-100}
conky.config = {
use_xft = yes,
own_window = true,
own_window_transparent = false,
own_window_type = 'normal',
own_window_class = 'conky-semi',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_argb_visual = true,
background = true,
text_buffer_size = 2048,
minimum_width = 1920,
use_xft = true,
xftalpha = 0.1,
update_interval = 1,
total_run_times = 0,
double_buffer = true,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
border_width = 0,
default_color = 'white',
default_shade_color = 'grey',
default_outline_color ='grey',
own_window_colour = '252525',
font = 'Droid Sans Bold:size=9',
gap_x = 1063,
gap_y = 0,
uppercase = false,
no_buffers = true,
net_avg_samples = 2,
cpu_avg_samples = 2,
override_utf8_locale = true,
use_spacer = 'none',
}
conky.text = [[
${alignc}${voffset 0}${offset 0}\
${font Droid Sans:Bold:size=9}\
${offset 2}${color}Linux: ${color grey}${kernel} ${machine}${color}${offset -2}\
${offset 2}${color}CPU usada: ${color grey}${cpu}%${offset -2}\
${offset 2}${color}CPU F: ${color grey}${freq cpu} MHz${offset -2}\
${offset 2}${color}RAM usada: ${color grey}$mem ($memperc%)${color}${offset -2}\
${offset 2}${color}RAM : ${color grey}${top_mem name 1}${color}${offset -2}\
${offset 2}${color}Swap: ${color grey}${swapperc}%${offset -2}\
${offset 2}${color}Root: ${color grey}${fs_used /}/${fs_size /}${color}${offset -2}\
${offset 2}${color}Home: ${color grey}${fs_used /home}/${fs_size /home}${color}${offset -2}\
${offset 2}${color}Root: ${color grey}${fs_used /}/${fs_size /}${color}${offset -2}\
${offset 2}${color}CPU TEMP: ${color grey}${exec sensors | grep 'Package id 0'| cut -c 17-18 } °C${color}${offset -2}\
${offset 2}${color}GPU TEMP: ${color grey}${exec nvidia-settings -q GPUCoreTemp | grep 0.0 | cut -d ' ' -f 6 | cut -c 1-2}°C${color}${offset -2}\
${offset 2}${color}Subida ${color grey}${upspeed enp4s0}${color}${offset -2}\
${offset 2}${color}T. Subida: ${color grey}${totalup enp4s0}${color}${offset -2}\
${offset 2}${color}Descarga: ${color grey}${downspeed enp4s0}${color}${offset -2}\
${offset 2}${color}T. Descarga: ${color grey}${totaldown enp4s0}${color}${offset -2}
]]