› Foros › PC › Software libre
IvancitoTk escribió:¿Gracias?
En fin, solucione lo del conky sobre las otras ventanas.
El tema es que no me anda el Conky, por más que intento e intento.
En fin..
Encontrare solución por otro lado. Parece que acá molestan las preguntas..
rikimaru123 escribió:Una dudilla. Tengo configurado mi script de conky con conkycolors, ¿puedo copiar alguno de los vuestros que lo hayáis configurado manualmente?
Gracias
background yes
font Ubuntu:size=9
xftfont Ubuntu:size=9
use_xft yes
xftalpha 0.5
update_interval 1
total_run_times 0
text_buffer_size 2048
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades yes
draw_outline yes
draw_borders no
draw_graph_borders no
minimum_size 350
maximum_width 350
default_color ffffff
default_shade_color 000000
draw_outline no
alignment top_right
gap_x 10
gap_y 36
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no
use_spacer none
TEXT
${image ~/.conkypatch/icons/logo.png -p 18,0 -s 45x45}
${goto 74}${voffset -35}${font Poky:pixelsize=40}S${font}${voffset -25} Ubuntu 11.04 Natty Narwhal with Unity
${goto 125}Kernel: $kernel $machine
${goto 125}Tiempo de uso: $uptime_short
##FECHA
${font Poky:pixelsize=32}d${font} ${font Ubuntu:size=12}Fecha${font} ${hr 2}
${font Ubuntu:size=40}$alignc${time %H:%M:%S}${font}
${font Ubuntu:size=15}$alignc${time %A %d} de ${time %B} de ${time %Y}${font}
${hr 2}
##CPU
${alignc}CPU${voffset -8} ${font Poky:pixelsize=22}P${font} ${voffset -5}${freq_g 1} GHz ${alignc}
${alignc}${voffset -15} ${cpugraph CPU0 20,80 FFF6CD FF0B00 -t} ${cpu CPU1}%
${goto 33}${voffset 30}${font weather:pixelsize=60}zx${font}${voffset -35} CPU: ${acpitemp}°C
${goto 70}GPU:
${goto 70}HDD: ${hddtemp /dev/sda}°C
##MEMORIA
${font Poky:pixelsize=32}a${font} ${font Ubuntu:size=12}Memoria${font} ${hr 2}
RAM: $mem / $memmax ${color A0CCFF}${membar 4,180}${color} $memperc%
Swap: $swap / $swapmax ${color A0CCFF}${swapbar 4,180}${color} $swapperc%
##NET
${font Poky:pixelsize=32}w${font}${font Ubuntu:size=12}NET${font}${hr 2}
IP Privada: ${addr eth0}
IP Pública: ${execi 7200 wget -q -O- http://www.whatismyip.com/automation/n09230945.asp ‘{print $5}’}
${if_up eth0}
Velocidad de descarga: ${downspeed eth0}/s${alignr}Velocidad de subida: ${upspeed eth0}/s
${downspeedgraph eth0 25,150 D9FFDF A5FEB3}${alignr}${upspeedgraph eth0 25,150 FEC2A5 FA9C6F}
Total: Descarga: ${totaldown eth0} Subida: ${totalup eth0}${endif}
#ALAMACENAMIENTO
${font Poky:pixelsize=32}y${font} ${font Ubuntu:size=12}Almacenamiento${font} ${hr 2}
sda: ${fs_free /} / ${fs_size /}${alignr}${color 83A1FF}${fs_bar 4,150 /}${color}
HDD Ext. 500GB: ${fs_free /media/500 GB} / ${fs_size /media/500 GB}${alignr}${color 83A1FF}${fs_bar 4,150 /media/500 GB}${color}
HDD Ext. 250GB: ${fs_free /media/HDD 250GB} / ${fs_size /media/HDD 250GB}${alignr}${color 83A1FF}${fs_bar 4,150 /media/HDD 250GB}${color}
##Tiempo
${if_existing /proc/net/route eth0}
${font ConkyWeather:size=32}D${font} ${font Ubuntu:size=12}Tiempo en ${execi 600 conkyForecast --datatype=CN} (${execi 600 conkyForecast --datatype=CO})${font} ${hr 2}
${voffset 20}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=SPXX0002 --datatype=HT}${font}${voffset -30}${goto 200}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=SPXX0002 --datatype=WF}${font}${voffset -14} ${execi 600 conkyForecast --datatype=CT}
${voffset 15}${alignc 60}${execpi 600 conkyForecast --location=SPXX0002 --datatype=DW --startday=1 --shortweekday} ${alignc 5}${execpi 600 conkyForecast --location=SPXX0002 --datatype=DW --startday=2 --shortweekday} ${alignc -50}${execpi 600 conkyForecast --location=SPXX0002 --datatype=DW --startday=3 --shortweekday} ${alignc -100}${execpi 600 conkyForecast --location=SPXX0002 --datatype=DW --startday=4 --shortweekday}
${voffset 0}${alignc 100}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=SPXX0002 --datatype=WF --startday=1 --endday=1 --spaces=1}${font}${voffset -17}${alignc 40}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=SPXX0002 --datatype=WF --startday=2 --endday=2 --spaces=1}${font}${voffset -30}${alignc -23}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=SPXX0002 --datatype=WF --startday=3 --endday=3 --spaces=1}${font}${voffset -27}${goto 260}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=SPXX0002 --datatype=WF --startday=4 --endday=4 --spaces=1}${font}
${voffset 5}${font DejaVu Sans:size=7}${alignc 24}${execpi 600 conkyForecast --location=SPXX0002 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0002 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -20}${execpi 600 conkyForecast --location=SPXX0002 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0002 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -60}${execpi 600 conkyForecast --location=SPXX0002 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0002 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 50}${execpi 600 conkyForecast --location=SPXX0002 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0002 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
${else}
${font PizzaDude Bullets:size=14}4${font} Tiempo No disponible
${endif}
blackgem escribió:IvancitoTk escribió:
Iván!
simplemente retrasa su ejecucion con un sleep para que se inicie mas tarde, te ahorras matarlo (ASESINO).
Bienvenido y evita usar mayusculas, negritas y demas formas de atencion de forma abusiva pues muchas veces conseguiras precisamente el efecto contrario, que no te contesten todo lo correctamente que podria ser..., como en este caso ^^.
messiah escribió:blackgem escribió:IvancitoTk escribió:
Iván!
simplemente retrasa su ejecucion con un sleep para que se inicie mas tarde, te ahorras matarlo (ASESINO).
Bienvenido y evita usar mayusculas, negritas y demas formas de atencion de forma abusiva pues muchas veces conseguiras precisamente el efecto contrario, que no te contesten todo lo correctamente que podria ser..., como en este caso ^^.
y eso como se hace?tengo el mismo problema
bash -c "sleep 10; conky"
############
# - By spyker - #
############
################
# - Conky settings - #
################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
imlib_cache_size 0
double_buffer yes
no_buffers yes
format_human_readable
#####################
# - Text settings - #
#####################
use_xft yes
xftfont Droid Sans:size=8
override_utf8_locale yes
text_buffer_size 2048
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
gap_x 25
gap_y 40
minimum_size 182 0
maximum_width 182
default_bar_size 60 8
#########################
# - Graphics settings - #
#########################
draw_shades no
default_color cccccc
color0 white
color1 E07A1F
color2 white
lua_load ~/.conkycolors/scripts/conkyCairo.lua
lua_draw_hook_pre conky_widgets white 1 off_ORC off_Swap off_Clock off_Player off_Player off_Shape
TEXT
#############
# - CLOCK - #
#############
${voffset 4}${font Droid Sans:style=Bold:size=8}HORA $stippled_hr${font}
${voffset 4}${goto 32}${font clockfaces:size=40}O${font}
${voffset -34}${goto 41}${font zoraclockH:size=30}${color2}${execpi 120 ~/.conkycolors/bin/conkyClock hour}${color}${font}
${voffset -39}${goto 35}${font zoraclockM:size=40}${color2}${execpi 60 ~/.conkycolors/bin/conkyClock minute}${color}${font}
${goto 100}${voffset -40}${font Droid Sans:style=Bold:size=11}${color2}${time %H}${time :%M}${time :%S}${color}${font}
${goto 100}${voffset -2}${goto 100}${font Droid Sans:style=Bold:size=8}${color2}${time %A}${color}${font}
${goto 100}${time %d %b %Y}${voffset 8}
##########
# - HD - #
##########
${voffset 4}${font Droid Sans:style=Bold:size=8}DISCO DURO $stippled_hr${font}
${execpi 30 ~/.conkycolors/bin/conkyHD1}
##############
# - SYSTEM - #
##############
${font Droid Sans:style=Bold:size=8}SISTEMA $stippled_hr${font}
${color0}${voffset 6}${font OpenLogos:size=19}B${font}${color}${goto 32}${voffset -14}Kernel: ${alignr}${color2}${kernel}${color}
${goto 32}Actividad: ${alignr}${color2}${uptime}${color}
# |--GMAIL
${goto 32}Gmail: ${alignr}${font Droid Sans:style=Bold:size=8}${color0}${execpi 3600 ~/.conkycolors/bin/conkyEmail --servertype=IMAP --servername=imap.googlemail.com -u (tu correo) -p (tu password del correo) --ssl}${color}${font} nouve email(s)
# |--CPU
${offset 1}${color0}${font Poky:size=16}P${color}${font}${voffset -4}${goto 32}CPU: ${font Droid Sans:style=Bold:size=8}${color1}${cpu cpu1}%${font} ${alignr}${font Droid Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'Core 0' | cut -c15-16}°C${color}${font} ${color2}${cpugraph cpu1 8,50 CE5C00 E07A1F}${color}
# |--MEM
${color0}${font Poky:size=16}M${font}${color}${goto 32}${voffset -7}RAM: ${font Droid Sans:style=Bold:size=8}${color1}$memperc%${color}${font}
${offset 1}${voffset 2}${color0}${membar 4,18}${color}${goto 32}${voffset -2}F: ${font Droid Sans:style=Bold:size=8}${color2}${memeasyfree}${color}${font} U: ${font Droid Sans:style=Bold:size=8}${color2}${mem}${color}${font}
# |--CPU
${voffset 2}${color0}${font Poky:size=14}s${font}${color}${voffset -8}${goto 32}SWAP: ${font Droid Sans:style=Bold:size=8}${color1}${swapperc}%${color}${font}
${voffset 4}${offset 1}${color0}${swapbar 4,18}${color}${voffset -4}${goto 32}F: ${font Droid Sans:style=Bold:size=8}${color2}$swapmax${color}${font} U: ${font Droid Sans:style=Bold:size=8}${color2}$swap${color}${font}
###############
# - NETWORK - #
###############
${voffset 4}${font Droid Sans:style=Bold:size=8}INFO RED $stippled_hr${font}
# |--WLAN0
${if_up wlan0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Envío: ${font Droid Sans:style=Bold:size=8}${color1}${upspeed wlan0}${color}${font} ${alignr}${color2}${upspeedgraph wlan0 8,60 CE5C00 E07A1F}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totalup wlan0}${color}${font}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Recibo: ${font Droid Sans:style=Bold:size=8}${color1}${downspeed wlan0}${color}${font} ${alignr}${color2}${downspeedgraph wlan0 8,60 CE5C00 E07A1F}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totaldown wlan0}${color}${font}
${voffset -2}${color0}${font Poky:size=14}Y${font}${color}${goto 32} ${voffset -2}Señal: ${font Droid Sans:style=Bold:size=8}${color1}${wireless_link_qual wlan0}%${color}${font} ${alignr}${color2}${wireless_link_bar 8,60 wlan0}${color}
${voffset 4}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -8}Ip Local: ${alignr}${color2}${addr wlan0}${color}
${goto 32}Ip Pública: ${alignr}${color2}${execi 10800 ~/.conkycolors/bin/conkyIp}${color}
# |--ETH0
${else}${if_up eth0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Envío: ${font Droid Sans:style=Bold:size=8}${color1}${upspeed eth0}${color}${font} ${alignr}${color2}${upspeedgraph eth0 8,60 CE5C00 E07A1F}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totalup eth0}${color}${font}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Recibo: ${font Droid Sans:style=Bold:size=8}${color1}${downspeed eth0}${color}${font} ${alignr}${color2}${downspeedgraph eth0 8,60 CE5C00 E07A1F}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totaldown eth0}${color}${font}
${voffset -2}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -4}Ip Local: ${alignr}${color2}${addr eth0}${color}
${goto 32}Ip Pública: ${alignr}${color2}${execi 10800 ~/.conkycolors/bin/conkyIp}${color}
# |--PPP0
${else}${if_up ppp0}
${voffset -13}${color0}${font VariShapes Solid:size=14}q${font}${color}${goto 32}${voffset -6}Envío: ${font Droid Sans:style=Bold:size=8}${color1}${upspeed ppp0}${color}${font} ${alignr}${color2}${upspeedgraph ppp0 8,60 CE5C00 E07A1F}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totalup ppp0}${color}${font}
${voffset -2}${color0}${font VariShapes Solid:size=14}Q${font}${color}${goto 32}${voffset -6}Recibo: ${font Droid Sans:style=Bold:size=8}${color1}${downspeed ppp0}${color}${font} ${alignr}${color2}${downspeedgraph ppp0 8,60 CE5C00 E07A1F}${color}
${goto 32}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totaldown ppp0}${color}${font}
${voffset -2}${color0}${font Poky:size=13}w${font}${color}${goto 32}${voffset -4}Ip Local: ${alignr}${color2}${addr ppp0}${color}
${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color}${goto 32}Red no disponible${voffset 14}${endif}${endif}${endif}
# 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 fahrenheit
# Window specifications #
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 200 250
maximum_width 200
alignment tr
gap_x 35
gap_y 55
# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no
temperature_unit celsius
default_color FFFFFF
# Lua Load #
#lua_load ~/.lua/scripts/clock_rings.lua
lua_load ~/scripts/clock_rings.lua
lua_draw_hook_pre clock_rings
TEXT
${voffset 8}${color 0066FF}${font caviar dreams:size=16}${time %A}${font}${voffset -8}${alignr 50}${color FFFFFF}${font caviar dreams:size=38}${time %e}${font}
${color FFFFFF}${voffset -30}${color FFFFFF}${font caviar dreams:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font caviar dreams:size=20}${time %Y}${font}${color 0066FF}${hr}
${voffset 140}${font caviar dreams:size=10}${alignr}Last Sync:${font}
${font caviar dreams:size=12}${color FFFFFF}${alignr}${execi 180 date -d "`cat /usr/portage/metadata/timestamp.chk`"} ${font}
##${image ~/.conky/fedora-logo.png -p 58,115 -s 80x35}
${color FFFFFF}${goto 25}${voffset 35}${cpu cpu0}%
${color 0066FF}${goto 25}CPU
${color FFFFFF}${goto 50}${voffset 23}${memperc}%
${color 0066FF}${goto 50}RAM
${color FFFFFF}${goto 75}${voffset 23}${swapperc}%
${color 0066FF}${goto 75}Swap
${color FFFFFF}${goto 100}${voffset 23}${fs_used_perc /}%
${color 0066FF}${goto 100}Disk
${color FFFFFF}${goto 125}${voffset 25}${downspeed eth0}
${color FFFFFF}${goto 125}${upspeed eth0}
${color 0066FF}${goto 125}Net
${color FFFFFF}${font caviar dreams:size=8}Uptime: ${uptime_short}
${color FFFFFF}${font caviar dreams:size=8}Processes: ${processes}
${color FFFFFF}${font caviar dreams:size=8}Running: ${running_processes}
${color 0066FF}${font caviar dreams:size=8}${alignr}${nodename}
${color 0066FF}${font caviar dreams:size=8}${alignr}${pre_exec cat /etc/issue.net} $machine
${color 0066FF}${font caviar dreams:size=8}${alignr}Kernel: ${kernel}
--[[
Clock Rings by Linux Mint (2011) reEdited by despot77
This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua 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/clock_rings.lua
lua_draw_hook_pre clock_rings
Changelog:
+ v1.0 -- Original release (30.09.2009)
v1.1p -- Jpope edit londonali1010 (05.10.2009)
*v 2011mint -- reEdit despot77 (18.02.2011)
]]
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=0xffffff,
-- "bg_alpha" is the alpha value of the base ring.
bg_alpha=0.1,
-- "fg_colour" is the colour of the indicator part of the ring.
fg_colour=0x0066FF,
-- "fg_alpha" is the alpha value of the indicator part of the ring.
fg_alpha=0.2,
-- "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=100, y=150,
-- "radius" is the radius of the ring.
radius=50,
-- "thickness" is the thickness of the ring, centred around the radius.
thickness=5,
-- "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 than start_angle.
end_angle=360
},
{
name='time',
arg='%M.%S',
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x0066FF,
fg_alpha=0.4,
x=100, y=150,
radius=56,
thickness=5,
start_angle=0,
end_angle=360
},
{
name='time',
arg='%S',
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x0066FF,
fg_alpha=0.6,
x=100, y=150,
radius=62,
thickness=5,
start_angle=0,
end_angle=360
},
{
name='time',
arg='%d',
max=31,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x0066FF,
fg_alpha=0.8,
x=100, y=150,
radius=70,
thickness=5,
start_angle=-90,
end_angle=90
},
{
name='time',
arg='%m',
max=12,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x0066FF,
fg_alpha=1,
x=100, y=150,
radius=76,
thickness=5,
start_angle=-90,
end_angle=90
},
{
name='cpu',
arg='cpu0',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0066FF,
fg_alpha=0.8,
x=50, y=300,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
},
{
name='memperc',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0066FF,
fg_alpha=0.8,
x=75, y=350,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
},
{
name='swapperc',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0066FF,
fg_alpha=0.8,
x=100, y=400,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
},
{
name='fs_used_perc',
arg='/',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0066FF,
fg_alpha=0.8,
x=125, y=450,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
},
{
name='downspeedf',
arg='eth0',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0066FF,
fg_alpha=0.8,
x=150, y=500,
radius=25,
thickness=4,
start_angle=-90,
end_angle=180
},
{
name='upspeedf',
arg='eth0',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0xff3300,
fg_alpha=0.8,
x=150, y=500,
radius=20,
thickness=4,
start_angle=-90,
end_angle=180
},
}
-- Use these settings to define the origin and extent of your clock.
clock_r=65
-- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.
clock_x=100
clock_y=150
show_seconds=true
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 draw_clock_hands(cr,xc,yc)
local secs,mins,hours,secs_arc,mins_arc,hours_arc
local xh,yh,xm,ym,xs,ys
secs=os.date("%S")
mins=os.date("%M")
hours=os.date("%I")
secs_arc=(2*math.pi/60)*secs
mins_arc=(2*math.pi/60)*mins+secs_arc/60
hours_arc=(2*math.pi/12)*hours+mins_arc/12
-- Draw hour hand
xh=xc+0.7*clock_r*math.sin(hours_arc)
yh=yc-0.7*clock_r*math.cos(hours_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xh,yh)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_line_width(cr,5)
cairo_set_source_rgba(cr,1.0,1.0,1.0,1.0)
cairo_stroke(cr)
-- Draw minute hand
xm=xc+clock_r*math.sin(mins_arc)
ym=yc-clock_r*math.cos(mins_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xm,ym)
cairo_set_line_width(cr,3)
cairo_stroke(cr)
-- Draw seconds hand
if show_seconds then
xs=xc+clock_r*math.sin(secs_arc)
ys=yc-clock_r*math.cos(secs_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xs,ys)
cairo_set_line_width(cr,1)
cairo_stroke(cr)
end
end
function conky_clock_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)
pct=value/pt['max']
draw_ring(cr,pct,pt)
end
-- Check that Conky has been running for at least 5s
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
draw_clock_hands(cr,clock_x,clock_y)
end
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
imlib_cache_size 0
double_buffer yes
no_buffers yes
format_human_readable
#####################
# - Text settings - #
#####################
use_xft yes
xftfont Zero Threes:size=8
override_utf8_locale yes
text_buffer_size 2048
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_argb_visual yes
own_window_argb_value 50
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_color black
alignment middle_left
gap_x 0
gap_y 0
minimum_size 246 900
#########################
# - Graphics settings - #
#########################
draw_shades no
draw_outline yes # amplifies text if yes
draw_shades yes # shadecolor black
default_color FFD900
color0 00FFFF
color1 FFD900
color2 FFD900
default_bar_size 80,10
TEXT
${color0}${font TRONLEGACY:bold:size=12}ACTUALIZACIONES ${hr 2}${font}${color}
${color0}${font Poky:size=13}i${font}${color}${goto 32}Actualizaciones: ${alignr}${font Zero Threes:size=8}${color1}${execi 360 aptitude search "~U" | wc -l | tail}${color}${font} ${color2}Paquetes${color}
${color0}${font TRONLEGACY:bold:size=12}BATERIA ${hr 2}${font}${color}
${color0}${font Poky:size=13}E${font}${color}${goto 32}${voffset -5}Batería: ${font Droid Sans:style=Bold:size=8}${color1}${battery_percent BAT0}% ${color}${font}${color2}${alignr}${battery_bar BAT0}${color}
Adaptador AC ${alignr}${acpiacadapter}
Tiempo restante de bateria: ${battery_time BAT0}${font}
${voffset 5}${font TRONLEGACY:Bold:size=12}${color0}PROCESOS ${hr 2}${font}
${voffset 2}${font Poky:size=15}a${font Zero Threes:bold:size=10}${color}${voffset -10}${goto 32}Procesos: ${color}${goto 150}CPU${alignr }RAM${color}
${font}
${voffset -1}${top pid 1}${goto 46}${color}${font Zero Threes:style=Bold:size=8}${top name 1}${goto 150}${top cpu 1}${alignr }${top mem 1}${color}${font}
${voffset -1}${top pid 2}${goto 46}${color}${font Zero Threes:style=Bold:size=8}${top name 2}${goto 150}${top cpu 2}${alignr }${top mem 2}${color}${font}
${voffset -1}${top pid 3}${goto 46}${color}${font Zero Threes:style=Bold:size=8}${top name 3}${goto 150}${top cpu 3}${alignr }${top mem 3}${color}${font}
${voffset -1}${top pid 4}${goto 46}${color}${font Zero Threes:style=Bold:size=8}${top name 4}${goto 150}${top cpu 4}${alignr }${top mem 4}${color}${font}
${voffset -1}${top pid 5}${goto 46}${color}${font Zero Threes:style=Bold:size=8}${top name 5}${goto 150}${top cpu 5}${alignr }${top mem 5}${color}${font}
${voffset -1}${top pid 6}${goto 46}${color}${font Zero Threes:style=Bold:size=8}${top name 6}${goto 150}${top cpu 6}${alignr }${top mem 6}${color}${font}
${voffset -1}${top pid 7}${goto 46}${color}${font Zero Threes:style=Bold:size=8}${top name 7}${goto 150}${top cpu 7}${alignr }${top mem 7}${color}${font}
${voffset -1}${top pid 8}${goto 46}${color}${font Zero Threes:style=Bold:size=8}${top name 8}${goto 150}${top cpu 8}${alignr }${top mem 8}${color}${font}
${voffset 5}${font TRONLEGACY:bold:size=12}${color0}FECHA ${color0}${hr 2}${font}${color}
${voffset 5}${color0}${font Poky:size=15}d${GOTO 36}${color}${font Zero Threes:bold:size=12}${time %d} ${time %B} ${time %Y}${font}
${voffset 5}${font TRONLEGACY:bold:size=12}${color0}HORA ${color0}${hr 2}${color}
${voffset 5}${color0}${font Martin Vogel's Symbols:bald:size=20}U${color}${voffset -5}${GOTO 36}${font Zero Threes:size=30}${time %H:%M:%S}
${voffset -20}${font TRONLEGACY:bold:size=12}${color0}TEMPERATURAS ${color0}${hr 2}${color}${font}
${color0}${font Weather:size=20}x${font Zero Threes:size=10}${color}${GOTO 36}CPU 01:${GOTO 130}${execi 4 sensors | grep -A 0 'Core 0' | cut -c15-18} ºC
${GOTO 36}CPU 02:${GOTO 130}${execi 4 sensors | grep -A 0 'Core 1' | cut -c15-18} ºC
${GOTO 36}Disco duro:${GOTO 130}${execi 4 sensors | grep -A 0 'temp1' | cut -c15-18} ºC${font}
${voffset -5}${color0}${font TRONLEGACY:bold:size=12}DISCOS ${hr 2}
${color}${execpi 30 /home/ninoh-fox/.conkycolors/scripts/conkyHD4.py}
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
imlib_cache_size 0
double_buffer yes
no_buffers yes
format_human_readable
#####################
# - Text settings - #
#####################
use_xft yes
xftfont Zero Threes:size=8
override_utf8_locale yes
text_buffer_size 2048
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_argb_visual yes
own_window_argb_value 50
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour black
alignment top_right
gap_x 0
gap_y 0
minimum_size 246 900
#########################
# - Graphics settings - #
#########################
draw_shades no
draw_outline yes # amplifies text if yes
draw_shades yes # shadecolor black
default_color FFD900
color0 00FFFF
color1 FFD900
color2 FFD900
color4 red
TEXT
${font TRONLEGACY:bold:size=12}${color0}SISTEMA ${color0}${hr 2}
${voffset 2}${font Poky:size=15}x${color}${GOTO 50}${font TRONLEGACY:size=10}${color0}-NINOH-FOX-${font}${color}${font Zero Threes:size=10}
CPU 01: ${freq cpu0}MHz ${goto 130}${cpubar cpu0 10,75} ${cpu cpu0} %
${cpugraph cpu0 000000 FF0000}
CPU 02: ${freq cpu1}MHz ${goto 130}${cpubar cpu1 10,75} ${cpu cpu1} %
${cpugraph cpu1 000000 00ff00}
RAM: ${membar 10,140} ${memperc} %
${memgraph 000000 0000ff}
${voffset 10}DATA: ${goto 195}${diskio}
${goto 50}${voffset -28}${diskiograph 20,140 000000 7f8ed3}
Encendido: $uptime ${font}
${color0}${font TRONLEGACY:bold:size=12}MEDIA PLAYER ${hr 2}
${if_running rhythmbox}
${color0}${voffset -38}${font Musicelements:size=15}U${goto 36}${font}${color}${exec /home/ninoh-fox/.conkycolors/portada}${image /home/ninoh-fox/.conkycolors/portada.jpg -p 12,342 -s 64x64}${goto 90}${voffset 20}${execi 2 /home/ninoh-fox/.conkycolors/scripts/conkyRhythmbox.py}
${voffset 9}${alignr}${exec /home/ninoh-fox/.conkycolors/scripts/conkyRhythmbox.py --datatype=PT} / ${alignr}${exec /home/ninoh-fox/.conkycolors/scripts/conkyRhythmbox.py --datatype=LE}
${goto 84}${execbar /home/ninoh-fox/.conkycolors/scripts/conkyRhythmbox.py --datatype=PP}
ALBUM: ${exec /home/ninoh-fox/.conkycolors/scripts/conkyRhythmbox.py --datatype=AL}
ARTISTA: ${exec /home/ninoh-fox/.conkycolors/scripts/conkyRhythmbox.py --datatype=AR}${else}
${voffset -30}${goto 80}${color4}${font Webdings:size=20}WiX${GOTO 50}${font}${color}
${font Zero Threes:bold:size=10}${color4}${goto 15} No se reproduce nada...${font}${color}${endif}
${if_existing /proc/net/route ppp0}${voffset 5}${font TRONLEGACY:bold:size=12}${color0}RED ${color0}${hr 2}${font}${color}
${color0}${font Poky:size=15}Y${goto 36}${font Zero Threes:size=12}${color}--Red 3G conectada${font Zero Threes:size=8}
${goto 36}DOWN: ${downspeed ppp0} k/s${alignr}UP: ${upspeed ppp0} k/s
${goto 36}${color}${downspeedgraph ppp0 25,90 000000 00ff00}${alignr}${color}${upspeedgraph ppp0 25,90 000000 FF0000}
${goto 36}${color}TOTAL: ${totaldown ppp0}${alignr}TOTAL: ${totalup ppp0}${font}
${font Zero Threes:size=10}${GOTO 36}IP Local:${GOTO 120}${addr ppp0}${font}
${else}${if_existing /proc/net/route eth1}${voffset 5}${font TRONLEGACY:bold:size=12}${color0}RED ${color0}${hr 2}${font}${color}
${color0}${font Poky:size=15}w${goto 36}${font Zero Threes:size=12}${color}--Red por USB conectada${font Zero Threes:size=8}
${goto 36}DOWN: ${downspeed eth1} k/s${alignr}UP: ${upspeed eth1} k/s
${goto 36}${color}${downspeedgraph eth1 25,90 000000 00ff00}${alignr}${color}${upspeedgraph eth1 25,90 000000 FF0000}
${goto 36}${color}TOTAL: ${totaldown eth1}${alignr}TOTAL: ${totalup eth1}${font}
${font Zero Threes:size=10}${GOTO 36}IP Local:${GOTO 120}${addr eth1}${font}
${else}${if_existing /proc/net/route wlan0}${voffset 5}${font TRONLEGACY:bold:size=12}${color0}RED ${color0}${hr 2}${font}${color}
${color0}${font Poky:size=15}Y${goto 36}${font Zero Threes:size=12}${color}--Red por WIFI${font Zero Threes:size=8}
${goto 36}DOWN: ${downspeed wlan0} k/s${alignr}UP: ${upspeed wlan0} k/s
${goto 36}${color}${downspeedgraph wlan0 25,90 000000 00ff00}${alignr}${color}${upspeedgraph wlan0 25,90 000000 FF0000}
${goto 36}${color}TOTAL: ${totaldown wlan0}${alignr}TOTAL: ${totalup wlan0}${font}
${font Zero Threes:size=10}${GOTO 36}IP Local:${GOTO 120}${addr wlan0}
${font}${GOTO 36}Señal wifi: ${wireless_link_bar 10,100 wlan0} ${wireless_link_qual wlan0} %
${GOTO 36}ESSID: ${wireless_essid wlan0}${font}
${else}${if_existing /proc/net/route wlan1}${voffset 5}${font TRONLEGACY:bold:size=12}${color0}RED ${color0}${hr 2}${font}${color}
${color0}${font Poky:size=15}Y${goto 36}${font Zero Threes:size=12}${color}--Red WIFI por USB${font Zero Threes:size=8}
${goto 36}DOWN: ${downspeed wlan1} k/s${alignr}UP: ${upspeed wlan1} k/s
${goto 36}${color}${downspeedgraph wlan1 25,90 000000 00ff00}${alignr}${color}${upspeedgraph wlan1 25,90 000000 FF0000}
${goto 36}${color}TOTAL: ${totaldown wlan1}${alignr}TOTAL: ${totalup wlan1}${font}
${font Zero Threes:size=10}${GOTO 36}IP Local:${GOTO 120}${addr wlan1}
${font}${GOTO 36}Señal wifi: ${wireless_link_bar 10,100 wlan1} ${wireless_link_qual wlan1} %
${GOTO 36}ESSID: ${wireless_essid wlan1}${font}
${else}${if_existing /proc/net/route eth0}${voffset 5}${font TRONLEGACY:bold:size=12}${color0}RED ${color0}${hr 2}${font}${color}
${color0}${font Poky:size=15}w${goto 36}${font Zero Threes:size=12}${color}--Red por cable${font Zero Threes:size=8}
${goto 36}DOWN: ${downspeed eth0} k/s${alignr}UP: ${upspeed eth0} k/s
${goto 36}${color}${downspeedgraph eth0 25,90 000000 00ff00}${alignr}${color}${upspeedgraph eth0 25,90 000000 FF0000}
${goto 36}${color}TOTAL: ${totaldown eth0}${alignr}TOTAL: ${totalup eth0}${font}
${font Zero Threes:size=10}${GOTO 36}IP Local:${GOTO 120}${addr eth0}${font}
${else}
${font TRONLEGACY:bold:size=12}${color0}RED ${color0}${hr 2}${font}${color}
${color0}${font Poky:size=15}w${font Zero Threes:bold:size=10}${color4}${goto 36}--No hay RED conectada
${goto 90}${font Devil inside:size=60}i${font}${color}${endif}${endif}${endif}${endif}${endif}
dundermiflin escribió:Que Scripts teneis de conky ??
Yo actualmente uso este :# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
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 yes
own_window_transparent yes
own_window_type override
#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
#maximum_width 200
# 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
#default_shade_color black
#default_outline_color white
own_window_colour white
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 35
gap_y 50
# 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
TEXT
SISTEMA ${hr 2}
${voffset 2}${font OpenLogos:size=16}u${font} Kernel: ${alignr}${kernel}
${font StyleBats:size=16}A${font} CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}A${font} CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${font StyleBats:size=16}g${font} RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=16}j${font} SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font Webdings:size=16}~${font} Batería: ${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0}
${font StyleBats:size=16}q${font} Actividad: ${alignr}${uptime}
FECHA ${hr 2}
${alignc 35}${font Arial Black:size=26}${time %H:%M}${font}
${alignc}${time %A %d %Y}
HD ${hr 2}
${voffset 4}${font Pie charts for maps:size=14}7${font} ${voffset -5}Root:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Home:
${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
RED ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Señal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup eth1}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown eth1}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth1}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Red No disponible
${endif}
TEMPS A Girona ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=SPXX0143 --datatype=WF}${font}
${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=SPXX0143 --datatype=HT}${font}
${voffset 0}${alignc 43}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=4 --shortweekday}
${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=SPXX0143 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${voffset 0}${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
${else}${if_existing /proc/net/route eth0}
${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=SPXX0143 --datatype=WF}${font}
${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=SPXX0143 --datatype=HT}${font}
${voffset 0}${alignc 43}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=4 --shortweekday}
${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=SPXX0143 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${voffset 0}${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=SPXX0143 --datatype=WF}${font}
${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=SPXX0143 --datatype=HT}${font}
${voffset 0}${alignc 43}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=4 --shortweekday}
${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=SPXX0143 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${voffset 0}${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Tiempo No disponible
${endif}
shimazaki escribió:Bueno aqui vuelvo, jugando con conky de nuevo, y con el ultimo script del conky colors, de forma manual ya que al hacer tal como en los tutoriales, me aparece una "violacion de segmento" dentro del ultimo paso en el terminal.
[*img]http://usuarios.multimania.es/shimazaki/linux%20mint/resentm.jpg[/img]
El codigo del conkyrc.######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
imlib_cache_size 0
double_buffer yes
no_buffers yes
format_human_readable
#####################
# - Text settings - #
#####################
use_xft yes
xftfont Droid Sans:size=8
override_utf8_locale yes
text_buffer_size 2048
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
gap_x 25
gap_y 40
minimum_size 182 0
maximum_width 182
default_bar_size 60 8
#########################
# - Graphics settings - #
#########################
draw_shades yes
default_color cccccc
color0 white
color1 FF0000
color2 white
TEXT
${font Droid Sans:style=Bold:size=8}SISTEMA $stippled_hr${font}
##############
# - SYSTEM - #
##############
${color0}${font Poky:size=15}S${font}${color}${goto 32}${voffset -8}Kernel: ${alignr}${color2}${kernel}${color}
${goto 32}Encendido por: ${alignr}${color2}${uptime}${color}
# |--UPDATES
${goto 32}Actualizaciones: ${alignr}${font Droid Sans:style=Bold:size=8}${color1}${execi 360 aptitude search "~U" | wc -l | tail}${color}${font} ${color2}Paquetes${color}
# |--CPU
${offset 1}${color0}${font Poky:size=16}P${color}${font}${voffset -4}${goto 32}CPU: ${font Droid Sans:style=Bold:size=8}${color1}${cpu cpu1}%${color}${font} ${alignr}${color2}${cpugraph cpu1 8,60 CE5C00 E07A1F}${color}
# |--MEM
${color0}${font Poky:size=16}M${font}${color}${goto 32}${voffset -7}RAM: ${font Droid Sans:style=Bold:size=8}${color1}$memperc%${color}${font}
${offset 1}${voffset 2}${color0}${membar 4,18}${color}${goto 32}${voffset -2}F: ${font Droid Sans:style=Bold:size=8}${color2}${memeasyfree}${color}${font} U: ${font Droid Sans:style=Bold:size=8}${color2}${mem}${color}${font}
# |--CPU
${voffset 2}${color0}${font Poky:size=14}s${font}${color}${voffset -8}${goto 32}SWAP: ${font Droid Sans:style=Bold:size=8}${color1}${swapperc}%${color}${font}
${voffset 4}${offset 1}${color0}${swapbar 4,18}${color}${voffset -4}${goto 32}F: ${font Droid Sans:style=Bold:size=8}${color2}$swapmax${color}${font} U: ${font Droid Sans:style=Bold:size=8}${color2}$swap${color}${font}
#############
# - CLOCK - #
#############
${voffset 4}${font Droid Sans:style=Bold:size=8}DATE $stippled_hr${font}
${voffset -12}${goto 28}${font Arial Black:size=38}${color2}${time %H}${color}${font}${voffset -28}${font Droid Sans:style=Bold:size=11}${color2}${time :%M}${time :%S}${color}${font}
${voffset -2}${goto 100}${font Droid Sans:style=Bold:size=8}${color2}${time %A}${color}${font}
${goto 100}${time %d %b %Y}
################
# - CALENDAR - #
################
#---------CALENDARIO---------------------------------------------------------------------------------------------------------------------------------------
${voffset 4}${color0}${font impact:bold size=5}${execi 60 date +"%B" | tr "[:lower:]" "[:upper:]"} ${stippled_hr 2}
${voffset 2}${color0}${font webdings:size=18}¶#
${voffset -6}${font Sans:size=7}${color}${alignr 74}Lu${alignr 68}Ma${alignr 62}Mi${alignr 53}Ju${alignr 45}Vi${alignr 37}Sa${alignr 32}Do
${voffset -10}${color}${font Bitstream Vera Sans Mono:size=7}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color1}'"$DJS"'${color}'" "/}
#
##########
# - HD - #
##########
${voffset 4}${font Droid Sans:style=Bold:size=8}DISCOS DUROS$stippled_hr${font}
${voffset 4}${font Pie charts for maps:size=14}7${font} ${voffset -5}Root:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Home:
${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
##########
# - RED - #
##########
${voffset 4}${font Droid Sans:style=Bold:size=8}RED$stippled_hr${font}
${if_existing /proc/net/route wlan0}
${voffset -6}${color0}${font PizzaDude Bullets:size=14}O${font}${color} Envío: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed wlan0}${color}${font} kb/s ${alignr}${upspeedgraph wlan0 8,60 F57900 FCAF3E}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}U${font}${color} Recibo: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed wlan0}${color}${font} kb/s ${alignr}${downspeedgraph wlan0 8,60 F57900 FCAF3E}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}N${font}${color} Enviado: ${alignr}${totalup wlan0}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}T${font}${color} Recibido: ${alignr}${totaldown wlan0}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}Z${font}${color} Señal: ${font Liberation Sans:style=Bold:size=8}${color1}${wireless_link_qual wlan0}%${color}${font} ${alignr}${color2}${wireless_link_bar 8,60 wlan0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}a${font}${color} Ip Local: ${alignr}${color2}${addr wlan0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}b${font}${color} Ip Pública: ${alignr}${color2}${execi 10800 ~/.scripts/ip.sh}${color}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${color0}${font PizzaDude Bullets:size=14}O${font}${color} Envío: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed eth0}${color}${font} kb/s ${alignr}${upspeedgraph eth0 8,60 F57900 FCAF3E}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}U${font}${color} Recibo: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed eth0}${color}${font} kb/s ${alignr}${downspeedgraph eth0 8,60 F57900 FCAF3E}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}N${font}${color} Enviado: ${alignr}${color2}${totalup eth0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}T${font}${color} Recibido: ${alignr}${color2}${totaldown eth0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}a${font}${color} Ip Local: ${alignr}${color2}${addr eth0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}b${font}${color} Ip Pública: ${alignr}${color2}${execi 10800 ~/.scripts/ip.sh}${color}
${endif}${else}${if_existing /proc/net/route ppp0}
${voffset -6}${color0}${font PizzaDude Bullets:size=14}O${font}${color} Envío: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed ppp0}${color}${font} kb/s ${alignr}${upspeedgraph ppp0 8,60 F57900 FCAF3E}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}U${font}${color} Recibo: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed ppp0}${color}${font} kb/s ${alignr}${downspeedgraph ppp0 8,60 F57900 FCAF3E}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}N${font}${color} Enviado: ${alignr}${color2}${totalup ppp0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}T${font}${color} Recibido: ${alignr}${color2}${totaldown ppp0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}a${font}${color} Ip Local: ${alignr}${color2}${addr ppp0}${color}
${endif}${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color} Red no disponible
${endif}
##########
# - MUSICA - #
##########
${voffset 4}${font Droid Sans:style=Bold:size=8}MUSICA$stippled_hr${font}
${color1}${execp conkyRhythmbox --template=/home/daisuke/.conkytemp/conkyRhythmbox.template}
${color0}${font}${color1}${voffset -8}${goto 32}Slider:${execibar 1 conkyRhythmbox -n --datatype=PP}
Una ayudita, ^_^!, he visto que varios tienen el Cover de sus canciones en el conky, y por eso baje el rhytmbox for conky, pero no encuentro ningun tutorial que detalle paso a paso como hacer esto posible, lo intente desde el colors, pero me deshabilita el conky por errores en el código y no se que hacer, espero agradecido la ayuda que me puedan brindar.
Conky: /home/rpastor/.conkyrc: 21: no such configuration: 'LOCALE'
Conky: /home/rpastor/.conkyrc: 49: no such configuration: 'border_margin'
Conky: one or more $endif's are missing
Conky: desktop window (14000be) is subwindow of root window (14c)
Conky: window type - override
Conky: drawing to created window (0x6000001)
Conky: drawing to double buffer
/home/rpastor/.scripts/ip.sh: 1: Bad substitution
sh: conkyEmail: not found
sudo add-apt-repository ppa:conky-companions/ppa
sudo apt-get update && sudo apt-get install conkyemail
wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'
# Use Xft?
use_xft yes
xftfont Monospace:size=7.5
xftalpha 0.9
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 yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#for use with compiz-fusion ^^
own_window_argb_visual
own_window_argb_visual yes
own_window_argb_value 10
#own_window_transparent yes
#own_window_colour 262523
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 200 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 222222
#default_color white
#default_shade_color black
#default_outline_color white
own_window_colour 333333
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 30
gap_y 80
# 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
TEXT
ULTRABLACK IS #!
|
Up/Load
+
| - - - - - + $nodename - $sysname $kernel - $freq Mhz
| - - - - - + Uptime: $uptime load: $loadavg
+
Time
+
| - - - - - + ${time %H:%M} ${time %d %b %Y}
+
System
+
| - - - - - + CPU: ${cpu cpu}%
| - - - - - + RAM: $memperc%
| - - - - - + Temp: ${i2c 4-0048 temp 1}ºC
| - - - - - + Fan: ${platform pc87360.2080 fan 1} RPM
| - - - - - + /: ${fs_free /root}/${fs_size /root}
| - - - - - + /media/datos/: ${fs_free /media/datos}/${fs_size /media/datos}
| - - - - - + /usr/portage/: ${fs_free /usr/portage}/${fs_size /usr/portage}
| - - - - - + /var/portage/distfiles/: ${fs_free /var/portage/distfiles}/${fs_size /var/portage/distfiles}
| - - - - - + Last sync: ${execi 180 date -d "`cat /usr/portage/metadata/timestamp.chk`"}
+
Net
+
| - - - - - + Up: ${upspeed eth0} (${totalup eth0})
| - - - - - + Down: ${downspeed eth0} (${totaldown eth0})
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
#imlib_cache_size 0
double_buffer yes
#no_buffers yes
format_human_readable
#####################
# - Text settings - #
#####################
use_xft yes
xftfont Ubuntu:size=8
override_utf8_locale yes
text_buffer_size 2048
#############################
# - Window specifications - #
#############################
#own_window_class Conky
own_window yes
own_window_type override
#own_window_argb_visual yes
#own_window_argb_value 180
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
gap_x 8
gap_y 5
minimum_size 182 600
maximum_width 182
default_bar_size 60 8
#########################
# - Graphics settings - #
#########################
draw_shades yes
default_color cccccc
color0 white
color1 orange
color2 white
TEXT
${font Ubuntu:style=Bold:size=10}SISTEMA UBUNTU 11.04 $stippled_hr${font}
##############
# - SYSTEM - #
##############
${color red}${voffset 6}${font OpenLogos:size=19}u${font}${color}${goto 32}${voffset -14}Kernel: ${alignr}${color2}${kernel}${color}
${goto 32}Actividad: ${alignr}${color2}${uptime}${color}
${font Arial:bold:size=8}${color orange}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}$font$color
# |--UPDATES
${goto 32}Actualizaciones: ${alignr}${font Ubuntu:style=Bold:size=8}${color1}${execi 360 aptitude search "~U" | wc -l | tail}${color}${font} ${color2}Paquetes${color}
# |--CPU
${offset 1}${color0}${font Poky:size=16}P${font}${offset -19}${voffset 9} ${cpubar cpu0 4,135}
${color}${voffset -17}${goto 2}CPU1: ${font Ubuntu:style=Bold:size=12}${color1}${cpu cpu1}%
${font}${font Ubuntu:style=Bold:size=10}${color1}${execi 30 sensors | grep 'Core 0' | cut -c15-16}°C${color}${font} ${color2}${cpugraph cpu1 30,140 66990 ff1255}${color}
${goto 2}CPU2: ${font Ubuntu:style=Bold:size=12}${color1}${cpu cpu2}%${font}
${font Ubuntu:style=Bold:size=10}${color1}${execi 30 sensors | grep 'Core 1' | cut -c15-16}°C${color}${font} ${color2}${cpugraph cpu2 30,140 66990 ff1255}${color}
# |--MEM
${color0}${font Poky:size=16}M${font}${color}${goto 32}${voffset -7}RAM:
${font Ubuntu:style=Bold:size=12}${color1}$memperc%${color}${font}
${offset 1}${voffset 2}${color0}${membar 4,18}${color}${goto 32}${voffset -2} F: ${font Ubuntu:style=Bold:size=10}${color2}${memeasyfree}${color}${font} U: ${font Ubuntu:style=Bold:size=8}${color2}${mem}${color}${font}
# |--SWAP
${voffset 2}${color0}${font Poky:size=14}s${font}${color}${voffset -8}${goto 32}SWAP: ${font Ubuntu:style=Bold:size=8}${color1}${swapperc}%${color}${font}
${voffset 4}${offset 1}${color0}${swapbar 4,18}${color}${voffset -4}${goto 32}F: ${font Ubuntu:style=Bold:size=8}${color2}$swapmax${color}${font} U: ${font Ubuntu:style=Bold:size=8}${color2}$swap${color}${font}
# |--PROC
${voffset 2}${color0}${font Poky:size=15}a${font}${color}${goto 32}${voffset -10}Procesos: ${processes}${color2}${alignr 13}CPU${alignr}RAM${color}
${voffset -1}${goto 42}${color2}${top name 1}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 1}${alignr }${top mem 1}${color}${font}
${voffset -1}${goto 42}${color2}${top name 2}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 2}${alignr }${top mem 2}${color}${font}
${voffset -1}${goto 42}${color2}${top name 3}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 3}${alignr }${top mem 3}${color}${font}
${voffset -1}${goto 42}${color2}${top name 4}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 4}${alignr }${top mem 4}${color}${font}
${voffset -1}${goto 42}${color2}${top name 5}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 5}${alignr }${top mem 5}${color}${font}
${voffset -1}${goto 42}${color2}${top name 6}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 6}${alignr }${top mem 6}${color}${font}
${voffset -1}${goto 42}${color2}${top name 7}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 7}${alignr }${top mem 7}${color}${font}
${voffset -1}${goto 42}${color2}${top name 8}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 8}${alignr }${top mem 8}${color}${font}
${voffset -1}${goto 42}${color2}${top name 9}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 9}${alignr }${top mem 9}${color}${font}
${voffset -1}${goto 42}${color2}${top name 10}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 10}${alignr }${top mem 10}${color}${font}
#############
# - CLOCK - #
#############
${voffset 4}${font Ubuntu:style=Bold:size=8}FECHA $stippled_hr${font}
${font Digital Readout Thick Upright:size=33}${goto 22}${color red}${voffset -9}${voffset 9}${time %I:%M%P} ${goto 150}${color2}${voffset -14}${font Digital Readout Thick Upright:size=24}${goto 150}${color2}${time %d}${font Digital Readout Thick Upright:size=15}${voffset 14}${goto 150}${color2}${time %m }${goto 144}${color2}${time %y}${font}
################
# - CALENDAR - #
################
${voffset -2}${color0}${font Poky:size=16}D${font}${voffset -8}${font Ubuntu:style=Bold:size=7}${offset -17}${voffset 4}${time %d}${font}${color}${voffset -1}${font Monospace:size=7}${execpi 300 DJS=`date +%_d`; cal -h|sed '2,7!d'| sed '/./!d' | sed 's/^/${goto 32} /'| sed 's/$/ /' | sed 's/^/ /' | sed /" $DJS "/s/" $DJS "/" "'${font Ubuntu:style=Bold:size=8}${voffset -1}${color1} '"$DJS"'${color}${font Monospace:size=7}'" "/}${voffset -1}
##########
# - HD - #
##########
${voffset 4}${font Ubuntu:style=Bold:size=8}HD $stippled_hr${font}
${execpi 30 /usr/share/conkycolors/bin/conkyHD3}
###############
# - NETWORK - #
###############
${if_existing /proc/net/route wlan0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,30 000000 FFFFFF}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 000000 FFFFFF}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Señal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr wlan0}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Subida: ${upspeed eth0} kb/s
${upspeedgraph eth0 30,140 000000 ff5498}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Bajada: ${downspeed eth0} kb/s
${downspeedgraph eth0 30,140 000000 ff1255}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth0}
${goto 32}Ip Pública: ${alignr}${execi 10800 /usr/share/conkycolors/bin/conkyIp}${color}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup eth1}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown eth1}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth1}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Red no Disponible
${endif}
allanadja escribió:dundermiflin escribió:Que Scripts teneis de conky ??
Yo actualmente uso este :# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
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 yes
own_window_transparent yes
own_window_type override
#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
#maximum_width 200
# 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
#default_shade_color black
#default_outline_color white
own_window_colour white
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 35
gap_y 50
# 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
TEXT
SISTEMA ${hr 2}
${voffset 2}${font OpenLogos:size=16}u${font} Kernel: ${alignr}${kernel}
${font StyleBats:size=16}A${font} CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}A${font} CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${font StyleBats:size=16}g${font} RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=16}j${font} SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font Webdings:size=16}~${font} Batería: ${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0}
${font StyleBats:size=16}q${font} Actividad: ${alignr}${uptime}
FECHA ${hr 2}
${alignc 35}${font Arial Black:size=26}${time %H:%M}${font}
${alignc}${time %A %d %Y}
HD ${hr 2}
${voffset 4}${font Pie charts for maps:size=14}7${font} ${voffset -5}Root:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Home:
${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
RED ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Señal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup eth1}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown eth1}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth1}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Red No disponible
${endif}
TEMPS A Girona ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=SPXX0143 --datatype=WF}${font}
${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=SPXX0143 --datatype=HT}${font}
${voffset 0}${alignc 43}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=4 --shortweekday}
${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=SPXX0143 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${voffset 0}${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
${else}${if_existing /proc/net/route eth0}
${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=SPXX0143 --datatype=WF}${font}
${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=SPXX0143 --datatype=HT}${font}
${voffset 0}${alignc 43}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=4 --shortweekday}
${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=SPXX0143 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${voffset 0}${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=SPXX0143 --datatype=WF}${font}
${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=SPXX0143 --datatype=HT}${font}
${voffset 0}${alignc 43}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=SPXX0143 --datatype=DW --startday=4 --shortweekday}
${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=SPXX0143 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${voffset 0}${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=SPXX0143 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0143 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Tiempo No disponible
${endif}
No soy muy bueno con conky y me gustaria saber como cambiar en el indicador del tiempo la temperatura de celsius a fahrenheit ya que por mas que miro el script no tengo ni idea.
Gracias.
Edito: resuelto,
Esto le proporciona en grados Celsius:
Código:
python conkyForecast.py - location = UKXX0103 - datatype = HT
y esto en grados Fahrenheit:
Código:
python conkyForecast.py - location = UKXX0103 - datatype = HT - imperial
Aquí el resultado:
coyote escribió:Alguno sabe el nombre de la tipografía en la que está el logo de nvidia
Ejemplo:
# Use Xft?
use_xft yes
xftfont Ubuntu:size=8
xftalpha 0.8
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 yes
own_window_transparent yes
own_window_type override
#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 0
#maximum_width 200
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline yes
# Draw borders around text
#draw_borders yes
# Stippled borders?
#stippled_borders 5
# border margins
#border_inner_margin 15
#border_outer_margin 5
# border width
border_width 1
# Default colors and also border colors
default_color white
#default_shade_color black
#default_outline_color white
own_window_colour white
# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 35
gap_y 50
# 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
TEXT
${font Ubuntu Mono:bold}Sistema ${hr 2}
${voffset 4}${font OpenLogos:size=16}T${font} Kernel: ${alignr}${kernel}
${font StyleBats:size=16}A${font} CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,100}
${font StyleBats:size=16}A${font} CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,100}
${font StyleBats:size=16}g${font} RAM: $memperc% ${alignr}${membar 8,100}
${font StyleBats:size=16}j${font} SWAP: $swapperc% ${alignr}${swapbar 8,100}
${font StyleBats:size=16}q${font} Tiempo encendido: ${alignr}${uptime}
#################
# HDD #
#################
${font Ubuntu Mono:bold}HDD ${hr 2}
${voffset 4}${font Pie charts for maps:size=14}7${font} ${voffset -5}Raiz: ${alignr}${fs_bar 8,100 /}
${voffset 4}${alignr}${fs_used /}/${fs_size /}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Carpeta Personal: ${alignr}${fs_bar 8,100 /home}
${voffset 4}${alignr}${fs_used /home}/${fs_size /home}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Cosas: ${alignr}${fs_bar 8,100 /media/Cosas}
${voffset 4}${alignr}${fs_used /media/Cosas}/${fs_size /media/Cosas}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Windows 7: ${alignr}${fs_bar 8,100 /media/Windows}
${voffset 4}${alignr}${fs_used /media/Windows}/${fs_size /media/Windows}
#################
# RED #
#################
${font Ubuntu Mono:bold}Red ${hr 2}
${if_existing /proc/net/route eth1}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Subida: ${upspeed eth1} kb/s ${alignr}
#${upspeedgraph eth1 8,100}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Bajada: ${downspeed eth1} kb/s ${alignr}
#${downspeedgraph eth1 8,100}
${voffset 4}${font PizzaDude Bullets:size=14}NT${font} Subido/Bajado: ${alignr}${totalup eth1}/${totaldown eth1}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Señal: ${wireless_link_qual eth1}% ${alignr}${wireless_link_bar 8,100 eth1}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth1}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Pública: ${alignr}${texeci 300 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}
#
#
${else}${if_existing /proc/net/route eth0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Subida: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 12,100}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Bajada: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 12,100}
${voffset 4}${font PizzaDude Bullets:size=14}NT${font} Subido/Bajado: ${alignr}${totalup eth1}/${totaldown eth1}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Señal: ${wireless_link_qual eth1}% ${alignr}${wireless_link_bar 8,100 eth1}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth1}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Pública: ${alignr}${texeci 300 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}
${endif}
${endif}
#################
# Procesos #
#################
${font Ubuntu Mono:bold}Procesos ${hr 2}${font}
${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}%
#################
# Hora y Fecha #
#################
${font Ubuntu Mono:bold}Hora y Fecha ${hr 2}
${voffset -4}${alignc +45}${font Ubuntu Mono:style=Bold:size=38}${time %H}${color}${font}${voffset -28}${font Droid Sans:style=Bold:size=11}${color2}${time :%M}${time :%S}${font}
${voffset -2}${alignc -5}${font Ubuntu Mono:style=Bold:size=8}${time %A}${color}${font}
${alignc -30}${time %d %B %Y}
################
# - CALENDAR - #
################
${voffset 4}${font Ubuntu:bold size=5}${execi 60 date +"%B" | tr "[:lower:]" "[:upper:]"} ${stippled_hr 2}
${voffset 2}${font webdings:size=18}¶#
${voffset -6}${font Sans:size=7}${color}${alignr 74}Lu${alignr 68}Ma${alignr 62}Mi${alignr 53}Ju${alignr 45}Vi${alignr 37}Sa${alignr 32}Do
${voffset -10}${color}${font Ubuntu Mono:size=7}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color1}'"$DJS"'${color}'" "/}
Tinaut1986 escribió:
Para empezar, la señal del wifi no se porque me aparece a 0 cuando, obviamente, no está a 0 xD.
${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Señal: ${wireless_link_qual eth1}% ${alignr}${wireless_link_bar 8,100 eth1}
dundermiflin escribió:Tinaut1986 escribió:
Para empezar, la señal del wifi no se porque me aparece a 0 cuando, obviamente, no está a 0 xD.
Fijate en la linea :${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Señal: ${wireless_link_qual eth1}% ${alignr}${wireless_link_bar 8,100 eth1}
Tu interface wifi es la eth1 ??
Conky: one or more $endif's are missing
Conky: desktop window (e000b8) is subwindow of root window (b6)
Conky: window type - override
Conky: drawing to created window (0x3a00001)
Conky: drawing to double buffer
use_xft yes
xftfont Bauhaus:size=10
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
text_buffer_size 1024
own_window yes
own_window_type override
own_window_transparent yes
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
minimum_size 185 0
maximum_width 185
default_color white
draw_shades no
color0 white
color1 FCAF3E
color2 white
color3 99FF99
alignment top_right
gap_x 25
gap_y 50
no_buffers no
net_avg_samples 2
override_utf8_locale yes
TEXT
SISTEMA ${hr 2}
${voffset 1}${color3}${font OpenLogos:size=16}t${font}${color} Kernel: ${alignr}${color2}${kernel}${color}
${color0}${font StyleBats:size=16}A${font}${color} CPU1: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu1}%${color}${font} ${alignr}${color2}${cpubar cpu1 8,60}${color}
${color0}${font StyleBats:size=16}A${font}${color} CPU2: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu2}%${color}${font} ${alignr}${color2}${cpubar cpu2 8,60}${color}
${color0}${font StyleBats:size=16}A${font}${color} CPU3: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu2}%${color}${font} ${alignr}${color2}${cpubar cpu3 8,60}${color}
${color0}${font StyleBats:size=16}A${font}${color} CPU4: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu2}%${color}${font} ${alignr}${color2}${cpubar cpu4 8,60}${color}
${color0}${font StyleBats:size=16}A${font}${color} CPU5: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu2}%${color}${font} ${alignr}${color2}${cpubar cpu5 8,60}${color}
${color0}${font StyleBats:size=16}A${font}${color} CPU6: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu2}%${color}${font} ${alignr}${color2}${cpubar cpu6 8,60}${color}
${color0}${font StyleBats:size=16}g${font}${color} RAM: ${font Liberation Sans:style=Bold:size=8}${color1}$memperc%${color}${font} ${alignr}${color2}${membar 8,60}${color}
${color0}${font StyleBats:size=16}j${font}${color} SWAP: ${font Liberation Sans:style=Bold:size=8}${color1}$swapperc%${color}${font} ${alignr}${color2}${swapbar 8,60}${color}
${color0}${font StyleBats:size=16}q${font}${color} Actividad: ${alignr}${color2}${uptime}${color}
FECHA ${hr 2}
${alignc 45}${color2}${font Arial Black:size=30}${time %H:%M}${font}${color}
${voffset 4}${color0}${font RsbillsDng:size=20}O${font}${color}${voffset -4}${font Liberation Mono:size=8}${execpi 10800 DJS=`date +%_d`; cal | sed 's/^/${alignc} /' | sed s/" $DJS "/" "'${font Liberation Mono:style=bold:size=8}${color1}'"$DJS"'${color}${font}${font Liberation Mono:size=8}'" "/}${font}${font}
HD ${hr 2}
${execpi 30 ~/.scripts/hd_default.py}
RED ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -6}${color0}${font PizzaDude Bullets:size=14}O${font}${color} Envío: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed wlan0}${color}${font} kb/s ${alignr}${upspeedgraph wlan0 8,60 F57900 FCAF3E}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}U${font}${color} Recibo: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed wlan0}${color}${font} kb/s ${alignr}${downspeedgraph wlan0 8,60 F57900 FCAF3E}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}N${font}${color} Enviado: ${alignr}${totalup wlan0}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}T${font}${color} Recibido: ${alignr}${totaldown wlan0}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}Z${font}${color} Señal: ${font Liberation Sans:style=Bold:size=8}${color1}${wireless_link_qual wlan0}%${color}${font} ${alignr}${color2}${wireless_link_bar 8,60 wlan0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}a${font}${color} Ip Local: ${alignr}${color2}${addr wlan0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}b${font}${color} Ip Pública: ${alignr}${color2}${execi 10800 ~/.scripts/ip.sh}${color}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${color0}${font PizzaDude Bullets:size=14}O${font}${color} Envío: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed eth0}${color}${font} kb/s ${alignr}${upspeedgraph eth0 8,60 F57900 FCAF3E}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}U${font}${color} Recibo: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed eth0}${color}${font} kb/s ${alignr}${downspeedgraph eth0 8,60 F57900 FCAF3E}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}N${font}${color} Enviado: ${alignr}${color2}${totalup eth0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}T${font}${color} Recibido: ${alignr}${color2}${totaldown eth0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}a${font}${color} Ip Local: ${alignr}${color2}${addr eth0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}b${font}${color} Ip Pública: ${alignr}${color2}${execi 10800 ~/.scripts/ip.sh}${color}
${endif}${else}${if_existing /proc/net/route ppp0}
${voffset -6}${color0}${font PizzaDude Bullets:size=14}O${font}${color} Envío: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed ppp0}${color}${font} kb/s ${alignr}${upspeedgraph ppp0 8,60 F57900 FCAF3E}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}U${font}${color} Recibo: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed ppp0}${color}${font} kb/s ${alignr}${downspeedgraph ppp0 8,60 F57900 FCAF3E}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}N${font}${color} Enviado: ${alignr}${color2}${totalup ppp0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}T${font}${color} Recibido: ${alignr}${color2}${totaldown ppp0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}a${font}${color} Ip Local: ${alignr}${color2}${addr ppp0}${color}
${endif}${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color} Red no disponible
${endif}
use_xft yes
xftfont Oxygen Bold:bold:size=7
xftalpha 0.1
text_buffer_size 2048
update_interval 1
total_run_times 0
own_window yes
own_window_argb_visual yes
own_window_transparent 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 1750 1
maximum_width 1750
draw_shades no
draw_outline no
draw_borders no
stippled_borders 0
# border_margin 5
border_width 0
default_color white
#default_shade_color #AEB0AA
#default_outline_color #AEB0AA
own_window_colour #AEB0AA
alignment top_middle
#alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
gap_x 0
gap_y 40
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
lua_load ~/Scripts/draw_bg.lua
lua_draw_hook_pre draw_bg
TEXT
${voffset 2}${offset 80} \
${font Oxygen Bold:bold:size=7} \
${offset 5}Linux: ${color #AEB0AA}${kernel} ${machine}${color}${offset 5}·${offset -5} \
${offset 5}CPU1: ${color #AEB0AA}${cpu cpu1}${offset 5}${color}CPU2: ${color #AEB0AA}${cpu cpu2}${color}${offset 5}·${offset -5} \
${offset 5}${color}RAM: ${color #AEB0AA}$memperc%${color}${offset 5}·${offset -5} \
${offset 5}${color}Libre: ${color #AEB0AA}${memeasyfree}${color}${offset 5}·${offset -5} \
${offset 5}${color}GPU T: ${color #AEB0AA}${exec nvidia-settings -q GPUCoreTemp | grep Attribute | cut -d ' ' -f 6 | cut -c 1-2}${color #AEB0AA} °C${color}${offset 5}·${offset -5} \
${offset 5}${color}GPU Clock:${color #AEB0AA} ${exec nvidia-settings -q GPUCurrentClockFreqs -t}${color #AEB0AA} MHz${color}${offset 5}·${offset -5} \
${offset 5}${color}Root: ${color #AEB0AA}${fs_used /}/${fs_size /}${color}${offset 5}·${offset -5} \
${offset 5}${color}Home: ${color #AEB0AA}${fs_used /home}/${fs_size /home}${color}${offset 5}·${offset -5} \
${offset 5}${color}Datos: ${color #AEB0AA}${fs_used /media/Almacen}/${fs_size /media/Almacen}${color}${offset 5}·${offset -5} \
${offset 5}${color}Actividad: ${color #AEB0AA}${uptime}${color}${offset 5}·${offset -5} \
${offset 5}${color}Su: ${color #AEB0AA}${upspeed eth0}${color}${offset 5}·${offset -5} \
${offset 5}${color}T. Su: ${color #AEB0AA}${totalup eth0}${color}${offset 5}·${offset -5} \
${offset 5}${color}De: ${color #AEB0AA}${downspeed eth0}${color}${offset 5}·${offset -5} \
${offset 5}${color}T. De: ${color #AEB0AA}${totaldown eth0}${color}${offset 5}·${offset -5} \
${offset 5}${color}IP: ${color #AEB0AA}${execi 3600 /home/coyote/Scripts/ip.sh}${color}
use_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 175 1
maximum_width 175
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color EAEAEA
default_shade_color FFFFFF
default_outline_color 000000
alignment bottom_left
gap_x 70
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 Oxygen:bold:size=7} \
${color #888A85}Procesos ${hr 2}
${color EAEAEA}$processes procesos ( ${color #888A85}$running_processes running${color EAEAEA} )
${color #888A85}NAME${alignr}${offset -10}CPU%${alignr}MEM%
${color EAEAEA}${top name 1}${alignr}${offset -15}${color #888A85}${top cpu 1}${alignr}${top mem 1}
${color EAEAEA}${top name 2}${alignr}${offset -15}${color #888A85}${top cpu 2}${alignr}${top mem 2}
${color EAEAEA}${top name 3}${alignr}${offset -15}${color #888A85}${top cpu 3}${alignr}${top mem 3}
${color EAEAEA}${top name 4}${alignr}${offset -15}${color #888A85}${top cpu 4}${alignr}${top mem 4}
${color EAEAEA}${top name 5}${alignr}${offset -15}${color #888A85}${top cpu 5}${alignr}${top mem 5}
# Use Xft?
use_xft yes
xftfont Oxygen:bold:size=8
xftalpha 0.8
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 yes
own_window_argb_visual yes
own_window_transparent yes
#own_window_type override
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 1450 1
maximum_width 1450
# 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 0
# Default colors and also border colors
default_color black
#default_shade_color black
#default_outline_color black
own_window_colour black
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 260
gap_y 280
#gap_x 7
#gap_y 140
# 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
TEXT
${color black}
${if_running qmmp}
${offset -5}${color #555555}${font Oxygen:size=23}${if_match ${execi 5 expr length "`qdbus org.mpris.qmmp /Player org.freedesktop.MediaPlayer.GetMetadata | grep title | cut -c 8-`"} > 80}${scroll 40 1${execi 5 qdbus org.mpris.qmmp /Player org.freedesktop.MediaPlayer.GetMetadata | grep title | cut -c 8-}}${else}${execi 5 qdbus org.mpris.qmmp /Player org.freedesktop.MediaPlayer.GetMetadata | grep title | cut -c 8-}${color}
${voffset -20}${color #656763}${font Oxygen:size=12}${execi 5 qdbus org.mpris.qmmp /Player org.freedesktop.MediaPlayer.GetMetadata | grep artist | cut -c 8-}${color}
${voffset -15}${color black}${font Oxygen:size=12}${execi 5 qdbus org.mpris.qmmp /Player org.freedesktop.MediaPlayer.GetMetadata | grep album | cut -c 8-}${color}
${else}${offset -5}${color red}${font Oxygen:size=23}Player Stopped or Closed${color}${endif}
#${color black}Tiempo:${color} ${alignr}${color black}${font Oxygen:size=8}${execi 5 /home/coyote/Scripts/Tunes/transcurrido.sh} / ${execi 5 /home/coyote/Scripts/Tunes/duracion.sh}${color}
--[[
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=15
-- Set the colour and transparency (alpha) of your background.
bg_colour=0x000000
bg_alpha=0.5
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
nitrosito escribió:Coyote danos una captura aver como queda eso
nitrosito escribió:Gracias coyote, le he puesto la barra de arriba a mi portatil
Queria preguntaros. ¿Hay alguna opcion o algo para que cuando le demos a la tecla de mostrar escritorio se siga viendo el conky?
Esque a mi se me oculta cuando le doi a mostrar escritorio
un saludo
own_window_type override
#own_window_type normal
#own_window_type desktop
coyote escribió:¿Algún código sencillo y usable para mostrar el clima?
# Locale, fonts and font sizes.
use_xft yes
xftfont Droid Sans:size=10
# Conky performance
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 2
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
# Execute it in its own window
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
# Borders, margins.
draw_borders no
border_margin no
draw_outline no
border_width 0
# Own window color
own_window_colour black
# Font colors
default_color black
#default_color EFEEED
# Text shadows
draw_shades no
use_spacer none
# Header colors
color0 black
# Minimum dimensions
minimum_size 1920
# Conky positioning.
alignment bottom_left
gap_x 0
gap_y 1000
# Output
TEXT
${voffset 0}${font Droid Sans:style=Bold:size=14}${color0}${goto 100}ArchLinux ${goto 400}Discos:${goto 680}Tráfico:${goto 900}${goto 1800}${font}${color}
${voffset 0}${goto 400}Sistema :${goto 471}${fs_used /} / ${fs_size /}${goto 680}Subiendo: ${goto 780}${upspeedgraph eth0 10,170 white white}${font Droid Sans:style=Bold:size=10} ${upspeed eth0}${font}${goto 900}
${goto 100}Kernel: ${goto 170}${kernel}${goto 471}${fs_bar 10,170 /}${goto 680}Descargando: ${goto 780}${downspeedgraph eth0 10,170 white white}${font Droid Sans:style=Bold:size=10} ${downspeed eth0}${font}${goto 900}
${goto 100}CPU: ${goto 170}${cpubar cpu1 10,170}${font Droid Sans:style=Bold:size=10} ${cpu cpu1}%${font}${goto 400}Home :${goto 471}${fs_free /home} / ${fs_size /home}${goto 680}Subido: ${goto 780}${totalup eth0}${font}${goto 900}
${goto 100}RAM: ${goto 170}${membar 10,170}${font Droid Sans:style=Bold:size=10} $memperc%${voffset -1}${goto 471}${fs_bar 10,170 /home}${goto 680}Descargado: ${goto 780}${totaldown eth0}${font}${goto 900}
${goto 100}SWAP:${goto 170}${swapbar 10,170}${font Droid Sans:style=Bold:size=10} $swapperc%${font}${goto 680}IP local: ${goto 780}${addr eth0}${font}${goto 900}${goto 400}Datos :${goto 471}${fs_used /media//79b77352-b667-435f-9d29-ce4e5dd69d78/} / ${fs_size /media//79b77352-b667-435f-9d29-ce4e5dd69d78/}${goto 680}
${goto 100}Funciona: ${goto 170}${uptime}${goto 680}IP Pública: ${goto 780}${execi 60 ~/.conkytheme/scripts/ip.sh}${goto 471}${fs_bar 10,170 /media//79b77352-b667-435f-9d29-ce4e5dd69d78/}
[spoiler]use_xft yes
xftfont SF Intoxicated Blues Extended:size=7
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 1050 140
maximum_width 1050
draw_shades no
draw_borders no
draw_graph_borders no
default_color black
default_shade_color black
#default_outline_color black
#draw_outline yes
alignment bottom_left
gap_x 100
gap_y 100
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
TEXT
${if_running amarok} # Si Amarok está en ejecución...
${if_match ${execi 4 expr length "`qdbus org.kde.amarok /Player GetMetadata | grep title: | cut -b 8-`"} > 0} # Mirar si tenemos titulo = se está repruduciendo musica (mirar si se puede hacer de otra manera)
${if_match ${execi 4 expr length "`qdbus org.kde.amarok /Player GetMetadata | grep title: | cut -b 8-`"} > 42} # Si la longitud del titulo es > 80, scroll.
${font SF Intoxicated Blues Extended:pixelsize=35}${color black}${scroll 42 1${execi 4 qdbus org.kde.amarok /Player GetMetadata | grep title: | cut -b 8-}}${font} # Título canción scroll
${else} # Si no es > 22
${font Yesteryear:pixelsize=35}${color black}${execi 4 qdbus org.kde.amarok /Player GetMetadata | grep title: | cut -b 8-}${font} # Título canción
${endif} # End if logitud título > 22
${color black}
${voffset 6}${offset 30}${font SF Intoxicated Blues Extended:pixelsize=35}${execi 4 qdbus org.kde.amarok /Player GetMetadata | grep -w artist: | cut -b 9-}${font} # Artista canción
${color DCDCDC}
#${voffset 1}${offset 50}${font SF Intoxicated Blues Extended:pixelsize=35}${execi 4 qdbus org.kde.amarok /Player GetMetadata | grep album: | cut -b 8-}${font} # Album de la canción
${else} # Else de si long título > 0 Amarok
${if_running spotify} # Si Spotify está en ejecución...
${if_match ${execi 4 expr length "`qdbus com.spotify.qt /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title: | cut -b 14-`"} > 0} # Mirar si tenemos titulo = se está repruduciendo musica (mirar si se puede hacer de otra manera)
${if_match ${execi 4 expr length "`qdbus com.spotify.qt /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title: | cut -b 14-`"} > 42} # Si la longitud del titulo es > 80, scroll.
${font SF Intoxicated Blues Extended:pixelsize=16}${color black}${scroll 22 1${execi 4 qdbus com.spotify.qt /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title: | cut -b 14-}}${font} # Título canción scroll
${else} # Si no es > 80
${font SF Intoxicated Blues Extended:pixelsize=36}${color black}${execi 4 qdbus com.spotify.qt /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title: | cut -b 14-}${font} # Título canción
${endif} # End if logitud título > 80
${color}
${voffset -2}${offset 10}${font SF Intoxicated Blues Extended:pixelsize=24}${execi 4 qdbus com.spotify.qt /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep artist: | cut -b 15-}${font} # Artista canción
${voffset -2}${offset 20}${font :pixelsize=18}${execi 4 qdbus com.spotify.qt /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep album: | cut -b 14-}${font} # Album de la canción
${else} # Else de si long título > 0 Clementine
${voffset 18}${color black} ${font SF Intoxicated Blues Extended:pixelsize=78}${color black}${time %H}${font}${voffset -50}${color}${font SF Intoxicated Blues Extended:pixelsize=78}${time :%M:%S}${font}
${voffset 8}${offset 15}${font SF Intoxicated Blues Extended:pixelsize=26}${time %A}${font}${offset 10}${font SF Intoxicated Blues Extended:pixelsize=26}${color 999999}${voffset -9}${time %d}${color dddddd}${font}${offset 5}${voffset -9}${font SF Intoxicated Blues Extended:pixelsize=26}${time %B}${offset 5}${time %Y}${font}
${endif} # End If de si long título > 0 Clementine
${endif} # End If de Spotify is_running
${endif} # End If de Amarok tit > 0
${else} # Else de si amarok is_running
${if_running clementine} # Si Amarok está en ejecución...
${if_match ${execi 4 expr length "`qdbus com.spotify.qt /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title: | cut -b 14-`"} > 0} # Mirar si tenemos titulo = se está repruduciendo musica (mirar si se puede hacer de otra manera)
${if_match ${execi 4 expr length "`qdbus com.spotify.qt /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title: | cut -b 14-`"} > 40} # Si la longitud del titulo es > 80, scroll.
${font SF Intoxicated Blues Extended:pixelsize=36}${color 999999}${scroll 40 1${execi 4 qdbus com.spotify.qt /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title: | cut -b 14-}}${font} # Título canción scroll
${else} # Si no es > 80
${font SF Intoxicated Blues Extended:pixelsize=36}${color black}${execi 4 qdbus com.spotify.qt /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep title: | cut -b 14-}${font} # Título canción
${endif} # End if logitud título > 80
${color}
${voffset -2}${offset 10}${font SF Intoxicated Blues Extended:pixelsize=24}${execi 4 qdbus com.spotify.qt /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep artist: | cut -b 15-}${font} # Artista canción
${voffset -2}${offset 20}${font SF Intoxicated Blues Extended:pixelsize=18}${execi 4 qdbus com.spotify.qt /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep album: | cut -b 14-}${font} # Album de la canción
${endif} # End If de si long título > 0 Clementine
${endif} # End If de Clementine is_running
${endif} # End If de Amarok is_running
#!/bin/bash
# eigene öffentliche ip anzeigen
wget http://checkip.dyndns.org/ -q -O - |
grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
imlib_cache_size 0
double_buffer yes
no_buffers yes
format_human_readable
use_xft yes
xftfont Antipasto:size=8
override_utf8_locale yes
text_buffer_size 168
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
alignment bottom_right
gap_x 1290
gap_y 98
minimum_size 300 200
draw_shades no
#draw_outline yes
#default_outline_color 696E72
default_color F6F6F6
color1 1B1C1F
TEXT
${voffset 19}${offset 20}${font Quicksand:pixelsize=75}${time %I·%M}${font}${if_match ${time %H}<12}AM${else}${if_match ${time %H}>12}PM${endif}${endif}${font}
${voffset 8}${color1}${offset -70}${font Annie Use Your Telescope:pixelsize=24}${alignc}${time %A %d %B %Y}
# Conky Metro Clock by Satya #
# satya164.deviantart.com #
# Conky settings #
update_interval 1
override_utf8_locale yes
double_buffer yes
no_buffers yes
#text_buffer_size 2048
# Window specifications #
own_window yes
#own_window_type desktop
own_window_class conky
own_window_type normal
own_window_class conky-semi
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_hints sticky,skip_taskbar
minimum_size 250
border_inner_margin 0
border_outer_margin 0
alignment top_left
gap_x 10
gap_y 0
# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# Text settings #
use_xft yes
xftalpha 0
text_buffer_size 2048
uppercase no
default_color FFFFFF
color1 fff
color2 888
TEXT
${voffset 10}${font ubuntu light:size=90}${time %I:%M %p}${font}${voffset -10}
${voffset 10}${font ubuntu light:size=50}${time %A}${font}${voffset -10}
${voffset 10}${font ubuntu light:size=50}${time %e} ${time %B}${font}${voffset -10}
${downspeed eth0}${color}${offset 5}·${offset -5}
Addiction escribió:Estoy usando desde ayer openbox y me funciona el conky bien menos el apartado de red, por que no me reconoce tarjeta de red?
esta es la configuración${downspeed eth0}${color}${offset 5}·${offset -5}
Alguna solución? gracias
dramake escribió:Mira, gracias a tu pregunta me he dado cuenta que el mío también está parado.
El sábado reinstalé Arch y ahora tengo que usar eno1 (ni idea de que significa) en vez de eth0. Lo he puesto en el conky y ya funciona otra vez.
Ni idea si por algun cambio en Arch o por el cambio de placa base (imagino que lo segundo).
No se si el problema es el mismo o no, en cualquier caso con ifconfig puedes ver que estás usando ahora.
lovechii5 escribió:Debe ser otro, puede que ahora sera eth1.
sensors
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +13.6°C (high = +70.0°C)
(crit = +90.0°C, hyst = +87.0°C)
fam15h_power-pci-00c4
Adapter: PCI adapter
power1: 6.75 W (crit = 125.19 W)
radeon-pci-0100
Adapter: PCI adapter
temp1: +32.0°C
radeon-pci-0700
Adapter: PCI adapter
temp1: +32.0°C
${exec nvidia-settings -q GPUCoreTemp | grep 0.0 | cut -d ' ' -f 6 | cut -c 1-2}