Conky & conkyForecast [2°Parte]
-
- Imperturbabile Insigne
- Messaggi: 2639
- Iscrizione: lunedì 28 aprile 2008, 12:42
- Distribuzione: Ubuntu 20.04
- Sesso: Maschile
- Località: Varese
Conky & conkyForecast [2°Parte]
Come suggerito da Janvitus si continua qui::* ;D
Collegamento alla 1°discussione
Qui una piccola videoguida::*
Piccola modifica.... visto che conkyForecast non funziona più.... date un'occhiata qui::**
Nuova guida qui::*
NEW Accuweather ConkyMeteo
Collegamento alla 1°discussione
Qui una piccola videoguida::*
Piccola modifica.... visto che conkyForecast non funziona più.... date un'occhiata qui::**
Nuova guida qui::*
NEW Accuweather ConkyMeteo
Ultima modifica di deegan il giovedì 26 dicembre 2013, 14:35, modificato 4 volte in totale.
MB* ASUS TUF Gaming Z690 SV* EVGA RTX 3080 Ti CPU* i7-12700K
RAM* Vengeance RGB PRO 32GB 3600MHz SSD* Samsung 980 PRO 2TB
RAM* Vengeance RGB PRO 32GB 3600MHz SSD* Samsung 980 PRO 2TB
- z_owl
- Entusiasta Emergente
- Messaggi: 1732
- Iscrizione: mercoledì 28 luglio 2010, 19:21
- Desktop: Unity
- Distribuzione: Ubuntu 13.04 x86_64
Re: Conky & conkyForecast [Il proseguo]
Ecco il mio:
[img width=800 height=449]http://img252.imageshack.us/img252/1382/schermatadel20120205185.png[/img]
.conkyrc
.conkyrc2
.conkyrc3
.moontemplate
[img width=800 height=449]http://img252.imageshack.us/img252/1382/schermatadel20120205185.png[/img]
.conkyrc
Codice: Seleziona tutto
own_window yes
own_window_type below
own_window_transparent yes
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer right
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 1.0
# Minimum size of text area
# minimum_size 250 5
# Draw shades?
draw_shades no
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 0
# border margins
border_margin 5
# border width
border_width 0
# Default colors and also border colors, grey90 == #e5e5e5
default_color white
default_shade_color white
default_outline_color white
draw_graph_borders yes
own_window_colour red
own_window_transparent yes
# 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
gap_x 15
gap_y 40
color1 FFD500 #giallo
color2 FF4500#arancione
color3 D9D9D9 #grigio
color4 DDDDDD
color5 AAAAAA
color6 888888
color7 EF5A29
# stuff after 'TEXT' will be formatted on screen
TEXT
${voffset -33}${font OpenLogos:size=103}${color2}v${font}${voffset -70}${goto 176}${font Sans:size=16}${color4}11.10${font}
${voffset 20}${color2}${font Ubuntu:size=10:style=bold}Sistema${font}
${color}$sysname${color1}$kernel ${color}su ${color1}Ubuntu 11.10 OO
${color}Hostname: ${color1}${nodename}${color} connesso da ${color1}$uptime${color}
$sysname $kernel $alignr $machine
File System: $alignr${fs_type}
${color orange}Processore ${hr 2}$color
${color2}${font Ubuntu:size=10:style=bold} Processore: Intel Core 2 Quad Q8200 2.33 GHz ${font}${color}
Freq.: ${freq}MHz Carico: ${loadavg} Temp.: ${acpitemp}
${color1}CPU 1 :$color ${cpu cpu0}%$alignr ${color1}CPU 2 :$color ${cpu cpu1}%
$color3${cpubar cpu0 5,138}$alignr${cpubar cpu1 5,138}
$color3${cpugraph cpu0 32,138 040404 FF8508}$alignr${cpugraph cpu1 32,138 040404 FF8508}
${color1}CPU 3 :$color ${cpu cpu2}%$alignr ${color1}CPU 4 :$color ${cpu cpu3}%
$color3${cpubar cpu2 5,138}$alignr${cpubar cpu3 5,138}
$color3${cpugraph cpu2 32,138 040404 FF8508}$alignr${cpugraph cpu3 32,138 040404 FF8508}
${goto 20} Processes: ${color red}$processes${color}
${goto 20} Running: ${color red}$running_processes ${color}
${offset 45}${font Ubuntu:size=7,weight:bold}${color}CPU
${offset 55}${font Ubuntu:size=7,weight:normal}${color7}${top name 1}${alignr}${top cpu 1}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color4}${top name 2}${alignr}${top cpu 2}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color5}${top name 3}${alignr}${top cpu 3}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color6}${top name 4}${alignr}${top cpu 4}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color6}${top name 5}${alignr}${top cpu 5}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color6}${top name 6}${alignr}${top cpu 6}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color6}${top name 7}${alignr}${top cpu 7}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color6}${top name 8}${alignr}${top cpu 8}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color6}${top name 9}${alignr}${top cpu 9}%
${color orange}Memoria Ram ${hr 2}$color
${color2}${font Ubuntu:size=10:style=bold}Memoria${font}
${color1}Ram${color} ${alignr}$mem / ${memmax} ($memperc%)
${color3}${membar 5,280}$color
${color1}swap${color} ${alignr}$swap / ${swapmax} ($swapperc%)
${color3}${swapbar 5}$color
${offset 45}${font Ubuntu:size=7,weight:bold}${color}Memoria
${offset 55}${font Ubuntu:size=7,weight:normal}${color7}${top_mem name 1}${alignr}${top_mem mem 1}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color4}${top_mem name 2}${alignr}${top_mem mem 2}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color5}${top_mem name 3}${alignr}${top_mem mem 3}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color6}${top_mem name 4}${alignr}${top_mem mem 4}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color6}${top_mem name 5}${alignr}${top_mem mem 5}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color6}${top_mem name 6}${alignr}${top_mem mem 6}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color6}${top_mem name 7}${alignr}${top_mem mem 7}%
${offset 55}${font Ubuntu:size=7,weight:normal}${color6}${top_mem name 8}${alignr}${top_mem mem 8}%
.conkyrc2
Codice: Seleziona tutto
own_window yes
own_window_type below
own_window_transparent no
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer right
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 1.0
# Minimum size of text area
# minimum_size 250 5
# Draw shades?
draw_shades no
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 0
# border margins
border_margin 5
# border width
border_width 0
# Default colors and also border colors, grey90 == #e5e5e5
default_color white
default_shade_color white
default_outline_color white
draw_graph_borders yes
own_window_colour red
own_window_transparent yes
# 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
gap_x 100
gap_y 50
color1 FFD500 #giallo
color2 FF4500#arancione
color3 D9D9D9 #grigio
TEXT
${font Ubuntu:Italic:size=30}${alignr -30}${time %H:%M}${font}${font Ubuntu:style=Bold:italic:size=5}${color3}${voffset -35}${alignr}${time %S}${color}${font}
${voffset 35}${hr 3}${font}
${font Ubuntu:Italic:size=10}${alignr}${time %A %d %B %Y}${font}
${color 707070}
${font Ubuntu:size=20}${alignr}Previsioni metereologiche - Este
${font Ubuntu:size=12}${goto 110}${execi 1800 conkyForecast --datatype=CT}
${goto 10}${font}${font Ubuntu:size=18}${voffset -20}${execi 500 /usr/bin/conkyForecast --datatype=HT}
${voffset 35}${goto 10}${font Ubuntu:size=8}${execi 500 conkyForecast --datatype=MP}${font Ubuntu:size=8}
${voffset 35}${goto 140}Alba ${execi 500 /usr/bin/conkyForecast --datatype=SR}
${goto 140}Tramonto ${execi 500 /usr/bin/conkyForecast --datatype=SS}
${goto 140}Temperatura minima ${execi 1680 conkyForecast --datatype=LT --startday=0}
${goto 140}Tempreratura massima ${execi 1680 conkyForecast --datatype=HT --startday=0}
${goto 140}Umidità ${execi 500 /usr/bin/conkyForecast --datatype=HM}
${goto 140}Vento ${execpi 900 conkyForecast --datatype=WS}
${goto 10}Visibilità ${execpi 900 conkyForecast --datatype=VI}
${goto 10}Precipitazioni ${execpi 900 conkyForecast --datatype=PC --startday=0}
${goto 10}Raggi UV ${execpi 900 conkyForecast --datatype=UI} - ${execpi 900 conkyForecast --datatype=UT}
${goto 10}Gradimento ${execi 600 conkyForecast --imperial --datatype=LT --centeredwidth=4 -iu}
#${goto 10}${execpi 900 conkyForecast --datatype=CN} ${color}${execpi 900 conkyForecast --datatype=CO}
${execpi 1800 conkyForecast --template=/home/jacopo/.moontemplate}
$font${voffset -800}${font Ubuntu:size=8}
${goto 300}Domani, ${execi 1800 conkyForecast --datatype=DW --startday=1 --shortweekday}. ${execi 500 /usr/bin/conkyForecast --startday=1 --datatype=HT}
${goto 300}${execi 600 conkyForecast --startday=1 --datatype=CT}
${goto 300}${execi 1680 conkyForecast --datatype=LT --startday=1}/${execi 1680 conkyForecast --datatype=HT --startday=1}
${goto 300}${execi 1800 conkyForecast --datatype=DW --startday=2 --shortweekday}. ${execi 500 /usr/bin/conkyForecast --startday=2 --datatype=HT}
${goto 300}${execi 600 conkyForecast --startday=2 --datatype=CT}
${goto 300}${execi 1680 conkyForecast --datatype=LT --startday=2}/${execi 1680 conkyForecast --datatype=HT --startday=2}
${goto 300}${execi 1800 conkyForecast --datatype=DW --startday=3 --shortweekday}. ${execi 500 /usr/bin/conkyForecast --startday=3 --datatype=HT}
${goto 300}${execi 600 conkyForecast --startday=3 --datatype=CT}
${goto 300}${execi 1680 conkyForecast --datatype=LT --startday=3}/${execi 1680 conkyForecast --datatype=HT --startday=3}
${goto 300}${execi 1800 conkyForecast --datatype=DW --startday=4 --shortweekday}. ${execi 500 /usr/bin/conkyForecast --startday=4 --datatype=HT}
${goto 300}${execi 600 conkyForecast --startday=4 --datatype=CT}
${goto 300}${execi 1680 conkyForecast --datatype=LT --startday=4}/${execi 1680 conkyForecast --datatype=HT --startday=4}
Codice: Seleziona tutto
own_window yes
own_window_type below
own_window_transparent yes
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer right
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 1.0
# Minimum size of text area
# minimum_size 250 5
# Draw shades?
draw_shades no
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 0
# border margins
border_margin 5
# border width
border_width 0
# Default colors and also border colors, grey90 == #e5e5e5
default_color white
default_shade_color white
default_outline_color white
draw_graph_borders yes
own_window_colour red
own_window_transparent yes
# 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
gap_x 550
gap_y 50
color1 FFD500 #giallo
color2 FF4500#arancione
color3 D9D9D9 #grigio
TEXT
${color2}${font Ubuntu:size=10:style=bold}Altri dati${font}
${color2}${font Ubuntu:size=10:style=bold} Rete Wireless${font}${color} (IP: ${addr wlan1}) ${hr 2}$color
Download: $color${downspeed wlan1} kb/s ${alignr}Upload: ${upspeed wlan1} kb/s
${downspeedgraph wlan1 25,140 000000 ff0000} ${alignr}${upspeedgraph wlan1
25,140 000000 00ff00}$color
Totale: ${totaldown wlan1} ${alignr}Totale: ${totalup wlan1}
ESSID: $alignr ${wireless_essid wlan1}
Connection quality: $alignr ${wireless_link_qual_perc wlan1}%
DLS:${downspeed wlan1} kb/s $alignr total: ${totaldown wlan1}
${color orange}Disco fisso - Spazio ${hr 2}$color
Root: Libero: ${fs_size /}(${fs_free_perc /}%) Usato: ${fs_used /}(${fs_used_perc /}%)
${color3}${fs_bar 5 /}
Home: Libero: ${fs_size /home}(${fs_free_perc /home}%) Usato: ${fs_used /home}(${fs_used_perc /home}%)
${color3}${fs_bar 5 /home}
${font Ubuntu:style=Bold:size=10}${offset -17}${voffset 10}${font}${color}${voffset -1}${font Ubuntu:size=10}${execpi 300 DJS=`date +%_d`; cal -h | sed '2,7!d'| sed '/./!d' | sed 's/^/${goto 40} /'| sed 's/$/ /' | sed 's/^/ /' | sed /" $DJS "/s/" $DJS "/" "'${font Ubuntu:style=Bold:size=10}${color1}'"$DJS"'${color}${font Ubuntu:size=10}'" "/}${voffset -1}
.moontemplate
Codice: Seleziona tutto
${font Ubuntu:size=10}
${image [--datatype=WI] -p 110,150 -s 150x150}
${image [--datatype=MI] -p 10,310 -s 100x100}
${voffset -135}${goto 140}${font ConkyWindNESW:style=Bold:size=47}${execi 600 conkyForecast --datatype=BS}
${image [--datatype=WI --startday=1] -p 300,195 -s 60x60}
${image [--datatype=WI --startday=2] -p 300,295 -s 60x60}
${image [--datatype=WI --startday=3] -p 300,395 -s 60x60}
${image [--datatype=WI --startday=4] -p 300,495 -s 60x60}
Scrivete in italiano corretto
- m3nhir
- Entusiasta Emergente
- Messaggi: 2291
- Iscrizione: mercoledì 31 dicembre 2008, 18:48
- Desktop: gnome-shell
- Distribuzione: Ubuntu 12.04.4 LTS x86_64
Re: Conky & conkyForecast [Il proseguo]
mi iscrivo per seguire il proseguo (rotfl)
Chi sa ascoltare non soltanto è simpatico a tutti , ma dopo un pò finisce con l'imparare qualcosa.
-Wilson Mizner- Linux User # 207701 Ubuntu User # 27508
-Wilson Mizner- Linux User # 207701 Ubuntu User # 27508
-
- Imperturbabile Insigne
- Messaggi: 2639
- Iscrizione: lunedì 28 aprile 2008, 12:42
- Distribuzione: Ubuntu 20.04
- Sesso: Maschile
- Località: Varese
Re: Conky & conkyForecast [Il proseguo]
...m3nhir ha scritto: mi iscrivo per seguire il proseguo (rotfl)
MB* ASUS TUF Gaming Z690 SV* EVGA RTX 3080 Ti CPU* i7-12700K
RAM* Vengeance RGB PRO 32GB 3600MHz SSD* Samsung 980 PRO 2TB
RAM* Vengeance RGB PRO 32GB 3600MHz SSD* Samsung 980 PRO 2TB
Re: Conky & conkyForecast [Il proseguo]
mi iscrivo incuriosito...nella speranza di capire mai come diavolo funziona sto coso...
Ubuntu User # 32148
Linux user number 521477
Linux user number 521477
Re: Conky & conkyForecast [Il proseguo]
Ho seguito il primo....... perché smettere?
Certo che Ubuntu è veramente bello: non mi sentivo cosi "padrone del mezzo" da quando mi regalarono il mio Vic20.......
- clodiopulcro
- Entusiasta Emergente
- Messaggi: 1530
- Iscrizione: lunedì 14 luglio 2008, 13:26
Re: Conky & conkyForecast [Il proseguo]
Proseguo o prosieguo?
"Windows was created to keep stupid people away from UNIX"
-
- Prode Principiante
- Messaggi: 41
- Iscrizione: giovedì 14 febbraio 2008, 18:00
- Desktop: Unity
- Distribuzione: Ubuntu 14.04 LTS
- Località: Verona
Re: Conky & conkyForecast [Il proseguo]
Pronto per il secondo viaggio.
Re: Conky & conkyForecast [Il proseguo]
anch'io continuo a seguire ....
- tommaa39
- Prode Principiante
- Messaggi: 124
- Iscrizione: mercoledì 21 maggio 2008, 14:50
- Località: Trieste
Re: Conky & conkyForecast [Il proseguo]
Io voto prosieguo:clodiopulcro ha scritto: Proseguo o prosieguo?
http://dizionari.hoepli.it/Dizionario_Italiano/parola/prosieguo.aspx?idD=1&Query=prosieguo
- Iacoporosso
- Prode Principiante
- Messaggi: 232
- Iscrizione: lunedì 10 gennaio 2011, 18:32
- Desktop: kde 4.10
- Distribuzione: kubuntu 12.10
Re: Conky & conkyForecast [Il proseguo]
riposto visto che sull'altra parte andrà perso...In Grass conky
conkyrc
overlay.lua
praticamente sovrappone un immagine al conky stesso.. nel mio caso un immagine che rappresenta parte dello sfondo ( posso passarvi sia immagine che sfondo ma dipende molto dalla risoluzione del monitor per avere un perfetto sovrapponimento quindi vi consiglio di fare a manina sul vostro sfondo
conkyrc
Codice: Seleziona tutto
background no
xftfont Eurostile:size=7
use_xft yes
xftalpha 0.8
update_interval .3
total_run_times 0
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 no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 300
default_color 111111
alignment tb
gap_y 32
gap_x 44
cpu_avg_samples 1
lua_load /home/jroxo/Scrivania/overlay.lua
lua_draw_hook_post start
TEXT
${offset 60}${voffset 150}${font Aller :pixelsize=200}${time %H:%M}
Codice: Seleziona tutto
require 'imlib2'
function init_drawing_surface()
imlib_set_cache_size(4096 * 1024)
imlib_context_set_dither(1)
end
function draw_image()
init_drawing_surface()
--you'll need to change the path here (keep it absolute!)
image = imlib_load_image("/home/jroxo/Scrivania/overlay.png")
if image == nil then return end
imlib_context_set_image(image)
imlib_render_image_on_drawable(0,171)
imlib_free_image()
end
function conky_start()
if conky_window == nil then return end
draw_image()
end
-
- Imperturbabile Insigne
- Messaggi: 2639
- Iscrizione: lunedì 28 aprile 2008, 12:42
- Distribuzione: Ubuntu 20.04
- Sesso: Maschile
- Località: Varese
Re: Conky & conkyForecast [2°Parte]
Ancora in modifica::* ;)
Non riesco a capire come cambiare il colore alle lancette::*
Conkyrc
earthclock.lua
Non riesco a capire come cambiare il colore alle lancette::*
Conkyrc
Codice: Seleziona tutto
# 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_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
minimum_size 400 470
maximum_width 400
alignment tm
gap_x 10
gap_y 15
# 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 1
uppercase no
#tempature_unit celsius
temperature_unit fahrenheit
#add8e6
#850100
default_color 3399cc ##b2dfee
# Lua Load #
lua_load /home/deegan/d/earthclock.lua
lua_draw_hook_pre clock_rings
TEXT
${font caviar dreams:Bold:size=16}${voffset 116}${goto 183}12
${voffset -10}${goto 131}11${goto 245}1${font}
${voffset 10}${goto 30}${font caviar dreams:Bold:size=16}${goto 90}10${goto 285}2${font}${voffset -10}
${voffset 17}
${font caviar dreams:Bold:size=16}${voffset -26}${goto 85}9${goto 298}3
${voffset 28}${goto 101}8${goto 285}4${font}${voffset -18}
${font caviar dreams:size=16}${voffset 12}${goto 140}7${goto 248}5
${voffset -9}${goto 193}6${font}
${voffset 51}
Codice: Seleziona tutto
--[[
Clock Rings by londonali1010 (2009) Edited by jpope
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 (05.10.2009)
]]
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=0x3399cc,
-- "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=200, y=235,
-- "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
},
--secondo
{
name="time",
arg="%S",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=200, y=235,
radius=56,
thickness=5,
start_angle=0,
end_angle=360
},
--terzo
{
name="time",
arg="%d",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=200, y=235,
radius=62,
thickness=5,
start_angle=0,
end_angle=360
},
--quarto
{
name="time",
arg="%m",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=200, y=235,
radius=70,
thickness=5,
start_angle=-90,
end_angle=90
},
--quinto
{
name="cpu",
arg="cpu0",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=200, y=235,
radius=76,
thickness=5,
start_angle=-90,
end_angle=90
},
--12
{
name="cpu",
arg="cpu0",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=199, y=127,
radius=25,
thickness=5,
start_angle=0,
end_angle=360
},
{
name="cpu",
arg="cpu0",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=252, y=143,
radius=25,
thickness=5,
start_angle=0,
end_angle=360
},
{
name="cpu",
arg="cpu0",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=291, y=182,
radius=25,
thickness=5,
start_angle=0,
end_angle=360
},
{
name="cpu",
arg="cpu0",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=305, y=235,
radius=25,
thickness=5,
start_angle=0,
end_angle=360
},
{
name="cpu",
arg="cpu0",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=291, y=288,
radius=25,
thickness=5,
start_angle=0,
end_angle=360
},
{
name="cpu",
arg="cpu0",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=253, y=328,
radius=25,
thickness=5,
start_angle=0,
end_angle=360
},
{
name="cpu",
arg="cpu0",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=199, y=342,
radius=25,
thickness=5,
start_angle=0,
end_angle=360
},
{
name="cpu",
arg="cpu0",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=145, y=328,
radius=25,
thickness=5,
start_angle=0,
end_angle=360
},
{
name="cpu",
arg="cpu0",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=107, y=288,
radius=25,
thickness=5,
start_angle=0,
end_angle=360
},
{
name="cpu",
arg="cpu0",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=92, y=235,
radius=25,
thickness=5,
start_angle=0,
end_angle=360
},
{
name="cpu",
arg="cpu0",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=107, y=182,
radius=25,
thickness=5,
start_angle=0,
end_angle=360
},
{
name="cpu",
arg="cpu0",
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x3399cc,
fg_alpha=0.4,
x=146, y=143,
radius=25,
thickness=5,
start_angle=0,
end_angle=360
},
}
-- Use these settings to define the origin and extent of your clock.
clock_r=120
-- "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=200
clock_y=235
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,0.2,1,1,1)
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
Ultima modifica di deegan il martedì 7 febbraio 2012, 0:35, modificato 1 volta in totale.
MB* ASUS TUF Gaming Z690 SV* EVGA RTX 3080 Ti CPU* i7-12700K
RAM* Vengeance RGB PRO 32GB 3600MHz SSD* Samsung 980 PRO 2TB
RAM* Vengeance RGB PRO 32GB 3600MHz SSD* Samsung 980 PRO 2TB
Re: Conky & conkyForecast [2°Parte]
Ci sono anche io..!
sera a tutti, sperando di non andare (ot)
ho questo errore se lancio conky, mi potreste aiutare grazie?
non mi viene visualizzato nessun conkymeteo
i paremetri sono tutto al suo posto,
il codice di regg.Weather, il codice riguardante la mia Citta....
da quello che potrete leggere il sistema e crunchbang.
sera a tutti, sperando di non andare (ot)
ho questo errore se lancio conky, mi potreste aiutare grazie?
Codice: Seleziona tutto
vetto@crunchbang:~$ conky
conky conkyForecastWU
conkyForecast conkywonky
conkyForecast-SunsetSunriseCountdown
vetto@crunchbang:~$ conky
Conky: desktop window (1600003) is subwindow of root window (101)
Conky: window type - override
Conky: drawing to created window (0x2a00001)
Conky: drawing to double buffer
ERROR: Config data file /home/vetto/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File "/usr/share/conkyforecast/conkyForecast.py", line 1698, in <module>
main()
File "/usr/share/conkyforecast/conkyForecast.py", line 1694, in main
forecastinfo = ForecastInfo(options)
File "/usr/share/conkyforecast/conkyForecast.py", line 592, in __init__
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: 'NoneType' object has no attribute 'CONNECTION_TIMEOUT'
i paremetri sono tutto al suo posto,
il codice di regg.Weather, il codice riguardante la mia Citta....
da quello che potrete leggere il sistema e crunchbang.
Ultima modifica di Vetto il mercoledì 8 febbraio 2012, 10:27, modificato 1 volta in totale.
-
- Prode Principiante
- Messaggi: 84
- Iscrizione: giovedì 7 gennaio 2010, 17:57
Re: Conky & conkyForecast [2°Parte]
Guardando soprattutto qui, ho iniziato a modificare il mio .conkyrc. Per ora sono davvero ad un livello dilettantistico: il risultato non è elaborato e mi dà ancora dei problemi, per i quali sto cercando aiuto (sebbene non sia sicuro che sia il posto adatto per farlo ).
Il primo problema è che degli indicatori dell'area networking non funziona niente (magari devo installare qualche programma, ma quale?).
Il secondo è che per i processi in esecuzione sono indicati PID e %CPU, mentre io vorrei aggiungere anche la %RAM. Il comando l'ho trovato in rete, ma quello che non mi riesce è di allineare chiaramente questre tre colonne (tipo qui). Le due colonne che ho attualmente sono semplicemente allineate al centro e a destra con rispettivamente "alignc" e "alignr".
Infine non riesco a modificare le dimensioni della finestra: la larghezza va bene, ma non la lunghezza. Infatti se aggiungo troppi indicatori alcuni non vengoni visti.
Ecco il .conkyrc:
Grazie in anticipo.
Il primo problema è che degli indicatori dell'area networking non funziona niente (magari devo installare qualche programma, ma quale?).
Il secondo è che per i processi in esecuzione sono indicati PID e %CPU, mentre io vorrei aggiungere anche la %RAM. Il comando l'ho trovato in rete, ma quello che non mi riesce è di allineare chiaramente questre tre colonne (tipo qui). Le due colonne che ho attualmente sono semplicemente allineate al centro e a destra con rispettivamente "alignc" e "alignr".
Infine non riesco a modificare le dimensioni della finestra: la larghezza va bene, ma non la lunghezza. Infatti se aggiungo troppi indicatori alcuni non vengoni visti.
Ecco il .conkyrc:
Codice: Seleziona tutto
#CONKYRC
#-------------------------------
#avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#borders
draw_borders no
border_margin 1
#shades
draw_shades no
#position
gap_x 17
gap_y 73
alignment top_right
#behaviour
update_interval 1
#colour
default_color ffffff
#default_shade_color 000000
#own_window_colour 222222
#font
use_xft yes
xftfont Fixed:pixelsize=10
uppercase no
#to prevent window from moving
use_spacer none
minimum_size 200
maximum_size 250
TEXT
${alignc}lmr@${nodename}
${time %H:%M - %d.%m.%Y} ${alignr}Since ${uptime_short} up
${sysname} ${kernel} ${machine} ${alignr}conky ${conky_version}
${hr 2}
Name${alignc}PID${alignr}CPU
${top name 1} ${alignc}${top pid 1} ${alignr}${top cpu 1}%
${top name 2} ${alignc}${top pid 2} ${alignr}${top cpu 2}%
${top name 3} ${alignc}${top pid 3} ${alignr}${top cpu 3}%
${top name 4} ${alignc}${top pid 4} ${alignr}${top cpu 4}%
${top name 5} ${alignc}${top pid 5} ${alignr}${top cpu 5}%
${top name 6} ${alignc}${top pid 6} ${alignr}${top cpu 6}%
Processes: $processes ${alignr}Running: $running_processes
RAM: ${memperc}% ${membar 7}
Core1: ${cpu cpu1}% ${cpubar 7}
Core1: ${freq}MHz ${offset 87} HD: ${diskio}%
Core2: ${cpu cpu2}% ${cpubar 7}
Core2: ${freq}MHz ${offset 87} HD: ${diskio}%
${cpugraph 32,150} ${diskiograph 32,150}
Down: ${downspeed wlan0} k/s ${offset 95}Up: ${upspeed wlan0} k/s
${downspeedgraph wlan0 32,150} ${upspeedgraph wlan0 32,150}
Wi-Fi: ${wireless_link_qual_perc wlan0}% ${wireless_link_bar wlan0}
wlan0 IP: ${addr wlan0} ${alignc} eth0 IP: ${addr eth0}
ESSID: ${wireless_essid wlan0} ${alignc} Bitrate: ${wireless_bitrate wlan0}
Think, McFly! Think!
Re: Conky & conkyForecast [2°Parte]
puoi postare un immagine del tuo conky, così vedo un secondo il fatto dell'allineamento.
-
- Prode Principiante
- Messaggi: 84
- Iscrizione: giovedì 7 gennaio 2010, 17:57
Re: Conky & conkyForecast [2°Parte]
Think, McFly! Think!
- woddy68
- Rampante Reduce
- Messaggi: 8643
- Iscrizione: sabato 12 febbraio 2011, 14:23
- Desktop: Kde Plasma5
- Distribuzione: openSUSE Tumbleweed - KDE Neon
- Sesso: Maschile
Re: Conky & conkyForecast [2°Parte]
Bello! Ma io non ci ho mai capito una mazza di come configurare Conky >:(, però è bello, piacerebbe anche a me!
Desktop - DELL Optiplex 7010 - Notebook HP 250
-Ho sempre accettato caramelle dagli sconosciuti-
-Ho sempre accettato caramelle dagli sconosciuti-
- Diabolik62
- Tenace Tecnocrate
- Messaggi: 16046
- Iscrizione: domenica 20 dicembre 2009, 16:29
- Distribuzione: wind 10049 archfce4.12
Re: Conky & conkyForecast [2°Parte]
Codice: Seleziona tutto
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_line_width(cr,5)
cairo_set_source_rgba(cr,0.2,1,1,1)
cairo_stroke(cr)
Codice: Seleziona tutto
Il metodo cairo_set_source_rgb, che è fornito dalla libreria grafica 2D Cairo , prende un contesto di cairo e tre doppie, come gli argomenti per impostare il colore del widget di rgb. Il problema è che questi tre numeri sono puri rgb livelli dei canali (0-255), come la maggior parte dei programmi di grafica trattare.
Ogni colore è rappresentato da un valore 0-1 frazionario.
Ad esempio, per ottenere il colore verde a livello 78 (0-255), sarebbe
cairo_set_source_rgb (cr, 0, 0,30, 0);
Qualora il 0,30 proviene da dividere 78 per 255.
Quindi, per ottenere il livello di colore per l'uso in cairo chiama come quello sopra, basta dividere il livello corrispondente (0-255) per 255. A due cifre di precisione sarebbe sufficiente.
Ultima modifica di Anonymous il mercoledì 8 febbraio 2012, 21:52, modificato 1 volta in totale.
-
- Scoppiettante Seguace
- Messaggi: 312
- Iscrizione: mercoledì 7 novembre 2007, 13:53
Re: Conky & conkyForecast [2°Parte]
ciao,
è molto interesante, ma non esiste un tool che permette di modificare le impostazioni senza impazzire con i codici?
ciao
angelico
è molto interesante, ma non esiste un tool che permette di modificare le impostazioni senza impazzire con i codici?
ciao
angelico
Re: Conky & conkyForecast [2°Parte]
salve a tutti....
qualcuno sa come allineare in centro il mio conkypanel?
ho provato a scrivere top_center ma me lo sposta in basso... :-\
grazie mille...posto anche l'rc..
qualcuno sa come allineare in centro il mio conkypanel?
ho provato a scrivere top_center ma me lo sposta in basso... :-\
grazie mille...posto anche l'rc..
Codice: Seleziona tutto
#avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#borders
draw_borders no
border_margin 0
#shades
draw_shades no
#position
gap_x 0
gap_y 0
alignment top_right
#behaviour
update_interval 1
#colour
default_color 8f8f8f
#default_shade_color 000000
own_window_colour 262729
#font
use_xft yes
xftfont sans:size=7
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
#to prevent window from moving
use_spacer none
minimum_size 1024 0
#mpd
#mpd_host localhost
#mpd_port 6600
TEXT
${alignc}Date: ${color e0e0e0}${time %d/%m/%y}${color} Time: ${color e0e0e0}${time %H:%M}${color} | Kernel: ${color e0e0e0}$kernel${color} Uptime: ${color e0e0e0}${uptime_short}${color} | Cpu0: ${color e0e0e0}${cpu}%${color} Ram: ${color e0e0e0}${memperc}%${color} Swap: ${color e0e0e0}${swapperc}%${color} Disk: ${color e0e0e0}${fs_used_perc /}%${color} | Motherboard: ${color e0e0e0}${execi 300 sensors | grep M/B | cut -c15-16 ;}°C${color} Cpu: ${color e0e0e0}${execi 300 sensors | grep CPU | cut -c15-16 ;}°C${color} Disk: ${color e0e0e0}${execi 300 nc localhost 7634 | cut -c29-30 ;}°C${color} | ${if_existing /proc/net/route wlan0}Signal: ${color e0e0e0}${wireless_link_qual wlan0}%${color} Up: ${color e0e0e0}${upspeed wlan0} kb/s${color} Down: ${color e0e0e0}${downspeed wlan0} kb/s${color}${else}${if_existing /proc/net/route eth0}Up: ${color e0e0e0}${upspeed eth0} kb/s${color} Down: ${color e0e0e0}${downspeed eth0} kb/s${color}${endif}${else}Network Unavailable${endif}${alignc}
ubuntu 10.10.
Chi c’è in linea
Visualizzano questa sezione: dalca e 16 ospiti